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/compiler/code-generator.h" | 5 #include "src/compiler/code-generator.h" |
6 | 6 |
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 636 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
647 FieldMemOperand(func, JSFunction::kContextOffset)); | 647 FieldMemOperand(func, JSFunction::kContextOffset)); |
648 __ cmp(cp, kScratchReg); | 648 __ cmp(cp, kScratchReg); |
649 __ Assert(eq, kWrongFunctionContext); | 649 __ Assert(eq, kWrongFunctionContext); |
650 } | 650 } |
651 AssembleDeconstructActivationRecord(); | 651 AssembleDeconstructActivationRecord(); |
652 __ LoadP(ip, FieldMemOperand(func, JSFunction::kCodeEntryOffset)); | 652 __ LoadP(ip, FieldMemOperand(func, JSFunction::kCodeEntryOffset)); |
653 __ Jump(ip); | 653 __ Jump(ip); |
654 DCHECK_EQ(LeaveRC, i.OutputRCBit()); | 654 DCHECK_EQ(LeaveRC, i.OutputRCBit()); |
655 break; | 655 break; |
656 } | 656 } |
| 657 case kArchLazyBailout: { |
| 658 EnsureSpaceForLazyDeopt(); |
| 659 RecordCallPosition(instr); |
| 660 break; |
| 661 } |
657 case kArchPrepareCallCFunction: { | 662 case kArchPrepareCallCFunction: { |
658 int const num_parameters = MiscField::decode(instr->opcode()); | 663 int const num_parameters = MiscField::decode(instr->opcode()); |
659 __ PrepareCallCFunction(num_parameters, kScratchReg); | 664 __ PrepareCallCFunction(num_parameters, kScratchReg); |
660 break; | 665 break; |
661 } | 666 } |
662 case kArchCallCFunction: { | 667 case kArchCallCFunction: { |
663 int const num_parameters = MiscField::decode(instr->opcode()); | 668 int const num_parameters = MiscField::decode(instr->opcode()); |
664 if (instr->InputAt(0)->IsImmediate()) { | 669 if (instr->InputAt(0)->IsImmediate()) { |
665 ExternalReference ref = i.InputExternalReference(0); | 670 ExternalReference ref = i.InputExternalReference(0); |
666 __ CallCFunction(ref, num_parameters); | 671 __ CallCFunction(ref, num_parameters); |
(...skipping 976 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1643 padding_size -= v8::internal::Assembler::kInstrSize; | 1648 padding_size -= v8::internal::Assembler::kInstrSize; |
1644 } | 1649 } |
1645 } | 1650 } |
1646 } | 1651 } |
1647 | 1652 |
1648 #undef __ | 1653 #undef __ |
1649 | 1654 |
1650 } // namespace compiler | 1655 } // namespace compiler |
1651 } // namespace internal | 1656 } // namespace internal |
1652 } // namespace v8 | 1657 } // namespace v8 |
OLD | NEW |