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

Side by Side Diff: src/full-codegen/ia32/full-codegen-ia32.cc

Issue 1912633002: [ic] Split LoadIC into LoadGlobalIC and LoadIC. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebasing Created 4 years, 6 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
« no previous file with comments | « src/full-codegen/full-codegen.cc ('k') | src/full-codegen/mips/full-codegen-mips.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 #if V8_TARGET_ARCH_IA32 5 #if V8_TARGET_ARCH_IA32
6 6
7 #include "src/ast/scopes.h" 7 #include "src/ast/scopes.h"
8 #include "src/code-factory.h" 8 #include "src/code-factory.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 1212 matching lines...) Expand 10 before | Expand all | Expand 10 after
1223 Variable* var = proxy->var(); 1223 Variable* var = proxy->var();
1224 DCHECK(var->IsUnallocatedOrGlobalSlot() || 1224 DCHECK(var->IsUnallocatedOrGlobalSlot() ||
1225 (var->IsLookupSlot() && var->mode() == DYNAMIC_GLOBAL)); 1225 (var->IsLookupSlot() && var->mode() == DYNAMIC_GLOBAL));
1226 __ mov(LoadDescriptor::ReceiverRegister(), NativeContextOperand()); 1226 __ mov(LoadDescriptor::ReceiverRegister(), NativeContextOperand());
1227 __ mov(LoadDescriptor::ReceiverRegister(), 1227 __ mov(LoadDescriptor::ReceiverRegister(),
1228 ContextOperand(LoadDescriptor::ReceiverRegister(), 1228 ContextOperand(LoadDescriptor::ReceiverRegister(),
1229 Context::EXTENSION_INDEX)); 1229 Context::EXTENSION_INDEX));
1230 __ mov(LoadDescriptor::NameRegister(), var->name()); 1230 __ mov(LoadDescriptor::NameRegister(), var->name());
1231 __ mov(LoadDescriptor::SlotRegister(), 1231 __ mov(LoadDescriptor::SlotRegister(),
1232 Immediate(SmiFromSlot(proxy->VariableFeedbackSlot()))); 1232 Immediate(SmiFromSlot(proxy->VariableFeedbackSlot())));
1233 CallLoadIC(typeof_mode); 1233 CallLoadGlobalIC(typeof_mode);
1234 } 1234 }
1235 1235
1236 1236
1237 void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy, 1237 void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy,
1238 TypeofMode typeof_mode) { 1238 TypeofMode typeof_mode) {
1239 SetExpressionPosition(proxy); 1239 SetExpressionPosition(proxy);
1240 PrepareForBailoutForId(proxy->BeforeId(), BailoutState::NO_REGISTERS); 1240 PrepareForBailoutForId(proxy->BeforeId(), BailoutState::NO_REGISTERS);
1241 Variable* var = proxy->var(); 1241 Variable* var = proxy->var();
1242 1242
1243 // Three cases: global variables, lookup variables, and all other types of 1243 // Three cases: global variables, lookup variables, and all other types of
(...skipping 2466 matching lines...) Expand 10 before | Expand all | Expand 10 after
3710 isolate->builtins()->OnStackReplacement()->entry(), 3710 isolate->builtins()->OnStackReplacement()->entry(),
3711 Assembler::target_address_at(call_target_address, unoptimized_code)); 3711 Assembler::target_address_at(call_target_address, unoptimized_code));
3712 return ON_STACK_REPLACEMENT; 3712 return ON_STACK_REPLACEMENT;
3713 } 3713 }
3714 3714
3715 3715
3716 } // namespace internal 3716 } // namespace internal
3717 } // namespace v8 3717 } // namespace v8
3718 3718
3719 #endif // V8_TARGET_ARCH_IA32 3719 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/full-codegen/full-codegen.cc ('k') | src/full-codegen/mips/full-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698