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_ARM | 7 #if V8_TARGET_ARCH_ARM |
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 1461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1472 #define __ ACCESS_MASM(masm) | 1472 #define __ ACCESS_MASM(masm) |
1473 | 1473 |
1474 | 1474 |
1475 void KeyedLoadStubCompiler::GenerateLoadDictionaryElement( | 1475 void KeyedLoadStubCompiler::GenerateLoadDictionaryElement( |
1476 MacroAssembler* masm) { | 1476 MacroAssembler* masm) { |
1477 // ---------- S t a t e -------------- | 1477 // ---------- S t a t e -------------- |
1478 // -- lr : return address | 1478 // -- lr : return address |
1479 // -- r0 : key | 1479 // -- r0 : key |
1480 // -- r1 : receiver | 1480 // -- r1 : receiver |
1481 // ----------------------------------- | 1481 // ----------------------------------- |
| 1482 ASSERT(r1.is(KeyedLoadIC::ReceiverRegister())); |
| 1483 ASSERT(r0.is(KeyedLoadIC::NameRegister())); |
1482 Label slow, miss; | 1484 Label slow, miss; |
1483 | 1485 |
1484 Register key = r0; | 1486 Register key = r0; |
1485 Register receiver = r1; | 1487 Register receiver = r1; |
1486 | 1488 |
1487 __ UntagAndJumpIfNotSmi(r2, key, &miss); | 1489 __ UntagAndJumpIfNotSmi(r2, key, &miss); |
1488 __ ldr(r4, FieldMemOperand(receiver, JSObject::kElementsOffset)); | 1490 __ ldr(r4, FieldMemOperand(receiver, JSObject::kElementsOffset)); |
1489 __ LoadFromNumberDictionary(&slow, r4, key, r0, r2, r3, r5); | 1491 __ LoadFromNumberDictionary(&slow, r4, key, r0, r2, r3, r5); |
1490 __ Ret(); | 1492 __ Ret(); |
1491 | 1493 |
(...skipping 19 matching lines...) Expand all Loading... |
1511 // ----------------------------------- | 1513 // ----------------------------------- |
1512 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); | 1514 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); |
1513 } | 1515 } |
1514 | 1516 |
1515 | 1517 |
1516 #undef __ | 1518 #undef __ |
1517 | 1519 |
1518 } } // namespace v8::internal | 1520 } } // namespace v8::internal |
1519 | 1521 |
1520 #endif // V8_TARGET_ARCH_ARM | 1522 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |