OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |