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

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

Issue 969803002: MIPS: Compute correct contextual load ICs in fullcodegen. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 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 | « no previous file | src/mips64/full-codegen-mips64.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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_MIPS 7 #if V8_TARGET_ARCH_MIPS
8 8
9 // Note on Mips implementation: 9 // Note on Mips implementation:
10 // 10 //
(...skipping 1495 matching lines...) Expand 10 before | Expand all | Expand 10 after
1506 // variables. 1506 // variables.
1507 switch (var->location()) { 1507 switch (var->location()) {
1508 case Variable::UNALLOCATED: { 1508 case Variable::UNALLOCATED: {
1509 Comment cmnt(masm_, "[ Global variable"); 1509 Comment cmnt(masm_, "[ Global variable");
1510 __ lw(LoadDescriptor::ReceiverRegister(), GlobalObjectOperand()); 1510 __ lw(LoadDescriptor::ReceiverRegister(), GlobalObjectOperand());
1511 __ li(LoadDescriptor::NameRegister(), Operand(var->name())); 1511 __ li(LoadDescriptor::NameRegister(), Operand(var->name()));
1512 if (FLAG_vector_ics) { 1512 if (FLAG_vector_ics) {
1513 __ li(VectorLoadICDescriptor::SlotRegister(), 1513 __ li(VectorLoadICDescriptor::SlotRegister(),
1514 Operand(SmiFromSlot(proxy->VariableFeedbackSlot()))); 1514 Operand(SmiFromSlot(proxy->VariableFeedbackSlot())));
1515 } 1515 }
1516 CallLoadIC(CONTEXTUAL); 1516 CallGlobalLoadIC(var->name());
1517 context()->Plug(v0); 1517 context()->Plug(v0);
1518 break; 1518 break;
1519 } 1519 }
1520 1520
1521 case Variable::PARAMETER: 1521 case Variable::PARAMETER:
1522 case Variable::LOCAL: 1522 case Variable::LOCAL:
1523 case Variable::CONTEXT: { 1523 case Variable::CONTEXT: {
1524 Comment cmnt(masm_, var->IsContextSlot() ? "[ Context variable" 1524 Comment cmnt(masm_, var->IsContextSlot() ? "[ Context variable"
1525 : "[ Stack variable"); 1525 : "[ Stack variable");
1526 if (var->binding_needs_init()) { 1526 if (var->binding_needs_init()) {
(...skipping 3917 matching lines...) Expand 10 before | Expand all | Expand 10 after
5444 Assembler::target_address_at(pc_immediate_load_address)) == 5444 Assembler::target_address_at(pc_immediate_load_address)) ==
5445 reinterpret_cast<uint32_t>( 5445 reinterpret_cast<uint32_t>(
5446 isolate->builtins()->OsrAfterStackCheck()->entry())); 5446 isolate->builtins()->OsrAfterStackCheck()->entry()));
5447 return OSR_AFTER_STACK_CHECK; 5447 return OSR_AFTER_STACK_CHECK;
5448 } 5448 }
5449 5449
5450 5450
5451 } } // namespace v8::internal 5451 } } // namespace v8::internal
5452 5452
5453 #endif // V8_TARGET_ARCH_MIPS 5453 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « no previous file | src/mips64/full-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698