| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_MIPS | 7 #if V8_TARGET_ARCH_MIPS |
| 8 | 8 |
| 9 #include "src/codegen.h" | 9 #include "src/codegen.h" |
| 10 #include "src/ic-inl.h" | 10 #include "src/ic-inl.h" |
| (...skipping 1235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1246 __ LoadRoot(v0, Heap::kUndefinedValueRootIndex); | 1246 __ LoadRoot(v0, Heap::kUndefinedValueRootIndex); |
| 1247 __ Ret(); | 1247 __ Ret(); |
| 1248 | 1248 |
| 1249 // Return the generated code. | 1249 // Return the generated code. |
| 1250 return GetCode(kind(), Code::FAST, name); | 1250 return GetCode(kind(), Code::FAST, name); |
| 1251 } | 1251 } |
| 1252 | 1252 |
| 1253 | 1253 |
| 1254 Register* LoadStubCompiler::registers() { | 1254 Register* LoadStubCompiler::registers() { |
| 1255 // receiver, name, scratch1, scratch2, scratch3, scratch4. | 1255 // receiver, name, scratch1, scratch2, scratch3, scratch4. |
| 1256 static Register registers[] = { a0, a2, a3, a1, t0, t1 }; | 1256 Register receiver = LoadIC::ReceiverRegister(); |
| 1257 Register name = LoadIC::NameRegister(); |
| 1258 static Register registers[] = { receiver, name, a3, a1, t0, t1 }; |
| 1257 return registers; | 1259 return registers; |
| 1258 } | 1260 } |
| 1259 | 1261 |
| 1260 | 1262 |
| 1261 Register* KeyedLoadStubCompiler::registers() { | 1263 Register* KeyedLoadStubCompiler::registers() { |
| 1262 // receiver, name, scratch1, scratch2, scratch3, scratch4. | 1264 // receiver, name, scratch1, scratch2, scratch3, scratch4. |
| 1263 static Register registers[] = { a1, a0, a2, a3, t0, t1 }; | 1265 Register receiver = KeyedLoadIC::ReceiverRegister(); |
| 1266 Register name = KeyedLoadIC::NameRegister(); |
| 1267 static Register registers[] = { receiver, name, a2, a3, t0, t1 }; |
| 1264 return registers; | 1268 return registers; |
| 1265 } | 1269 } |
| 1266 | 1270 |
| 1267 | 1271 |
| 1268 Register StoreStubCompiler::value() { | 1272 Register StoreStubCompiler::value() { |
| 1269 return a0; | 1273 return a0; |
| 1270 } | 1274 } |
| 1271 | 1275 |
| 1272 | 1276 |
| 1273 Register* StoreStubCompiler::registers() { | 1277 Register* StoreStubCompiler::registers() { |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1500 // ----------------------------------- | 1504 // ----------------------------------- |
| 1501 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); | 1505 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); |
| 1502 } | 1506 } |
| 1503 | 1507 |
| 1504 | 1508 |
| 1505 #undef __ | 1509 #undef __ |
| 1506 | 1510 |
| 1507 } } // namespace v8::internal | 1511 } } // namespace v8::internal |
| 1508 | 1512 |
| 1509 #endif // V8_TARGET_ARCH_MIPS | 1513 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |