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

Side by Side Diff: src/mips64/full-codegen-mips64.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/mips/full-codegen-mips.cc ('k') | src/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 #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 1456 matching lines...) Expand 10 before | Expand all | Expand 10 after
1467 } 1467 }
1468 } 1468 }
1469 __ Branch(done); 1469 __ Branch(done);
1470 } 1470 }
1471 } 1471 }
1472 1472
1473 1473
1474 void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy) { 1474 void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy) {
1475 // Record position before possible IC call. 1475 // Record position before possible IC call.
1476 SetSourcePosition(proxy->position()); 1476 SetSourcePosition(proxy->position());
1477 PrepareForBailoutForId(proxy->BeforeId(), NO_REGISTERS);
1477 Variable* var = proxy->var(); 1478 Variable* var = proxy->var();
1478 1479
1479 // Three cases: global variables, lookup variables, and all other types of 1480 // Three cases: global variables, lookup variables, and all other types of
1480 // variables. 1481 // variables.
1481 switch (var->location()) { 1482 switch (var->location()) {
1482 case Variable::UNALLOCATED: { 1483 case Variable::UNALLOCATED: {
1483 Comment cmnt(masm_, "[ Global variable"); 1484 Comment cmnt(masm_, "[ Global variable");
1484 // Use inline caching. Variable name is passed in a2 and the global 1485 // Use inline caching. Variable name is passed in a2 and the global
1485 // object (receiver) in a0. 1486 // object (receiver) in a0.
1486 __ ld(LoadDescriptor::ReceiverRegister(), GlobalObjectOperand()); 1487 __ ld(LoadDescriptor::ReceiverRegister(), GlobalObjectOperand());
(...skipping 3969 matching lines...) Expand 10 before | Expand all | Expand 10 after
5456 Assembler::target_address_at(pc_immediate_load_address)) == 5457 Assembler::target_address_at(pc_immediate_load_address)) ==
5457 reinterpret_cast<uint64_t>( 5458 reinterpret_cast<uint64_t>(
5458 isolate->builtins()->OsrAfterStackCheck()->entry())); 5459 isolate->builtins()->OsrAfterStackCheck()->entry()));
5459 return OSR_AFTER_STACK_CHECK; 5460 return OSR_AFTER_STACK_CHECK;
5460 } 5461 }
5461 5462
5462 5463
5463 } } // namespace v8::internal 5464 } } // namespace v8::internal
5464 5465
5465 #endif // V8_TARGET_ARCH_MIPS64 5466 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips/full-codegen-mips.cc ('k') | src/ppc/full-codegen-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698