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/crankshaft/arm64/lithium-codegen-arm64.h" | 5 #include "src/crankshaft/arm64/lithium-codegen-arm64.h" |
6 | 6 |
7 #include "src/arm64/frames-arm64.h" | 7 #include "src/arm64/frames-arm64.h" |
8 #include "src/base/bits.h" | 8 #include "src/base/bits.h" |
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 5697 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5708 __ Bind(&done); | 5708 __ Bind(&done); |
5709 } | 5709 } |
5710 | 5710 |
5711 | 5711 |
5712 void LCodeGen::DoStoreFrameContext(LStoreFrameContext* instr) { | 5712 void LCodeGen::DoStoreFrameContext(LStoreFrameContext* instr) { |
5713 Register context = ToRegister(instr->context()); | 5713 Register context = ToRegister(instr->context()); |
5714 __ Str(context, MemOperand(fp, StandardFrameConstants::kContextOffset)); | 5714 __ Str(context, MemOperand(fp, StandardFrameConstants::kContextOffset)); |
5715 } | 5715 } |
5716 | 5716 |
5717 | 5717 |
5718 void LCodeGen::DoAllocateBlockContext(LAllocateBlockContext* instr) { | |
5719 Handle<ScopeInfo> scope_info = instr->scope_info(); | |
5720 __ Push(scope_info); | |
5721 __ Push(ToRegister(instr->function())); | |
5722 CallRuntime(Runtime::kPushBlockContext, instr); | |
5723 RecordSafepoint(Safepoint::kNoLazyDeopt); | |
5724 } | |
5725 | |
5726 | |
5727 } // namespace internal | 5718 } // namespace internal |
5728 } // namespace v8 | 5719 } // namespace v8 |
OLD | NEW |