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

Side by Side Diff: src/x87/full-codegen-x87.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/x64/full-codegen-x64.cc ('k') | no next file » | 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_X87 7 #if V8_TARGET_ARCH_X87
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 1393 matching lines...) Expand 10 before | Expand all | Expand 10 after
1404 } 1404 }
1405 } 1405 }
1406 __ jmp(done); 1406 __ jmp(done);
1407 } 1407 }
1408 } 1408 }
1409 1409
1410 1410
1411 void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy) { 1411 void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy) {
1412 // Record position before possible IC call. 1412 // Record position before possible IC call.
1413 SetSourcePosition(proxy->position()); 1413 SetSourcePosition(proxy->position());
1414 PrepareForBailoutForId(proxy->BeforeId(), NO_REGISTERS);
1414 Variable* var = proxy->var(); 1415 Variable* var = proxy->var();
1415 1416
1416 // Three cases: global variables, lookup variables, and all other types of 1417 // Three cases: global variables, lookup variables, and all other types of
1417 // variables. 1418 // variables.
1418 switch (var->location()) { 1419 switch (var->location()) {
1419 case Variable::UNALLOCATED: { 1420 case Variable::UNALLOCATED: {
1420 Comment cmnt(masm_, "[ Global variable"); 1421 Comment cmnt(masm_, "[ Global variable");
1421 __ mov(LoadDescriptor::ReceiverRegister(), GlobalObjectOperand()); 1422 __ mov(LoadDescriptor::ReceiverRegister(), GlobalObjectOperand());
1422 __ mov(LoadDescriptor::NameRegister(), var->name()); 1423 __ mov(LoadDescriptor::NameRegister(), var->name());
1423 if (FLAG_vector_ics) { 1424 if (FLAG_vector_ics) {
(...skipping 3938 matching lines...) Expand 10 before | Expand all | Expand 10 after
5362 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), 5363 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(),
5363 Assembler::target_address_at(call_target_address, 5364 Assembler::target_address_at(call_target_address,
5364 unoptimized_code)); 5365 unoptimized_code));
5365 return OSR_AFTER_STACK_CHECK; 5366 return OSR_AFTER_STACK_CHECK;
5366 } 5367 }
5367 5368
5368 5369
5369 } } // namespace v8::internal 5370 } } // namespace v8::internal
5370 5371
5371 #endif // V8_TARGET_ARCH_X87 5372 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/x64/full-codegen-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698