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 
     29 
     30 #include "v8.h"
     31 
     32 #if defined(V8_TARGET_ARCH_MIPS)
     33 
     34 #include "codegen-inl.h"
     35 #include "code-stubs.h"
     36 #include "ic-inl.h"
     37 #include "runtime.h"
     38 #include "stub-cache.h"
     39 
     40 namespace v8 {
     41 namespace internal {
     42 
     43 
     44 // ----------------------------------------------------------------------------
     45 // Static IC stub generators.
     46 //
     47 
     48 #define __ ACCESS_MASM(masm)
     49 
     50 
     51 void LoadIC::GenerateArrayLength(MacroAssembler* masm) {
     52   UNIMPLEMENTED_MIPS();
     53 }
     54 
     55 
     56 void LoadIC::GenerateStringLength(MacroAssembler* masm, bool support_wrappers) {
     57   UNIMPLEMENTED_MIPS();
     58 }
     59 
     60 
     61 void LoadIC::GenerateFunctionPrototype(MacroAssembler* masm) {
     62   UNIMPLEMENTED_MIPS();
     63 }
     64 
     65 
     66 // Defined in ic.cc.
     67 Object* CallIC_Miss(Arguments args);
     68 
     69 
     70 void CallIC::GenerateMiss(MacroAssembler* masm, int argc) {
     71   UNIMPLEMENTED_MIPS();
     72 }
     73 
     74 
     75 void CallIC::GenerateMegamorphic(MacroAssembler* masm, int argc) {
     76   UNIMPLEMENTED_MIPS();
     77 }
     78 
     79 
     80 void CallIC::GenerateNormal(MacroAssembler* masm, int argc) {
     81   UNIMPLEMENTED_MIPS();
     82 }
     83 
     84 
     85 void KeyedCallIC::GenerateMiss(MacroAssembler* masm, int argc) {
     86   UNIMPLEMENTED_MIPS();
     87 }
     88 
     89 
     90 void KeyedCallIC::GenerateMegamorphic(MacroAssembler* masm, int argc) {
     91   UNIMPLEMENTED_MIPS();
     92 }
     93 
     94 
     95 void KeyedCallIC::GenerateNormal(MacroAssembler* masm, int argc) {
     96   UNIMPLEMENTED_MIPS();
     97 }
     98 
     99 
    100 // Defined in ic.cc.
    101 Object* LoadIC_Miss(Arguments args);
    102 
    103 void LoadIC::GenerateMegamorphic(MacroAssembler* masm) {
    104   UNIMPLEMENTED_MIPS();
    105 }
    106 
    107 
    108 void LoadIC::GenerateNormal(MacroAssembler* masm) {
    109   UNIMPLEMENTED_MIPS();
    110 }
    111 
    112 
    113 void LoadIC::GenerateMiss(MacroAssembler* masm) {
    114   UNIMPLEMENTED_MIPS();
    115 }
    116 
    117 
    118 bool LoadIC::PatchInlinedLoad(Address address, Object* map, int offset) {
    119   UNIMPLEMENTED_MIPS();
    120   return false;
    121 }
    122 
    123 
    124 bool LoadIC::PatchInlinedContextualLoad(Address address,
    125                                         Object* map,
    126                                         Object* cell,
    127                                         bool is_dont_delete) {
    128   UNIMPLEMENTED_MIPS();
    129   return false;
    130 }
    131 
    132 
    133 bool StoreIC::PatchInlinedStore(Address address, Object* map, int offset) {
    134   UNIMPLEMENTED_MIPS();
    135   return false;
    136 }
    137 
    138 
    139 bool KeyedLoadIC::PatchInlinedLoad(Address address, Object* map) {
    140   UNIMPLEMENTED_MIPS();
    141   return false;
    142 }
    143 
    144 
    145 bool KeyedStoreIC::PatchInlinedStore(Address address, Object* map) {
    146   UNIMPLEMENTED_MIPS();
    147   return false;
    148 }
    149 
    150 
    151 Object* KeyedLoadIC_Miss(Arguments args);
    152 
    153 
    154 void KeyedLoadIC::GenerateMiss(MacroAssembler* masm) {
    155   UNIMPLEMENTED_MIPS();
    156 }
    157 
    158 
    159 void KeyedLoadIC::GenerateRuntimeGetProperty(MacroAssembler* masm) {
    160   UNIMPLEMENTED_MIPS();
    161 }
    162 
    163 
    164 void KeyedLoadIC::GenerateGeneric(MacroAssembler* masm) {
    165   UNIMPLEMENTED_MIPS();
    166 }
    167 
    168 
    169 void KeyedLoadIC::GenerateString(MacroAssembler* masm) {
    170   UNIMPLEMENTED_MIPS();
    171 }
    172 
    173 
    174 void KeyedStoreIC::GenerateRuntimeSetProperty(MacroAssembler* masm,
    175                                               StrictModeFlag strict_mode) {
    176   UNIMPLEMENTED_MIPS();
    177 }
    178 
    179 
    180 void KeyedStoreIC::GenerateGeneric(MacroAssembler* masm,
    181                                    StrictModeFlag strict_mode) {
    182   UNIMPLEMENTED_MIPS();
    183 }
    184 
    185 
    186 void KeyedLoadIC::GenerateIndexedInterceptor(MacroAssembler* masm) {
    187   UNIMPLEMENTED_MIPS();
    188 }
    189 
    190 
    191 void KeyedStoreIC::GenerateMiss(MacroAssembler* masm) {
    192   UNIMPLEMENTED_MIPS();
    193 }
    194 
    195 
    196 void StoreIC::GenerateMegamorphic(MacroAssembler* masm,
    197                                   StrictModeFlag strict_mode) {
    198   UNIMPLEMENTED_MIPS();
    199 }
    200 
    201 
    202 void StoreIC::GenerateMiss(MacroAssembler* masm) {
    203   UNIMPLEMENTED_MIPS();
    204 }
    205 
    206 
    207 void StoreIC::GenerateArrayLength(MacroAssembler* masm) {
    208   UNIMPLEMENTED_MIPS();
    209 }
    210 
    211 
    212 void StoreIC::GenerateNormal(MacroAssembler* masm) {
    213   UNIMPLEMENTED_MIPS();
    214 }
    215 
    216 
    217 void StoreIC::GenerateGlobalProxy(MacroAssembler* masm,
    218                                   StrictModeFlag strict_mode) {
    219   UNIMPLEMENTED_MIPS();
    220 }
    221 
    222 
    223 #undef __
    224 
    225 
    226 Condition CompareIC::ComputeCondition(Token::Value op) {
    227   UNIMPLEMENTED_MIPS();
    228   return kNoCondition;
    229 }
    230 
    231 
    232 void CompareIC::UpdateCaches(Handle<Object> x, Handle<Object> y) {
    233   UNIMPLEMENTED_MIPS();
    234 }
    235 
    236 
    237 void PatchInlinedSmiCode(Address address) {
    238   // Currently there is no smi inlining in the MIPS full code generator.
    239 }
    240 
    241 
    242 } }  // namespace v8::internal
    243 
    244 #endif  // V8_TARGET_ARCH_MIPS
    245