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