Home | History | Annotate | Download | only in mips
      1 // Copyright 2010 the V8 project authors. All rights reserved.
      2 // Redistribution and use in source and binary forms, with or without
      3 // modification, are permitted provided that the following conditions are
      4 // met:
      5 //
      6 //     * Redistributions of source code must retain the above copyright
      7 //       notice, this list of conditions and the following disclaimer.
      8 //     * Redistributions in binary form must reproduce the above
      9 //       copyright notice, this list of conditions and the following
     10 //       disclaimer in the documentation and/or other materials provided
     11 //       with the distribution.
     12 //     * Neither the name of Google Inc. nor the names of its
     13 //       contributors may be used to endorse or promote products derived
     14 //       from this software without specific prior written permission.
     15 //
     16 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
     17 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
     18 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
     19 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
     20 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
     21 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
     22 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
     23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
     24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
     25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
     26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     27 
     28 #include "v8.h"
     29 
     30 #include "codegen-inl.h"
     31 #include "compiler.h"
     32 #include "debug.h"
     33 #include "full-codegen.h"
     34 #include "parser.h"
     35 
     36 namespace v8 {
     37 namespace internal {
     38 
     39 #define __ ACCESS_MASM(masm_)
     40 
     41 void FullCodeGenerator::Generate(CompilationInfo* info, Mode mode) {
     42   UNIMPLEMENTED_MIPS();
     43 }
     44 
     45 
     46 void FullCodeGenerator::EmitReturnSequence(int position) {
     47   UNIMPLEMENTED_MIPS();
     48 }
     49 
     50 
     51 void FullCodeGenerator::Apply(Expression::Context context, Register reg) {
     52   UNIMPLEMENTED_MIPS();
     53 }
     54 
     55 
     56 void FullCodeGenerator::Apply(Expression::Context context, Slot* slot) {
     57   UNIMPLEMENTED_MIPS();
     58 }
     59 
     60 void FullCodeGenerator::Apply(Expression::Context context, Literal* lit) {
     61   UNIMPLEMENTED_MIPS();
     62 }
     63 
     64 
     65 void FullCodeGenerator::ApplyTOS(Expression::Context context) {
     66   UNIMPLEMENTED_MIPS();
     67 }
     68 
     69 
     70 void FullCodeGenerator::DropAndApply(int count,
     71                                      Expression::Context context,
     72                                      Register reg) {
     73   UNIMPLEMENTED_MIPS();
     74 }
     75 
     76 
     77 void FullCodeGenerator::Apply(Expression::Context context,
     78                               Label* materialize_true,
     79                               Label* materialize_false) {
     80   UNIMPLEMENTED_MIPS();
     81 }
     82 
     83 
     84 void FullCodeGenerator::DoTest(Expression::Context context) {
     85   UNIMPLEMENTED_MIPS();
     86 }
     87 
     88 
     89 MemOperand FullCodeGenerator::EmitSlotSearch(Slot* slot, Register scratch) {
     90   UNIMPLEMENTED_MIPS();
     91   return MemOperand(zero_reg, 0);   // UNIMPLEMENTED RETURN
     92 }
     93 
     94 
     95 void FullCodeGenerator::Move(Register destination, Slot* source) {
     96   UNIMPLEMENTED_MIPS();
     97 }
     98 
     99 
    100 void FullCodeGenerator::Move(Slot* dst,
    101                              Register src,
    102                              Register scratch1,
    103                              Register scratch2) {
    104   UNIMPLEMENTED_MIPS();
    105 }
    106 
    107 
    108 void FullCodeGenerator::VisitDeclaration(Declaration* decl) {
    109   UNIMPLEMENTED_MIPS();
    110 }
    111 
    112 
    113 void FullCodeGenerator::DeclareGlobals(Handle<FixedArray> pairs) {
    114   UNIMPLEMENTED_MIPS();
    115 }
    116 
    117 
    118 void FullCodeGenerator::VisitFunctionLiteral(FunctionLiteral* expr) {
    119   UNIMPLEMENTED_MIPS();
    120 }
    121 
    122 
    123 void FullCodeGenerator::VisitVariableProxy(VariableProxy* expr) {
    124   UNIMPLEMENTED_MIPS();
    125 }
    126 
    127 
    128 void FullCodeGenerator::EmitVariableLoad(Variable* var,
    129                                          Expression::Context context) {
    130   UNIMPLEMENTED_MIPS();
    131 }
    132 
    133 
    134 void FullCodeGenerator::VisitRegExpLiteral(RegExpLiteral* expr) {
    135   UNIMPLEMENTED_MIPS();
    136 }
    137 
    138 
    139 void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) {
    140   UNIMPLEMENTED_MIPS();
    141 }
    142 
    143 
    144 void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) {
    145   UNIMPLEMENTED_MIPS();
    146 }
    147 
    148 
    149 void FullCodeGenerator::EmitNamedPropertyLoad(Property* prop) {
    150   UNIMPLEMENTED_MIPS();
    151 }
    152 
    153 
    154 void FullCodeGenerator::EmitKeyedPropertyLoad(Property* prop) {
    155   UNIMPLEMENTED_MIPS();
    156 }
    157 
    158 
    159 void FullCodeGenerator::EmitBinaryOp(Token::Value op,
    160                                      Expression::Context context) {
    161   UNIMPLEMENTED_MIPS();
    162 }
    163 
    164 
    165 void FullCodeGenerator::EmitVariableAssignment(Variable* var,
    166                                                Expression::Context context) {
    167   UNIMPLEMENTED_MIPS();
    168 }
    169 
    170 
    171 void FullCodeGenerator::EmitNamedPropertyAssignment(Assignment* expr) {
    172   UNIMPLEMENTED_MIPS();
    173 }
    174 
    175 
    176 void FullCodeGenerator::EmitKeyedPropertyAssignment(Assignment* expr) {
    177   UNIMPLEMENTED_MIPS();
    178 }
    179 
    180 
    181 void FullCodeGenerator::VisitProperty(Property* expr) {
    182   UNIMPLEMENTED_MIPS();
    183 }
    184 
    185 void FullCodeGenerator::EmitCallWithIC(Call* expr,
    186                                        Handle<Object> ignored,
    187                                        RelocInfo::Mode mode) {
    188   UNIMPLEMENTED_MIPS();
    189 }
    190 
    191 
    192 void FullCodeGenerator::EmitCallWithStub(Call* expr) {
    193   UNIMPLEMENTED_MIPS();
    194 }
    195 
    196 
    197 void FullCodeGenerator::VisitCall(Call* expr) {
    198   UNIMPLEMENTED_MIPS();
    199 }
    200 
    201 
    202 void FullCodeGenerator::VisitCallNew(CallNew* expr) {
    203   UNIMPLEMENTED_MIPS();
    204 }
    205 
    206 
    207 void FullCodeGenerator::VisitCallRuntime(CallRuntime* expr) {
    208   UNIMPLEMENTED_MIPS();
    209 }
    210 
    211 
    212 void FullCodeGenerator::VisitUnaryOperation(UnaryOperation* expr) {
    213   UNIMPLEMENTED_MIPS();
    214 }
    215 
    216 
    217 void FullCodeGenerator::VisitCountOperation(CountOperation* expr) {
    218   UNIMPLEMENTED_MIPS();
    219 }
    220 
    221 
    222 void FullCodeGenerator::VisitBinaryOperation(BinaryOperation* expr) {
    223   UNIMPLEMENTED_MIPS();
    224 }
    225 
    226 
    227 void FullCodeGenerator::VisitCompareOperation(CompareOperation* expr) {
    228   UNIMPLEMENTED_MIPS();
    229 }
    230 
    231 
    232 void FullCodeGenerator::VisitThisFunction(ThisFunction* expr) {
    233   UNIMPLEMENTED_MIPS();
    234 }
    235 
    236 
    237 Register FullCodeGenerator::result_register() { return v0; }
    238 
    239 
    240 Register FullCodeGenerator::context_register() { return cp; }
    241 
    242 
    243 void FullCodeGenerator::StoreToFrameField(int frame_offset, Register value) {
    244   UNIMPLEMENTED_MIPS();
    245 }
    246 
    247 
    248 void FullCodeGenerator::LoadContextField(Register dst, int context_index) {
    249   UNIMPLEMENTED_MIPS();
    250 }
    251 
    252 
    253 // ----------------------------------------------------------------------------
    254 // Non-local control flow support.
    255 
    256 void FullCodeGenerator::EnterFinallyBlock() {
    257   UNIMPLEMENTED_MIPS();
    258 }
    259 
    260 
    261 void FullCodeGenerator::ExitFinallyBlock() {
    262   UNIMPLEMENTED_MIPS();
    263 }
    264 
    265 
    266 #undef __
    267 
    268 } }  // namespace v8::internal
    269