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

Side by Side Diff: src/ia32/lithium-codegen-ia32.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/ia32/full-codegen-ia32.cc ('k') | src/ic.h » ('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_IA32 7 #if V8_TARGET_ARCH_IA32
8 8
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 2827 matching lines...) Expand 10 before | Expand all | Expand 10 after
2838 __ mov(LoadIC::NameRegister(), instr->name()); 2838 __ mov(LoadIC::NameRegister(), instr->name());
2839 if (FLAG_vector_ics) { 2839 if (FLAG_vector_ics) {
2840 Register vector = ToRegister(instr->temp_vector()); 2840 Register vector = ToRegister(instr->temp_vector());
2841 ASSERT(vector.is(LoadIC::VectorRegister())); 2841 ASSERT(vector.is(LoadIC::VectorRegister()));
2842 __ mov(vector, instr->hydrogen()->feedback_vector()); 2842 __ mov(vector, instr->hydrogen()->feedback_vector());
2843 // No need to allocate this register. 2843 // No need to allocate this register.
2844 ASSERT(LoadIC::SlotRegister().is(eax)); 2844 ASSERT(LoadIC::SlotRegister().is(eax));
2845 __ mov(LoadIC::SlotRegister(), 2845 __ mov(LoadIC::SlotRegister(),
2846 Immediate(Smi::FromInt(instr->hydrogen()->slot()))); 2846 Immediate(Smi::FromInt(instr->hydrogen()->slot())));
2847 } 2847 }
2848 ContextualMode mode = instr->for_typeof() ? NOT_CONTEXTUAL : CONTEXTUAL; 2848 TypeofState mode = instr->for_typeof() ? INSIDE_TYPEOF : NOT_INSIDE_TYPEOF;
2849 Handle<Code> ic = LoadIC::initialize_stub(isolate(), mode); 2849 Handle<Code> ic = LoadIC::initialize_stub(isolate(), mode);
2850 CallCode(ic, RelocInfo::CODE_TARGET, instr); 2850 CallCode(ic, RelocInfo::CODE_TARGET, instr);
2851 } 2851 }
2852 2852
2853 2853
2854 void LCodeGen::DoStoreGlobalCell(LStoreGlobalCell* instr) { 2854 void LCodeGen::DoStoreGlobalCell(LStoreGlobalCell* instr) {
2855 Register value = ToRegister(instr->value()); 2855 Register value = ToRegister(instr->value());
2856 Handle<PropertyCell> cell_handle = instr->hydrogen()->cell().handle(); 2856 Handle<PropertyCell> cell_handle = instr->hydrogen()->cell().handle();
2857 2857
2858 // If the cell we are storing to contains the hole it could have 2858 // If the cell we are storing to contains the hole it could have
(...skipping 2824 matching lines...) Expand 10 before | Expand all | Expand 10 after
5683 CallRuntime(Runtime::kPushBlockContext, 2, instr); 5683 CallRuntime(Runtime::kPushBlockContext, 2, instr);
5684 RecordSafepoint(Safepoint::kNoLazyDeopt); 5684 RecordSafepoint(Safepoint::kNoLazyDeopt);
5685 } 5685 }
5686 5686
5687 5687
5688 #undef __ 5688 #undef __
5689 5689
5690 } } // namespace v8::internal 5690 } } // namespace v8::internal
5691 5691
5692 #endif // V8_TARGET_ARCH_IA32 5692 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/full-codegen-ia32.cc ('k') | src/ic.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698