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_IA32 | 7 #if V8_TARGET_ARCH_IA32 |
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 1265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1276 __ mov(eax, isolate()->factory()->undefined_value()); | 1276 __ mov(eax, isolate()->factory()->undefined_value()); |
1277 __ ret(0); | 1277 __ ret(0); |
1278 | 1278 |
1279 // Return the generated code. | 1279 // Return the generated code. |
1280 return GetCode(kind(), Code::FAST, name); | 1280 return GetCode(kind(), Code::FAST, name); |
1281 } | 1281 } |
1282 | 1282 |
1283 | 1283 |
1284 Register* LoadStubCompiler::registers() { | 1284 Register* LoadStubCompiler::registers() { |
1285 // receiver, name, scratch1, scratch2, scratch3, scratch4. | 1285 // receiver, name, scratch1, scratch2, scratch3, scratch4. |
1286 static Register registers[] = { edx, ecx, ebx, eax, edi, no_reg }; | 1286 Register receiver = LoadIC::ReceiverRegister(); |
| 1287 Register name = LoadIC::NameRegister(); |
| 1288 static Register registers[] = { receiver, name, ebx, eax, edi, no_reg }; |
1287 return registers; | 1289 return registers; |
1288 } | 1290 } |
1289 | 1291 |
1290 | 1292 |
1291 Register* KeyedLoadStubCompiler::registers() { | 1293 Register* KeyedLoadStubCompiler::registers() { |
1292 // receiver, name, scratch1, scratch2, scratch3, scratch4. | 1294 // receiver, name, scratch1, scratch2, scratch3, scratch4. |
1293 static Register registers[] = { edx, ecx, ebx, eax, edi, no_reg }; | 1295 Register receiver = KeyedLoadIC::ReceiverRegister(); |
| 1296 Register name = KeyedLoadIC::NameRegister(); |
| 1297 static Register registers[] = { receiver, name, ebx, eax, edi, no_reg }; |
1294 return registers; | 1298 return registers; |
1295 } | 1299 } |
1296 | 1300 |
1297 | 1301 |
1298 Register StoreStubCompiler::value() { | 1302 Register StoreStubCompiler::value() { |
1299 return eax; | 1303 return eax; |
1300 } | 1304 } |
1301 | 1305 |
1302 | 1306 |
1303 Register* StoreStubCompiler::registers() { | 1307 Register* StoreStubCompiler::registers() { |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1485 // ----------------------------------- | 1489 // ----------------------------------- |
1486 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); | 1490 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); |
1487 } | 1491 } |
1488 | 1492 |
1489 | 1493 |
1490 #undef __ | 1494 #undef __ |
1491 | 1495 |
1492 } } // namespace v8::internal | 1496 } } // namespace v8::internal |
1493 | 1497 |
1494 #endif // V8_TARGET_ARCH_IA32 | 1498 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |