| 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_X64 | 7 #if V8_TARGET_ARCH_X64 |
| 8 | 8 |
| 9 #include "src/arguments.h" | 9 #include "src/arguments.h" |
| 10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
| (...skipping 1380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1391 #define __ ACCESS_MASM(masm) | 1391 #define __ ACCESS_MASM(masm) |
| 1392 | 1392 |
| 1393 | 1393 |
| 1394 void KeyedLoadStubCompiler::GenerateLoadDictionaryElement( | 1394 void KeyedLoadStubCompiler::GenerateLoadDictionaryElement( |
| 1395 MacroAssembler* masm) { | 1395 MacroAssembler* masm) { |
| 1396 // ----------- S t a t e ------------- | 1396 // ----------- S t a t e ------------- |
| 1397 // -- rax : key | 1397 // -- rax : key |
| 1398 // -- rdx : receiver | 1398 // -- rdx : receiver |
| 1399 // -- rsp[0] : return address | 1399 // -- rsp[0] : return address |
| 1400 // ----------------------------------- | 1400 // ----------------------------------- |
| 1401 ASSERT(rdx.is(KeyedLoadIC::ReceiverRegister())); |
| 1402 ASSERT(rax.is(KeyedLoadIC::NameRegister())); |
| 1401 Label slow, miss; | 1403 Label slow, miss; |
| 1402 | 1404 |
| 1403 // This stub is meant to be tail-jumped to, the receiver must already | 1405 // This stub is meant to be tail-jumped to, the receiver must already |
| 1404 // have been verified by the caller to not be a smi. | 1406 // have been verified by the caller to not be a smi. |
| 1405 | 1407 |
| 1406 __ JumpIfNotSmi(rax, &miss); | 1408 __ JumpIfNotSmi(rax, &miss); |
| 1407 __ SmiToInteger32(rbx, rax); | 1409 __ SmiToInteger32(rbx, rax); |
| 1408 __ movp(rcx, FieldOperand(rdx, JSObject::kElementsOffset)); | 1410 __ movp(rcx, FieldOperand(rdx, JSObject::kElementsOffset)); |
| 1409 | 1411 |
| 1410 // Check whether the elements is a number dictionary. | 1412 // Check whether the elements is a number dictionary. |
| (...skipping 20 matching lines...) Expand all Loading... |
| 1431 // ----------------------------------- | 1433 // ----------------------------------- |
| 1432 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); | 1434 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); |
| 1433 } | 1435 } |
| 1434 | 1436 |
| 1435 | 1437 |
| 1436 #undef __ | 1438 #undef __ |
| 1437 | 1439 |
| 1438 } } // namespace v8::internal | 1440 } } // namespace v8::internal |
| 1439 | 1441 |
| 1440 #endif // V8_TARGET_ARCH_X64 | 1442 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |