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

Side by Side Diff: src/full-codegen/mips64/full-codegen-mips64.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/mips/full-codegen-mips.cc ('k') | src/full-codegen/ppc/full-codegen-ppc.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_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
6 6
7 // Note on Mips implementation: 7 // Note on Mips implementation:
8 // 8 //
9 // The result_register() for mips is the 'v0' register, which is defined 9 // The result_register() for mips is the 'v0' register, which is defined
10 // by the ABI to contain function return values. However, the first 10 // by the ABI to contain function return values. However, the first
(...skipping 1282 matching lines...) Expand 10 before | Expand all | Expand 10 after
1293 1293
1294 void FullCodeGenerator::EmitGlobalVariableLoad(VariableProxy* proxy, 1294 void FullCodeGenerator::EmitGlobalVariableLoad(VariableProxy* proxy,
1295 TypeofMode typeof_mode) { 1295 TypeofMode typeof_mode) {
1296 Variable* var = proxy->var(); 1296 Variable* var = proxy->var();
1297 DCHECK(var->IsUnallocatedOrGlobalSlot() || 1297 DCHECK(var->IsUnallocatedOrGlobalSlot() ||
1298 (var->IsLookupSlot() && var->mode() == DYNAMIC_GLOBAL)); 1298 (var->IsLookupSlot() && var->mode() == DYNAMIC_GLOBAL));
1299 __ LoadGlobalObject(LoadDescriptor::ReceiverRegister()); 1299 __ LoadGlobalObject(LoadDescriptor::ReceiverRegister());
1300 __ li(LoadDescriptor::NameRegister(), Operand(var->name())); 1300 __ li(LoadDescriptor::NameRegister(), Operand(var->name()));
1301 __ li(LoadDescriptor::SlotRegister(), 1301 __ li(LoadDescriptor::SlotRegister(),
1302 Operand(SmiFromSlot(proxy->VariableFeedbackSlot()))); 1302 Operand(SmiFromSlot(proxy->VariableFeedbackSlot())));
1303 CallLoadIC(typeof_mode); 1303 CallLoadGlobalIC(typeof_mode);
1304 } 1304 }
1305 1305
1306 1306
1307 void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy, 1307 void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy,
1308 TypeofMode typeof_mode) { 1308 TypeofMode typeof_mode) {
1309 // Record position before possible IC call. 1309 // Record position before possible IC call.
1310 SetExpressionPosition(proxy); 1310 SetExpressionPosition(proxy);
1311 PrepareForBailoutForId(proxy->BeforeId(), BailoutState::NO_REGISTERS); 1311 PrepareForBailoutForId(proxy->BeforeId(), BailoutState::NO_REGISTERS);
1312 Variable* var = proxy->var(); 1312 Variable* var = proxy->var();
1313 1313
(...skipping 2513 matching lines...) Expand 10 before | Expand all | Expand 10 after
3827 reinterpret_cast<uint64_t>( 3827 reinterpret_cast<uint64_t>(
3828 isolate->builtins()->OnStackReplacement()->entry())); 3828 isolate->builtins()->OnStackReplacement()->entry()));
3829 return ON_STACK_REPLACEMENT; 3829 return ON_STACK_REPLACEMENT;
3830 } 3830 }
3831 3831
3832 3832
3833 } // namespace internal 3833 } // namespace internal
3834 } // namespace v8 3834 } // namespace v8
3835 3835
3836 #endif // V8_TARGET_ARCH_MIPS64 3836 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/full-codegen/mips/full-codegen-mips.cc ('k') | src/full-codegen/ppc/full-codegen-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698