| 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 #if V8_TARGET_ARCH_X64 | 5 #if V8_TARGET_ARCH_X64 |
| 6 | 6 |
| 7 #include "src/ast/scopes.h" | 7 #include "src/ast/scopes.h" |
| 8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" |
| 9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
| 10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
| (...skipping 1238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1249 | 1249 |
| 1250 void FullCodeGenerator::EmitGlobalVariableLoad(VariableProxy* proxy, | 1250 void FullCodeGenerator::EmitGlobalVariableLoad(VariableProxy* proxy, |
| 1251 TypeofMode typeof_mode) { | 1251 TypeofMode typeof_mode) { |
| 1252 Variable* var = proxy->var(); | 1252 Variable* var = proxy->var(); |
| 1253 DCHECK(var->IsUnallocatedOrGlobalSlot() || | 1253 DCHECK(var->IsUnallocatedOrGlobalSlot() || |
| 1254 (var->IsLookupSlot() && var->mode() == DYNAMIC_GLOBAL)); | 1254 (var->IsLookupSlot() && var->mode() == DYNAMIC_GLOBAL)); |
| 1255 __ Move(LoadDescriptor::NameRegister(), var->name()); | 1255 __ Move(LoadDescriptor::NameRegister(), var->name()); |
| 1256 __ LoadGlobalObject(LoadDescriptor::ReceiverRegister()); | 1256 __ LoadGlobalObject(LoadDescriptor::ReceiverRegister()); |
| 1257 __ Move(LoadDescriptor::SlotRegister(), | 1257 __ Move(LoadDescriptor::SlotRegister(), |
| 1258 SmiFromSlot(proxy->VariableFeedbackSlot())); | 1258 SmiFromSlot(proxy->VariableFeedbackSlot())); |
| 1259 CallLoadIC(typeof_mode); | 1259 CallLoadGlobalIC(typeof_mode); |
| 1260 } | 1260 } |
| 1261 | 1261 |
| 1262 | 1262 |
| 1263 void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy, | 1263 void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy, |
| 1264 TypeofMode typeof_mode) { | 1264 TypeofMode typeof_mode) { |
| 1265 // Record position before possible IC call. | 1265 // Record position before possible IC call. |
| 1266 SetExpressionPosition(proxy); | 1266 SetExpressionPosition(proxy); |
| 1267 PrepareForBailoutForId(proxy->BeforeId(), BailoutState::NO_REGISTERS); | 1267 PrepareForBailoutForId(proxy->BeforeId(), BailoutState::NO_REGISTERS); |
| 1268 Variable* var = proxy->var(); | 1268 Variable* var = proxy->var(); |
| 1269 | 1269 |
| (...skipping 2426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3696 DCHECK_EQ( | 3696 DCHECK_EQ( |
| 3697 isolate->builtins()->OnStackReplacement()->entry(), | 3697 isolate->builtins()->OnStackReplacement()->entry(), |
| 3698 Assembler::target_address_at(call_target_address, unoptimized_code)); | 3698 Assembler::target_address_at(call_target_address, unoptimized_code)); |
| 3699 return ON_STACK_REPLACEMENT; | 3699 return ON_STACK_REPLACEMENT; |
| 3700 } | 3700 } |
| 3701 | 3701 |
| 3702 } // namespace internal | 3702 } // namespace internal |
| 3703 } // namespace v8 | 3703 } // namespace v8 |
| 3704 | 3704 |
| 3705 #endif // V8_TARGET_ARCH_X64 | 3705 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |