Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(450)

Side by Side Diff: src/arm/ic-arm.cc

Issue 424743002: Clean up name distinction between Keyed ICs and Element Handlers (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/arm/macro-assembler-arm.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/arm/assembler-arm.h" 9 #include "src/arm/assembler-arm.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 751 matching lines...) Expand 10 before | Expand all | Expand 10 after
762 __ ldrb(scratch2, FieldMemOperand(scratch1, Map::kBitFieldOffset)); 762 __ ldrb(scratch2, FieldMemOperand(scratch1, Map::kBitFieldOffset));
763 __ and_(scratch2, scratch2, Operand(kSlowCaseBitFieldMask)); 763 __ and_(scratch2, scratch2, Operand(kSlowCaseBitFieldMask));
764 __ cmp(scratch2, Operand(1 << Map::kHasIndexedInterceptor)); 764 __ cmp(scratch2, Operand(1 << Map::kHasIndexedInterceptor));
765 __ b(ne, &slow); 765 __ b(ne, &slow);
766 766
767 // Everything is fine, call runtime. 767 // Everything is fine, call runtime.
768 __ Push(receiver, key); // Receiver, key. 768 __ Push(receiver, key); // Receiver, key.
769 769
770 // Perform tail call to the entry. 770 // Perform tail call to the entry.
771 __ TailCallExternalReference( 771 __ TailCallExternalReference(
772 ExternalReference(IC_Utility(kKeyedLoadPropertyWithInterceptor), 772 ExternalReference(IC_Utility(kLoadElementWithInterceptor),
773 masm->isolate()), 773 masm->isolate()),
774 2, 774 2, 1);
775 1);
776 775
777 __ bind(&slow); 776 __ bind(&slow);
778 GenerateMiss(masm); 777 GenerateMiss(masm);
779 } 778 }
780 779
781 780
782 void KeyedStoreIC::GenerateMiss(MacroAssembler* masm) { 781 void KeyedStoreIC::GenerateMiss(MacroAssembler* masm) {
783 // Push receiver, key and value for runtime call. 782 // Push receiver, key and value for runtime call.
784 __ Push(ReceiverRegister(), NameRegister(), ValueRegister()); 783 __ Push(ReceiverRegister(), NameRegister(), ValueRegister());
785 784
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after
1249 } else { 1248 } else {
1250 ASSERT(Assembler::GetCondition(branch_instr) == ne); 1249 ASSERT(Assembler::GetCondition(branch_instr) == ne);
1251 patcher.EmitCondition(eq); 1250 patcher.EmitCondition(eq);
1252 } 1251 }
1253 } 1252 }
1254 1253
1255 1254
1256 } } // namespace v8::internal 1255 } } // namespace v8::internal
1257 1256
1258 #endif // V8_TARGET_ARCH_ARM 1257 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm/macro-assembler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698