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

Side by Side Diff: src/full-codegen/arm64/full-codegen-arm64.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
« no previous file with comments | « src/full-codegen/arm/full-codegen-arm.cc ('k') | src/full-codegen/ia32/full-codegen-ia32.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_ARM64 5 #if V8_TARGET_ARCH_ARM64
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 1260 matching lines...) Expand 10 before | Expand all | Expand 10 after
1271 __ Push(x0); 1271 __ Push(x0);
1272 __ CallRuntime(Runtime::kThrowReferenceError); 1272 __ CallRuntime(Runtime::kThrowReferenceError);
1273 } 1273 }
1274 __ B(done); 1274 __ B(done);
1275 } 1275 }
1276 } 1276 }
1277 1277
1278 1278
1279 void FullCodeGenerator::EmitGlobalVariableLoad(VariableProxy* proxy, 1279 void FullCodeGenerator::EmitGlobalVariableLoad(VariableProxy* proxy,
1280 TypeofMode typeof_mode) { 1280 TypeofMode typeof_mode) {
1281 #ifdef DEBUG
1281 Variable* var = proxy->var(); 1282 Variable* var = proxy->var();
1282 DCHECK(var->IsUnallocatedOrGlobalSlot() || 1283 DCHECK(var->IsUnallocatedOrGlobalSlot() ||
1283 (var->IsLookupSlot() && var->mode() == DYNAMIC_GLOBAL)); 1284 (var->IsLookupSlot() && var->mode() == DYNAMIC_GLOBAL));
1284 __ LoadGlobalObject(LoadDescriptor::ReceiverRegister()); 1285 #endif
1285 __ Mov(LoadDescriptor::NameRegister(), Operand(var->name())); 1286 __ Mov(LoadGlobalDescriptor::SlotRegister(),
1286 __ Mov(LoadDescriptor::SlotRegister(),
1287 SmiFromSlot(proxy->VariableFeedbackSlot())); 1287 SmiFromSlot(proxy->VariableFeedbackSlot()));
1288 CallLoadGlobalIC(typeof_mode); 1288 CallLoadGlobalIC(typeof_mode);
1289 } 1289 }
1290 1290
1291 1291
1292 void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy, 1292 void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy,
1293 TypeofMode typeof_mode) { 1293 TypeofMode typeof_mode) {
1294 // Record position before possible IC call. 1294 // Record position before possible IC call.
1295 SetExpressionPosition(proxy); 1295 SetExpressionPosition(proxy);
1296 PrepareForBailoutForId(proxy->BeforeId(), BailoutState::NO_REGISTERS); 1296 PrepareForBailoutForId(proxy->BeforeId(), BailoutState::NO_REGISTERS);
(...skipping 2571 matching lines...) Expand 10 before | Expand all | Expand 10 after
3868 } 3868 }
3869 3869
3870 return INTERRUPT; 3870 return INTERRUPT;
3871 } 3871 }
3872 3872
3873 3873
3874 } // namespace internal 3874 } // namespace internal
3875 } // namespace v8 3875 } // namespace v8
3876 3876
3877 #endif // V8_TARGET_ARCH_ARM64 3877 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/full-codegen/arm/full-codegen-arm.cc ('k') | src/full-codegen/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698