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

Side by Side Diff: src/arm64/full-codegen-arm64.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/arm/full-codegen-arm.cc ('k') | src/ast.h » ('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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_ARM64 7 #if V8_TARGET_ARCH_ARM64
8 8
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 1454 matching lines...) Expand 10 before | Expand all | Expand 10 after
1465 } 1465 }
1466 } 1466 }
1467 __ B(done); 1467 __ B(done);
1468 } 1468 }
1469 } 1469 }
1470 1470
1471 1471
1472 void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy) { 1472 void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy) {
1473 // Record position before possible IC call. 1473 // Record position before possible IC call.
1474 SetSourcePosition(proxy->position()); 1474 SetSourcePosition(proxy->position());
1475 PrepareForBailoutForId(proxy->BeforeId(), NO_REGISTERS);
1475 Variable* var = proxy->var(); 1476 Variable* var = proxy->var();
1476 1477
1477 // Three cases: global variables, lookup variables, and all other types of 1478 // Three cases: global variables, lookup variables, and all other types of
1478 // variables. 1479 // variables.
1479 switch (var->location()) { 1480 switch (var->location()) {
1480 case Variable::UNALLOCATED: { 1481 case Variable::UNALLOCATED: {
1481 Comment cmnt(masm_, "Global variable"); 1482 Comment cmnt(masm_, "Global variable");
1482 __ Ldr(LoadDescriptor::ReceiverRegister(), GlobalObjectMemOperand()); 1483 __ Ldr(LoadDescriptor::ReceiverRegister(), GlobalObjectMemOperand());
1483 __ Mov(LoadDescriptor::NameRegister(), Operand(var->name())); 1484 __ Mov(LoadDescriptor::NameRegister(), Operand(var->name()));
1484 if (FLAG_vector_ics) { 1485 if (FLAG_vector_ics) {
(...skipping 3997 matching lines...) Expand 10 before | Expand all | Expand 10 after
5482 } 5483 }
5483 } 5484 }
5484 5485
5485 return INTERRUPT; 5486 return INTERRUPT;
5486 } 5487 }
5487 5488
5488 5489
5489 } } // namespace v8::internal 5490 } } // namespace v8::internal
5490 5491
5491 #endif // V8_TARGET_ARCH_ARM64 5492 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/ast.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698