| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_ARM64 | 7 #if V8_TARGET_ARCH_ARM64 |
| 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 1454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1465 } | 1465 } |
| 1466 } | 1466 } |
| 1467 __ B(done); | 1467 __ B(done); |
| 1468 } | 1468 } |
| 1469 } | 1469 } |
| 1470 | 1470 |
| 1471 | 1471 |
| 1472 void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy) { | 1472 void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy) { |
| 1473 // Record position before possible IC call. | 1473 // Record position before possible IC call. |
| 1474 SetSourcePosition(proxy->position()); | 1474 SetSourcePosition(proxy->position()); |
| 1475 PrepareForBailoutForId(proxy->BeforeId(), NO_REGISTERS); |
| 1475 Variable* var = proxy->var(); | 1476 Variable* var = proxy->var(); |
| 1476 | 1477 |
| 1477 // Three cases: global variables, lookup variables, and all other types of | 1478 // Three cases: global variables, lookup variables, and all other types of |
| 1478 // variables. | 1479 // variables. |
| 1479 switch (var->location()) { | 1480 switch (var->location()) { |
| 1480 case Variable::UNALLOCATED: { | 1481 case Variable::UNALLOCATED: { |
| 1481 Comment cmnt(masm_, "Global variable"); | 1482 Comment cmnt(masm_, "Global variable"); |
| 1482 __ Ldr(LoadDescriptor::ReceiverRegister(), GlobalObjectMemOperand()); | 1483 __ Ldr(LoadDescriptor::ReceiverRegister(), GlobalObjectMemOperand()); |
| 1483 __ Mov(LoadDescriptor::NameRegister(), Operand(var->name())); | 1484 __ Mov(LoadDescriptor::NameRegister(), Operand(var->name())); |
| 1484 if (FLAG_vector_ics) { | 1485 if (FLAG_vector_ics) { |
| (...skipping 3997 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5482 } | 5483 } |
| 5483 } | 5484 } |
| 5484 | 5485 |
| 5485 return INTERRUPT; | 5486 return INTERRUPT; |
| 5486 } | 5487 } |
| 5487 | 5488 |
| 5488 | 5489 |
| 5489 } } // namespace v8::internal | 5490 } } // namespace v8::internal |
| 5490 | 5491 |
| 5491 #endif // V8_TARGET_ARCH_ARM64 | 5492 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |