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_X87 | 7 #if V8_TARGET_ARCH_X87 |
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 1435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1446 #define __ ACCESS_MASM(masm) | 1446 #define __ ACCESS_MASM(masm) |
1447 | 1447 |
1448 | 1448 |
1449 void KeyedLoadStubCompiler::GenerateLoadDictionaryElement( | 1449 void KeyedLoadStubCompiler::GenerateLoadDictionaryElement( |
1450 MacroAssembler* masm) { | 1450 MacroAssembler* masm) { |
1451 // ----------- S t a t e ------------- | 1451 // ----------- S t a t e ------------- |
1452 // -- ecx : key | 1452 // -- ecx : key |
1453 // -- edx : receiver | 1453 // -- edx : receiver |
1454 // -- esp[0] : return address | 1454 // -- esp[0] : return address |
1455 // ----------------------------------- | 1455 // ----------------------------------- |
| 1456 ASSERT(edx.is(KeyedLoadIC::ReceiverRegister())); |
| 1457 ASSERT(ecx.is(KeyedLoadIC::NameRegister())); |
1456 Label slow, miss; | 1458 Label slow, miss; |
1457 | 1459 |
1458 // This stub is meant to be tail-jumped to, the receiver must already | 1460 // This stub is meant to be tail-jumped to, the receiver must already |
1459 // have been verified by the caller to not be a smi. | 1461 // have been verified by the caller to not be a smi. |
1460 __ JumpIfNotSmi(ecx, &miss); | 1462 __ JumpIfNotSmi(ecx, &miss); |
1461 __ mov(ebx, ecx); | 1463 __ mov(ebx, ecx); |
1462 __ SmiUntag(ebx); | 1464 __ SmiUntag(ebx); |
1463 __ mov(eax, FieldOperand(edx, JSObject::kElementsOffset)); | 1465 __ mov(eax, FieldOperand(edx, JSObject::kElementsOffset)); |
1464 | 1466 |
1465 // Push receiver on the stack to free up a register for the dictionary | 1467 // Push receiver on the stack to free up a register for the dictionary |
(...skipping 22 matching lines...) Expand all Loading... |
1488 // ----------------------------------- | 1490 // ----------------------------------- |
1489 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); | 1491 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); |
1490 } | 1492 } |
1491 | 1493 |
1492 | 1494 |
1493 #undef __ | 1495 #undef __ |
1494 | 1496 |
1495 } } // namespace v8::internal | 1497 } } // namespace v8::internal |
1496 | 1498 |
1497 #endif // V8_TARGET_ARCH_X87 | 1499 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |