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 Register receiver = LoadIC::kReceiverRegister; | 1256 static Register registers[] = { a0, a2, a3, a1, t0, t1 }; |
1257 Register name = LoadIC::kNameRegister; | |
1258 static Register registers[] = { receiver, name, a3, a1, t0, t1 }; | |
1259 return registers; | 1257 return registers; |
1260 } | 1258 } |
1261 | 1259 |
1262 | 1260 |
1263 Register* KeyedLoadStubCompiler::registers() { | 1261 Register* KeyedLoadStubCompiler::registers() { |
1264 // receiver, name, scratch1, scratch2, scratch3, scratch4. | 1262 // receiver, name, scratch1, scratch2, scratch3, scratch4. |
1265 Register receiver = KeyedLoadIC::kReceiverRegister; | 1263 static Register registers[] = { a1, a0, a2, a3, t0, t1 }; |
1266 Register name = KeyedLoadIC::kNameRegister; | |
1267 static Register registers[] = { receiver, name, a2, a3, t0, t1 }; | |
1268 return registers; | 1264 return registers; |
1269 } | 1265 } |
1270 | 1266 |
1271 | 1267 |
1272 Register StoreStubCompiler::value() { | 1268 Register StoreStubCompiler::value() { |
1273 return a0; | 1269 return a0; |
1274 } | 1270 } |
1275 | 1271 |
1276 | 1272 |
1277 Register* StoreStubCompiler::registers() { | 1273 Register* StoreStubCompiler::registers() { |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1504 // ----------------------------------- | 1500 // ----------------------------------- |
1505 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); | 1501 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); |
1506 } | 1502 } |
1507 | 1503 |
1508 | 1504 |
1509 #undef __ | 1505 #undef __ |
1510 | 1506 |
1511 } } // namespace v8::internal | 1507 } } // namespace v8::internal |
1512 | 1508 |
1513 #endif // V8_TARGET_ARCH_MIPS | 1509 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |