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 1452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1463 #define __ ACCESS_MASM(masm) | 1463 #define __ ACCESS_MASM(masm) |
1464 | 1464 |
1465 | 1465 |
1466 void KeyedLoadStubCompiler::GenerateLoadDictionaryElement( | 1466 void KeyedLoadStubCompiler::GenerateLoadDictionaryElement( |
1467 MacroAssembler* masm) { | 1467 MacroAssembler* masm) { |
1468 // ---------- S t a t e -------------- | 1468 // ---------- S t a t e -------------- |
1469 // -- ra : return address | 1469 // -- ra : return address |
1470 // -- a0 : key | 1470 // -- a0 : key |
1471 // -- a1 : receiver | 1471 // -- a1 : receiver |
1472 // ----------------------------------- | 1472 // ----------------------------------- |
| 1473 ASSERT(a1.is(KeyedLoadIC::ReceiverRegister())); |
| 1474 ASSERT(a0.is(KeyedLoadIC::NameRegister())); |
1473 Label slow, miss; | 1475 Label slow, miss; |
1474 | 1476 |
1475 Register key = a0; | 1477 Register key = a0; |
1476 Register receiver = a1; | 1478 Register receiver = a1; |
1477 | 1479 |
1478 __ JumpIfNotSmi(key, &miss); | 1480 __ JumpIfNotSmi(key, &miss); |
1479 __ lw(t0, FieldMemOperand(receiver, JSObject::kElementsOffset)); | 1481 __ lw(t0, FieldMemOperand(receiver, JSObject::kElementsOffset)); |
1480 __ sra(a2, a0, kSmiTagSize); | 1482 __ sra(a2, a0, kSmiTagSize); |
1481 __ LoadFromNumberDictionary(&slow, t0, a0, v0, a2, a3, t1); | 1483 __ LoadFromNumberDictionary(&slow, t0, a0, v0, a2, a3, t1); |
1482 __ Ret(); | 1484 __ Ret(); |
(...skipping 21 matching lines...) Expand all Loading... |
1504 // ----------------------------------- | 1506 // ----------------------------------- |
1505 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); | 1507 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); |
1506 } | 1508 } |
1507 | 1509 |
1508 | 1510 |
1509 #undef __ | 1511 #undef __ |
1510 | 1512 |
1511 } } // namespace v8::internal | 1513 } } // namespace v8::internal |
1512 | 1514 |
1513 #endif // V8_TARGET_ARCH_MIPS | 1515 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |