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

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

Issue 1139733002: Add a bailout id just before every variable load in fullcode. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 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/ia32/full-codegen-ia32.cc ('k') | 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 1459 matching lines...) Expand 10 before | Expand all | Expand 10 after
1470 } 1470 }
1471 } 1471 }
1472 __ Branch(done); 1472 __ Branch(done);
1473 } 1473 }
1474 } 1474 }
1475 1475
1476 1476
1477 void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy) { 1477 void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy) {
1478 // Record position before possible IC call. 1478 // Record position before possible IC call.
1479 SetSourcePosition(proxy->position()); 1479 SetSourcePosition(proxy->position());
1480 PrepareForBailoutForId(proxy->BeforeId(), NO_REGISTERS);
1480 Variable* var = proxy->var(); 1481 Variable* var = proxy->var();
1481 1482
1482 // Three cases: global variables, lookup variables, and all other types of 1483 // Three cases: global variables, lookup variables, and all other types of
1483 // variables. 1484 // variables.
1484 switch (var->location()) { 1485 switch (var->location()) {
1485 case Variable::UNALLOCATED: { 1486 case Variable::UNALLOCATED: {
1486 Comment cmnt(masm_, "[ Global variable"); 1487 Comment cmnt(masm_, "[ Global variable");
1487 __ lw(LoadDescriptor::ReceiverRegister(), GlobalObjectOperand()); 1488 __ lw(LoadDescriptor::ReceiverRegister(), GlobalObjectOperand());
1488 __ li(LoadDescriptor::NameRegister(), Operand(var->name())); 1489 __ li(LoadDescriptor::NameRegister(), Operand(var->name()));
1489 if (FLAG_vector_ics) { 1490 if (FLAG_vector_ics) {
(...skipping 3959 matching lines...) Expand 10 before | Expand all | Expand 10 after
5449 Assembler::target_address_at(pc_immediate_load_address)) == 5450 Assembler::target_address_at(pc_immediate_load_address)) ==
5450 reinterpret_cast<uint32_t>( 5451 reinterpret_cast<uint32_t>(
5451 isolate->builtins()->OsrAfterStackCheck()->entry())); 5452 isolate->builtins()->OsrAfterStackCheck()->entry()));
5452 return OSR_AFTER_STACK_CHECK; 5453 return OSR_AFTER_STACK_CHECK;
5453 } 5454 }
5454 5455
5455 5456
5456 } } // namespace v8::internal 5457 } } // namespace v8::internal
5457 5458
5458 #endif // V8_TARGET_ARCH_MIPS 5459 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/ia32/full-codegen-ia32.cc ('k') | src/mips64/full-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698