OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/ast/scopes.h" | 5 #include "src/ast/scopes.h" |
6 #include "src/compiler/code-generator.h" | 6 #include "src/compiler/code-generator.h" |
7 #include "src/compiler/code-generator-impl.h" | 7 #include "src/compiler/code-generator-impl.h" |
8 #include "src/compiler/gap-resolver.h" | 8 #include "src/compiler/gap-resolver.h" |
9 #include "src/compiler/node-matchers.h" | 9 #include "src/compiler/node-matchers.h" |
10 #include "src/compiler/osr.h" | 10 #include "src/compiler/osr.h" |
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
544 __ Assert(eq, kWrongFunctionContext, cp, Operand(kScratchReg)); | 544 __ Assert(eq, kWrongFunctionContext, cp, Operand(kScratchReg)); |
545 } | 545 } |
546 | 546 |
547 int stack_param_delta = i.InputInt32(instr->InputCount() - 1); | 547 int stack_param_delta = i.InputInt32(instr->InputCount() - 1); |
548 AssembleDeconstructActivationRecord(stack_param_delta); | 548 AssembleDeconstructActivationRecord(stack_param_delta); |
549 __ lw(at, FieldMemOperand(func, JSFunction::kCodeEntryOffset)); | 549 __ lw(at, FieldMemOperand(func, JSFunction::kCodeEntryOffset)); |
550 __ Jump(at); | 550 __ Jump(at); |
551 frame_access_state()->ClearSPDelta(); | 551 frame_access_state()->ClearSPDelta(); |
552 break; | 552 break; |
553 } | 553 } |
554 case kArchLazyBailout: { | |
555 EnsureSpaceForLazyDeopt(); | |
556 RecordCallPosition(instr); | |
557 break; | |
558 } | |
559 case kArchPrepareCallCFunction: { | 554 case kArchPrepareCallCFunction: { |
560 int const num_parameters = MiscField::decode(instr->opcode()); | 555 int const num_parameters = MiscField::decode(instr->opcode()); |
561 __ PrepareCallCFunction(num_parameters, kScratchReg); | 556 __ PrepareCallCFunction(num_parameters, kScratchReg); |
562 // Frame alignment requires using FP-relative frame addressing. | 557 // Frame alignment requires using FP-relative frame addressing. |
563 frame_access_state()->SetFrameAccessToFP(); | 558 frame_access_state()->SetFrameAccessToFP(); |
564 break; | 559 break; |
565 } | 560 } |
566 case kArchPrepareTailCall: | 561 case kArchPrepareTailCall: |
567 AssemblePrepareTailCall(i.InputInt32(instr->InputCount() - 1)); | 562 AssemblePrepareTailCall(i.InputInt32(instr->InputCount() - 1)); |
568 break; | 563 break; |
(...skipping 1247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1816 padding_size -= v8::internal::Assembler::kInstrSize; | 1811 padding_size -= v8::internal::Assembler::kInstrSize; |
1817 } | 1812 } |
1818 } | 1813 } |
1819 } | 1814 } |
1820 | 1815 |
1821 #undef __ | 1816 #undef __ |
1822 | 1817 |
1823 } // namespace compiler | 1818 } // namespace compiler |
1824 } // namespace internal | 1819 } // namespace internal |
1825 } // namespace v8 | 1820 } // namespace v8 |
OLD | NEW |