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

Side by Side Diff: src/full-codegen/mips/full-codegen-mips.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 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_MIPS 5 #if V8_TARGET_ARCH_MIPS
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 1281 matching lines...) Expand 10 before | Expand all | Expand 10 after
1292 1292
1293 void FullCodeGenerator::EmitGlobalVariableLoad(VariableProxy* proxy, 1293 void FullCodeGenerator::EmitGlobalVariableLoad(VariableProxy* proxy,
1294 TypeofMode typeof_mode) { 1294 TypeofMode typeof_mode) {
1295 Variable* var = proxy->var(); 1295 Variable* var = proxy->var();
1296 DCHECK(var->IsUnallocatedOrGlobalSlot() || 1296 DCHECK(var->IsUnallocatedOrGlobalSlot() ||
1297 (var->IsLookupSlot() && var->mode() == DYNAMIC_GLOBAL)); 1297 (var->IsLookupSlot() && var->mode() == DYNAMIC_GLOBAL));
1298 __ LoadGlobalObject(LoadDescriptor::ReceiverRegister()); 1298 __ LoadGlobalObject(LoadDescriptor::ReceiverRegister());
1299 __ li(LoadDescriptor::NameRegister(), Operand(var->name())); 1299 __ li(LoadDescriptor::NameRegister(), Operand(var->name()));
1300 __ li(LoadDescriptor::SlotRegister(), 1300 __ li(LoadDescriptor::SlotRegister(),
1301 Operand(SmiFromSlot(proxy->VariableFeedbackSlot()))); 1301 Operand(SmiFromSlot(proxy->VariableFeedbackSlot())));
1302 CallLoadIC(typeof_mode); 1302 CallLoadGlobalIC(typeof_mode);
1303 } 1303 }
1304 1304
1305 1305
1306 void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy, 1306 void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy,
1307 TypeofMode typeof_mode) { 1307 TypeofMode typeof_mode) {
1308 // Record position before possible IC call. 1308 // Record position before possible IC call.
1309 SetExpressionPosition(proxy); 1309 SetExpressionPosition(proxy);
1310 PrepareForBailoutForId(proxy->BeforeId(), BailoutState::NO_REGISTERS); 1310 PrepareForBailoutForId(proxy->BeforeId(), BailoutState::NO_REGISTERS);
1311 Variable* var = proxy->var(); 1311 Variable* var = proxy->var();
1312 1312
(...skipping 2507 matching lines...) Expand 10 before | Expand all | Expand 10 after
3820 reinterpret_cast<uint32_t>( 3820 reinterpret_cast<uint32_t>(
3821 isolate->builtins()->OnStackReplacement()->entry())); 3821 isolate->builtins()->OnStackReplacement()->entry()));
3822 return ON_STACK_REPLACEMENT; 3822 return ON_STACK_REPLACEMENT;
3823 } 3823 }
3824 3824
3825 3825
3826 } // namespace internal 3826 } // namespace internal
3827 } // namespace v8 3827 } // namespace v8
3828 3828
3829 #endif // V8_TARGET_ARCH_MIPS 3829 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/full-codegen/ia32/full-codegen-ia32.cc ('k') | src/full-codegen/mips64/full-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698