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 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
572 __ cmp(scratch, Immediate(1 << Map::kHasIndexedInterceptor)); | 572 __ cmp(scratch, Immediate(1 << Map::kHasIndexedInterceptor)); |
573 __ j(not_zero, &slow); | 573 __ j(not_zero, &slow); |
574 | 574 |
575 // Everything is fine, call runtime. | 575 // Everything is fine, call runtime. |
576 __ pop(scratch); | 576 __ pop(scratch); |
577 __ push(receiver); // receiver | 577 __ push(receiver); // receiver |
578 __ push(key); // key | 578 __ push(key); // key |
579 __ push(scratch); // return address | 579 __ push(scratch); // return address |
580 | 580 |
581 // Perform tail call to the entry. | 581 // Perform tail call to the entry. |
582 ExternalReference ref = | 582 ExternalReference ref = ExternalReference( |
583 ExternalReference(IC_Utility(kKeyedLoadPropertyWithInterceptor), | 583 IC_Utility(kLoadElementWithInterceptor), masm->isolate()); |
584 masm->isolate()); | |
585 __ TailCallExternalReference(ref, 2, 1); | 584 __ TailCallExternalReference(ref, 2, 1); |
586 | 585 |
587 __ bind(&slow); | 586 __ bind(&slow); |
588 GenerateMiss(masm); | 587 GenerateMiss(masm); |
589 } | 588 } |
590 | 589 |
591 | 590 |
592 void KeyedLoadIC::GenerateSloppyArguments(MacroAssembler* masm) { | 591 void KeyedLoadIC::GenerateSloppyArguments(MacroAssembler* masm) { |
593 // The return address is on the stack. | 592 // The return address is on the stack. |
594 Register receiver = ReceiverRegister(); | 593 Register receiver = ReceiverRegister(); |
(...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1218 Condition cc = (check == ENABLE_INLINED_SMI_CHECK) | 1217 Condition cc = (check == ENABLE_INLINED_SMI_CHECK) |
1219 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) | 1218 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) |
1220 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); | 1219 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); |
1221 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); | 1220 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); |
1222 } | 1221 } |
1223 | 1222 |
1224 | 1223 |
1225 } } // namespace v8::internal | 1224 } } // namespace v8::internal |
1226 | 1225 |
1227 #endif // V8_TARGET_ARCH_IA32 | 1226 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |