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

Side by Side Diff: src/ia32/full-codegen-ia32.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/ast.h ('k') | src/mips/full-codegen-mips.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_IA32 7 #if V8_TARGET_ARCH_IA32
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 1401 matching lines...) Expand 10 before | Expand all | Expand 10 after
1412 } 1412 }
1413 } 1413 }
1414 __ jmp(done); 1414 __ jmp(done);
1415 } 1415 }
1416 } 1416 }
1417 1417
1418 1418
1419 void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy) { 1419 void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy) {
1420 // Record position before possible IC call. 1420 // Record position before possible IC call.
1421 SetSourcePosition(proxy->position()); 1421 SetSourcePosition(proxy->position());
1422 PrepareForBailoutForId(proxy->BeforeId(), NO_REGISTERS);
1422 Variable* var = proxy->var(); 1423 Variable* var = proxy->var();
1423 1424
1424 // Three cases: global variables, lookup variables, and all other types of 1425 // Three cases: global variables, lookup variables, and all other types of
1425 // variables. 1426 // variables.
1426 switch (var->location()) { 1427 switch (var->location()) {
1427 case Variable::UNALLOCATED: { 1428 case Variable::UNALLOCATED: {
1428 Comment cmnt(masm_, "[ Global variable"); 1429 Comment cmnt(masm_, "[ Global variable");
1429 __ mov(LoadDescriptor::ReceiverRegister(), GlobalObjectOperand()); 1430 __ mov(LoadDescriptor::ReceiverRegister(), GlobalObjectOperand());
1430 __ mov(LoadDescriptor::NameRegister(), var->name()); 1431 __ mov(LoadDescriptor::NameRegister(), var->name());
1431 if (FLAG_vector_ics) { 1432 if (FLAG_vector_ics) {
(...skipping 3943 matching lines...) Expand 10 before | Expand all | Expand 10 after
5375 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), 5376 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(),
5376 Assembler::target_address_at(call_target_address, 5377 Assembler::target_address_at(call_target_address,
5377 unoptimized_code)); 5378 unoptimized_code));
5378 return OSR_AFTER_STACK_CHECK; 5379 return OSR_AFTER_STACK_CHECK;
5379 } 5380 }
5380 5381
5381 5382
5382 } } // namespace v8::internal 5383 } } // namespace v8::internal
5383 5384
5384 #endif // V8_TARGET_ARCH_IA32 5385 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ast.h ('k') | src/mips/full-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698