| 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 #if V8_TARGET_ARCH_X64 | 5 #if V8_TARGET_ARCH_X64 |
| 6 | 6 |
| 7 #include "src/crankshaft/x64/lithium-codegen-x64.h" | 7 #include "src/crankshaft/x64/lithium-codegen-x64.h" |
| 8 | 8 |
| 9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
| 10 #include "src/code-factory.h" | 10 #include "src/code-factory.h" |
| (...skipping 5568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5579 __ bind(&done); | 5579 __ bind(&done); |
| 5580 } | 5580 } |
| 5581 | 5581 |
| 5582 | 5582 |
| 5583 void LCodeGen::DoStoreFrameContext(LStoreFrameContext* instr) { | 5583 void LCodeGen::DoStoreFrameContext(LStoreFrameContext* instr) { |
| 5584 Register context = ToRegister(instr->context()); | 5584 Register context = ToRegister(instr->context()); |
| 5585 __ movp(Operand(rbp, StandardFrameConstants::kContextOffset), context); | 5585 __ movp(Operand(rbp, StandardFrameConstants::kContextOffset), context); |
| 5586 } | 5586 } |
| 5587 | 5587 |
| 5588 | 5588 |
| 5589 void LCodeGen::DoAllocateBlockContext(LAllocateBlockContext* instr) { | |
| 5590 Handle<ScopeInfo> scope_info = instr->scope_info(); | |
| 5591 __ Push(scope_info); | |
| 5592 __ Push(ToRegister(instr->function())); | |
| 5593 CallRuntime(Runtime::kPushBlockContext, instr); | |
| 5594 RecordSafepoint(Safepoint::kNoLazyDeopt); | |
| 5595 } | |
| 5596 | |
| 5597 | |
| 5598 #undef __ | 5589 #undef __ |
| 5599 | 5590 |
| 5600 } // namespace internal | 5591 } // namespace internal |
| 5601 } // namespace v8 | 5592 } // namespace v8 |
| 5602 | 5593 |
| 5603 #endif // V8_TARGET_ARCH_X64 | 5594 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |