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

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

Issue 408183003: Express LoadIC extra ic state with LoadIC::State (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Ports. 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/full-codegen-arm.cc ('k') | src/arm64/full-codegen-arm64.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 2986 matching lines...) Expand 10 before | Expand all | Expand 10 after
2997 __ mov(LoadIC::NameRegister(), Operand(instr->name())); 2997 __ mov(LoadIC::NameRegister(), Operand(instr->name()));
2998 if (FLAG_vector_ics) { 2998 if (FLAG_vector_ics) {
2999 Register vector = ToRegister(instr->temp_vector()); 2999 Register vector = ToRegister(instr->temp_vector());
3000 ASSERT(vector.is(LoadIC::VectorRegister())); 3000 ASSERT(vector.is(LoadIC::VectorRegister()));
3001 __ Move(vector, instr->hydrogen()->feedback_vector()); 3001 __ Move(vector, instr->hydrogen()->feedback_vector());
3002 // No need to allocate this register. 3002 // No need to allocate this register.
3003 ASSERT(LoadIC::SlotRegister().is(r0)); 3003 ASSERT(LoadIC::SlotRegister().is(r0));
3004 __ mov(LoadIC::SlotRegister(), 3004 __ mov(LoadIC::SlotRegister(),
3005 Operand(Smi::FromInt(instr->hydrogen()->slot()))); 3005 Operand(Smi::FromInt(instr->hydrogen()->slot())));
3006 } 3006 }
3007 ContextualMode mode = instr->for_typeof() ? NOT_CONTEXTUAL : CONTEXTUAL; 3007 TypeofState mode = instr->for_typeof() ? INSIDE_TYPEOF : NOT_INSIDE_TYPEOF;
3008 Handle<Code> ic = LoadIC::initialize_stub(isolate(), mode); 3008 Handle<Code> ic = LoadIC::initialize_stub(isolate(), mode);
3009 CallCode(ic, RelocInfo::CODE_TARGET, instr); 3009 CallCode(ic, RelocInfo::CODE_TARGET, instr);
3010 } 3010 }
3011 3011
3012 3012
3013 void LCodeGen::DoStoreGlobalCell(LStoreGlobalCell* instr) { 3013 void LCodeGen::DoStoreGlobalCell(LStoreGlobalCell* instr) {
3014 Register value = ToRegister(instr->value()); 3014 Register value = ToRegister(instr->value());
3015 Register cell = scratch0(); 3015 Register cell = scratch0();
3016 3016
3017 // Load the cell. 3017 // Load the cell.
(...skipping 2872 matching lines...) Expand 10 before | Expand all | Expand 10 after
5890 __ Push(scope_info); 5890 __ Push(scope_info);
5891 __ push(ToRegister(instr->function())); 5891 __ push(ToRegister(instr->function()));
5892 CallRuntime(Runtime::kPushBlockContext, 2, instr); 5892 CallRuntime(Runtime::kPushBlockContext, 2, instr);
5893 RecordSafepoint(Safepoint::kNoLazyDeopt); 5893 RecordSafepoint(Safepoint::kNoLazyDeopt);
5894 } 5894 }
5895 5895
5896 5896
5897 #undef __ 5897 #undef __
5898 5898
5899 } } // namespace v8::internal 5899 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/arm64/full-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698