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

Side by Side Diff: src/arm/lithium-codegen-arm.cc

Issue 338963003: KeyedLoadIC should have same register spec as LoadIC. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Last comment response. Created 6 years, 5 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 | « src/arm/lithium-arm.cc ('k') | src/arm/stub-cache-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 #include "src/arm/lithium-codegen-arm.h" 7 #include "src/arm/lithium-codegen-arm.h"
8 #include "src/arm/lithium-gap-resolver-arm.h" 8 #include "src/arm/lithium-gap-resolver-arm.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/hydrogen-osr.h" 10 #include "src/hydrogen-osr.h"
(...skipping 3376 matching lines...) Expand 10 before | Expand all | Expand 10 after
3387 } else { 3387 } else {
3388 ASSERT_EQ(-1, shift_size); 3388 ASSERT_EQ(-1, shift_size);
3389 __ add(scratch0(), base, Operand(key, ASR, 1)); 3389 __ add(scratch0(), base, Operand(key, ASR, 1));
3390 return MemOperand(scratch0(), base_offset); 3390 return MemOperand(scratch0(), base_offset);
3391 } 3391 }
3392 } 3392 }
3393 3393
3394 3394
3395 void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) { 3395 void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) {
3396 ASSERT(ToRegister(instr->context()).is(cp)); 3396 ASSERT(ToRegister(instr->context()).is(cp));
3397 ASSERT(ToRegister(instr->object()).is(KeyedLoadIC::ReceiverRegister())); 3397 ASSERT(ToRegister(instr->object()).is(LoadIC::ReceiverRegister()));
3398 ASSERT(ToRegister(instr->key()).is(KeyedLoadIC::NameRegister())); 3398 ASSERT(ToRegister(instr->key()).is(LoadIC::NameRegister()));
3399 3399
3400 Handle<Code> ic = isolate()->builtins()->KeyedLoadIC_Initialize(); 3400 Handle<Code> ic = isolate()->builtins()->KeyedLoadIC_Initialize();
3401 CallCode(ic, RelocInfo::CODE_TARGET, instr, NEVER_INLINE_TARGET_ADDRESS); 3401 CallCode(ic, RelocInfo::CODE_TARGET, instr, NEVER_INLINE_TARGET_ADDRESS);
3402 } 3402 }
3403 3403
3404 3404
3405 void LCodeGen::DoArgumentsElements(LArgumentsElements* instr) { 3405 void LCodeGen::DoArgumentsElements(LArgumentsElements* instr) {
3406 Register scratch = scratch0(); 3406 Register scratch = scratch0();
3407 Register result = ToRegister(instr->result()); 3407 Register result = ToRegister(instr->result());
3408 3408
(...skipping 2435 matching lines...) Expand 10 before | Expand all | Expand 10 after
5844 __ Push(scope_info); 5844 __ Push(scope_info);
5845 __ push(ToRegister(instr->function())); 5845 __ push(ToRegister(instr->function()));
5846 CallRuntime(Runtime::kPushBlockContext, 2, instr); 5846 CallRuntime(Runtime::kPushBlockContext, 2, instr);
5847 RecordSafepoint(Safepoint::kNoLazyDeopt); 5847 RecordSafepoint(Safepoint::kNoLazyDeopt);
5848 } 5848 }
5849 5849
5850 5850
5851 #undef __ 5851 #undef __
5852 5852
5853 } } // namespace v8::internal 5853 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.cc ('k') | src/arm/stub-cache-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698