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

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

Issue 2096653003: [ic] Don't pass receiver and name to LoadGlobalIC. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@store-name-in-metavector
Patch Set: Removed name parameter. 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 1238 matching lines...) Expand 10 before | Expand all | Expand 10 after
1249 __ push(r3); 1249 __ push(r3);
1250 __ CallRuntime(Runtime::kThrowReferenceError); 1250 __ CallRuntime(Runtime::kThrowReferenceError);
1251 } 1251 }
1252 __ b(done); 1252 __ b(done);
1253 } 1253 }
1254 } 1254 }
1255 1255
1256 1256
1257 void FullCodeGenerator::EmitGlobalVariableLoad(VariableProxy* proxy, 1257 void FullCodeGenerator::EmitGlobalVariableLoad(VariableProxy* proxy,
1258 TypeofMode typeof_mode) { 1258 TypeofMode typeof_mode) {
1259 #ifdef DEBUG
1259 Variable* var = proxy->var(); 1260 Variable* var = proxy->var();
1260 DCHECK(var->IsUnallocatedOrGlobalSlot() || 1261 DCHECK(var->IsUnallocatedOrGlobalSlot() ||
1261 (var->IsLookupSlot() && var->mode() == DYNAMIC_GLOBAL)); 1262 (var->IsLookupSlot() && var->mode() == DYNAMIC_GLOBAL));
1262 __ LoadGlobalObject(LoadDescriptor::ReceiverRegister()); 1263 #endif
1263 __ mov(LoadDescriptor::NameRegister(), Operand(var->name())); 1264 __ mov(LoadGlobalDescriptor::SlotRegister(),
1264 __ mov(LoadDescriptor::SlotRegister(),
1265 Operand(SmiFromSlot(proxy->VariableFeedbackSlot()))); 1265 Operand(SmiFromSlot(proxy->VariableFeedbackSlot())));
1266 CallLoadGlobalIC(typeof_mode); 1266 CallLoadGlobalIC(typeof_mode);
1267 } 1267 }
1268 1268
1269 1269
1270 void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy, 1270 void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy,
1271 TypeofMode typeof_mode) { 1271 TypeofMode typeof_mode) {
1272 // Record position before possible IC call. 1272 // Record position before possible IC call.
1273 SetExpressionPosition(proxy); 1273 SetExpressionPosition(proxy);
1274 PrepareForBailoutForId(proxy->BeforeId(), BailoutState::NO_REGISTERS); 1274 PrepareForBailoutForId(proxy->BeforeId(), BailoutState::NO_REGISTERS);
(...skipping 2507 matching lines...) Expand 10 before | Expand all | Expand 10 after
3782 3782
3783 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address))); 3783 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address)));
3784 3784
3785 DCHECK(interrupt_address == 3785 DCHECK(interrupt_address ==
3786 isolate->builtins()->OnStackReplacement()->entry()); 3786 isolate->builtins()->OnStackReplacement()->entry());
3787 return ON_STACK_REPLACEMENT; 3787 return ON_STACK_REPLACEMENT;
3788 } 3788 }
3789 } // namespace internal 3789 } // namespace internal
3790 } // namespace v8 3790 } // namespace v8
3791 #endif // V8_TARGET_ARCH_PPC 3791 #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