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/crankshaft/arm/lithium-codegen-arm.h" | 5 #include "src/crankshaft/arm/lithium-codegen-arm.h" |
6 | 6 |
7 #include "src/base/bits.h" | 7 #include "src/base/bits.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/crankshaft/arm/lithium-gap-resolver-arm.h" | 10 #include "src/crankshaft/arm/lithium-gap-resolver-arm.h" |
(...skipping 5511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5522 __ bind(&done); | 5522 __ bind(&done); |
5523 } | 5523 } |
5524 | 5524 |
5525 | 5525 |
5526 void LCodeGen::DoStoreFrameContext(LStoreFrameContext* instr) { | 5526 void LCodeGen::DoStoreFrameContext(LStoreFrameContext* instr) { |
5527 Register context = ToRegister(instr->context()); | 5527 Register context = ToRegister(instr->context()); |
5528 __ str(context, MemOperand(fp, StandardFrameConstants::kContextOffset)); | 5528 __ str(context, MemOperand(fp, StandardFrameConstants::kContextOffset)); |
5529 } | 5529 } |
5530 | 5530 |
5531 | 5531 |
5532 void LCodeGen::DoAllocateBlockContext(LAllocateBlockContext* instr) { | |
5533 Handle<ScopeInfo> scope_info = instr->scope_info(); | |
5534 __ Push(scope_info); | |
5535 __ push(ToRegister(instr->function())); | |
5536 CallRuntime(Runtime::kPushBlockContext, instr); | |
5537 RecordSafepoint(Safepoint::kNoLazyDeopt); | |
5538 } | |
5539 | |
5540 | |
5541 #undef __ | 5532 #undef __ |
5542 | 5533 |
5543 } // namespace internal | 5534 } // namespace internal |
5544 } // namespace v8 | 5535 } // namespace v8 |
OLD | NEW |