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

Side by Side Diff: src/full-codegen/ppc/full-codegen-ppc.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
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_PPC 5 #if V8_TARGET_ARCH_PPC
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 1248 matching lines...) Expand 10 before | Expand all | Expand 10 after
1259 1259
1260 void FullCodeGenerator::EmitGlobalVariableLoad(VariableProxy* proxy, 1260 void FullCodeGenerator::EmitGlobalVariableLoad(VariableProxy* proxy,
1261 TypeofMode typeof_mode) { 1261 TypeofMode typeof_mode) {
1262 Variable* var = proxy->var(); 1262 Variable* var = proxy->var();
1263 DCHECK(var->IsUnallocatedOrGlobalSlot() || 1263 DCHECK(var->IsUnallocatedOrGlobalSlot() ||
1264 (var->IsLookupSlot() && var->mode() == DYNAMIC_GLOBAL)); 1264 (var->IsLookupSlot() && var->mode() == DYNAMIC_GLOBAL));
1265 __ LoadGlobalObject(LoadDescriptor::ReceiverRegister()); 1265 __ LoadGlobalObject(LoadDescriptor::ReceiverRegister());
1266 __ mov(LoadDescriptor::NameRegister(), Operand(var->name())); 1266 __ mov(LoadDescriptor::NameRegister(), Operand(var->name()));
1267 __ mov(LoadDescriptor::SlotRegister(), 1267 __ mov(LoadDescriptor::SlotRegister(),
1268 Operand(SmiFromSlot(proxy->VariableFeedbackSlot()))); 1268 Operand(SmiFromSlot(proxy->VariableFeedbackSlot())));
1269 CallLoadIC(typeof_mode); 1269 CallLoadGlobalIC(typeof_mode);
1270 } 1270 }
1271 1271
1272 1272
1273 void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy, 1273 void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy,
1274 TypeofMode typeof_mode) { 1274 TypeofMode typeof_mode) {
1275 // Record position before possible IC call. 1275 // Record position before possible IC call.
1276 SetExpressionPosition(proxy); 1276 SetExpressionPosition(proxy);
1277 PrepareForBailoutForId(proxy->BeforeId(), BailoutState::NO_REGISTERS); 1277 PrepareForBailoutForId(proxy->BeforeId(), BailoutState::NO_REGISTERS);
1278 Variable* var = proxy->var(); 1278 Variable* var = proxy->var();
1279 1279
(...skipping 2517 matching lines...) Expand 10 before | Expand all | Expand 10 after
3797 3797
3798 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address))); 3798 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address)));
3799 3799
3800 DCHECK(interrupt_address == 3800 DCHECK(interrupt_address ==
3801 isolate->builtins()->OnStackReplacement()->entry()); 3801 isolate->builtins()->OnStackReplacement()->entry());
3802 return ON_STACK_REPLACEMENT; 3802 return ON_STACK_REPLACEMENT;
3803 } 3803 }
3804 } // namespace internal 3804 } // namespace internal
3805 } // namespace v8 3805 } // namespace v8
3806 #endif // V8_TARGET_ARCH_PPC 3806 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/full-codegen/mips64/full-codegen-mips64.cc ('k') | src/full-codegen/s390/full-codegen-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698