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

Side by Side Diff: src/mips64/full-codegen-mips64.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 | « src/mips/full-codegen-mips.cc ('k') | no next file » | 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_MIPS64 7 #if V8_TARGET_ARCH_MIPS64
8 8
9 // Note on Mips implementation: 9 // Note on Mips implementation:
10 // 10 //
(...skipping 1493 matching lines...) Expand 10 before | Expand all | Expand 10 after
1504 case Variable::UNALLOCATED: { 1504 case Variable::UNALLOCATED: {
1505 Comment cmnt(masm_, "[ Global variable"); 1505 Comment cmnt(masm_, "[ Global variable");
1506 // Use inline caching. Variable name is passed in a2 and the global 1506 // Use inline caching. Variable name is passed in a2 and the global
1507 // object (receiver) in a0. 1507 // object (receiver) in a0.
1508 __ ld(LoadDescriptor::ReceiverRegister(), GlobalObjectOperand()); 1508 __ ld(LoadDescriptor::ReceiverRegister(), GlobalObjectOperand());
1509 __ li(LoadDescriptor::NameRegister(), Operand(var->name())); 1509 __ li(LoadDescriptor::NameRegister(), Operand(var->name()));
1510 if (FLAG_vector_ics) { 1510 if (FLAG_vector_ics) {
1511 __ li(VectorLoadICDescriptor::SlotRegister(), 1511 __ li(VectorLoadICDescriptor::SlotRegister(),
1512 Operand(SmiFromSlot(proxy->VariableFeedbackSlot()))); 1512 Operand(SmiFromSlot(proxy->VariableFeedbackSlot())));
1513 } 1513 }
1514 CallLoadIC(CONTEXTUAL); 1514 CallGlobalLoadIC(var->name());
1515 context()->Plug(v0); 1515 context()->Plug(v0);
1516 break; 1516 break;
1517 } 1517 }
1518 1518
1519 case Variable::PARAMETER: 1519 case Variable::PARAMETER:
1520 case Variable::LOCAL: 1520 case Variable::LOCAL:
1521 case Variable::CONTEXT: { 1521 case Variable::CONTEXT: {
1522 Comment cmnt(masm_, var->IsContextSlot() ? "[ Context variable" 1522 Comment cmnt(masm_, var->IsContextSlot() ? "[ Context variable"
1523 : "[ Stack variable"); 1523 : "[ Stack variable");
1524 if (var->binding_needs_init()) { 1524 if (var->binding_needs_init()) {
(...skipping 3925 matching lines...) Expand 10 before | Expand all | Expand 10 after
5450 Assembler::target_address_at(pc_immediate_load_address)) == 5450 Assembler::target_address_at(pc_immediate_load_address)) ==
5451 reinterpret_cast<uint64_t>( 5451 reinterpret_cast<uint64_t>(
5452 isolate->builtins()->OsrAfterStackCheck()->entry())); 5452 isolate->builtins()->OsrAfterStackCheck()->entry()));
5453 return OSR_AFTER_STACK_CHECK; 5453 return OSR_AFTER_STACK_CHECK;
5454 } 5454 }
5455 5455
5456 5456
5457 } } // namespace v8::internal 5457 } } // namespace v8::internal
5458 5458
5459 #endif // V8_TARGET_ARCH_MIPS64 5459 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips/full-codegen-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698