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

Side by Side Diff: src/arm/full-codegen-arm.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 | « no previous file | src/arm64/full-codegen-arm64.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_ARM 7 #if V8_TARGET_ARCH_ARM
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 1475 matching lines...) Expand 10 before | Expand all | Expand 10 after
1486 } 1486 }
1487 } 1487 }
1488 __ jmp(done); 1488 __ jmp(done);
1489 } 1489 }
1490 } 1490 }
1491 1491
1492 1492
1493 void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy) { 1493 void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy) {
1494 // Record position before possible IC call. 1494 // Record position before possible IC call.
1495 SetSourcePosition(proxy->position()); 1495 SetSourcePosition(proxy->position());
1496 PrepareForBailoutForId(proxy->BeforeId(), NO_REGISTERS);
1496 Variable* var = proxy->var(); 1497 Variable* var = proxy->var();
1497 1498
1498 // Three cases: global variables, lookup variables, and all other types of 1499 // Three cases: global variables, lookup variables, and all other types of
1499 // variables. 1500 // variables.
1500 switch (var->location()) { 1501 switch (var->location()) {
1501 case Variable::UNALLOCATED: { 1502 case Variable::UNALLOCATED: {
1502 Comment cmnt(masm_, "[ Global variable"); 1503 Comment cmnt(masm_, "[ Global variable");
1503 __ ldr(LoadDescriptor::ReceiverRegister(), GlobalObjectOperand()); 1504 __ ldr(LoadDescriptor::ReceiverRegister(), GlobalObjectOperand());
1504 __ mov(LoadDescriptor::NameRegister(), Operand(var->name())); 1505 __ mov(LoadDescriptor::NameRegister(), Operand(var->name()));
1505 if (FLAG_vector_ics) { 1506 if (FLAG_vector_ics) {
(...skipping 4004 matching lines...) Expand 10 before | Expand all | Expand 10 after
5510 5511
5511 DCHECK(interrupt_address == 5512 DCHECK(interrupt_address ==
5512 isolate->builtins()->OsrAfterStackCheck()->entry()); 5513 isolate->builtins()->OsrAfterStackCheck()->entry());
5513 return OSR_AFTER_STACK_CHECK; 5514 return OSR_AFTER_STACK_CHECK;
5514 } 5515 }
5515 5516
5516 5517
5517 } } // namespace v8::internal 5518 } } // namespace v8::internal
5518 5519
5519 #endif // V8_TARGET_ARCH_ARM 5520 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm64/full-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698