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/compiler/code-generator.h" | 5 #include "src/compiler/code-generator.h" |
6 | 6 |
7 #include "src/ast/scopes.h" | 7 #include "src/ast/scopes.h" |
8 #include "src/compiler/code-generator-impl.h" | 8 #include "src/compiler/code-generator-impl.h" |
9 #include "src/compiler/gap-resolver.h" | 9 #include "src/compiler/gap-resolver.h" |
10 #include "src/compiler/node-matchers.h" | 10 #include "src/compiler/node-matchers.h" |
(...skipping 636 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
647 // Check the function's context matches the context argument. | 647 // Check the function's context matches the context argument. |
648 __ cmpp(rsi, FieldOperand(func, JSFunction::kContextOffset)); | 648 __ cmpp(rsi, FieldOperand(func, JSFunction::kContextOffset)); |
649 __ Assert(equal, kWrongFunctionContext); | 649 __ Assert(equal, kWrongFunctionContext); |
650 } | 650 } |
651 int stack_param_delta = i.InputInt32(instr->InputCount() - 1); | 651 int stack_param_delta = i.InputInt32(instr->InputCount() - 1); |
652 AssembleDeconstructActivationRecord(stack_param_delta); | 652 AssembleDeconstructActivationRecord(stack_param_delta); |
653 __ jmp(FieldOperand(func, JSFunction::kCodeEntryOffset)); | 653 __ jmp(FieldOperand(func, JSFunction::kCodeEntryOffset)); |
654 frame_access_state()->ClearSPDelta(); | 654 frame_access_state()->ClearSPDelta(); |
655 break; | 655 break; |
656 } | 656 } |
657 case kArchLazyBailout: { | |
658 EnsureSpaceForLazyDeopt(); | |
659 RecordCallPosition(instr); | |
660 break; | |
661 } | |
662 case kArchPrepareCallCFunction: { | 657 case kArchPrepareCallCFunction: { |
663 // Frame alignment requires using FP-relative frame addressing. | 658 // Frame alignment requires using FP-relative frame addressing. |
664 frame_access_state()->SetFrameAccessToFP(); | 659 frame_access_state()->SetFrameAccessToFP(); |
665 int const num_parameters = MiscField::decode(instr->opcode()); | 660 int const num_parameters = MiscField::decode(instr->opcode()); |
666 __ PrepareCallCFunction(num_parameters); | 661 __ PrepareCallCFunction(num_parameters); |
667 break; | 662 break; |
668 } | 663 } |
669 case kArchPrepareTailCall: | 664 case kArchPrepareTailCall: |
670 AssemblePrepareTailCall(i.InputInt32(instr->InputCount() - 1)); | 665 AssemblePrepareTailCall(i.InputInt32(instr->InputCount() - 1)); |
671 break; | 666 break; |
(...skipping 1497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2169 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; | 2164 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; |
2170 __ Nop(padding_size); | 2165 __ Nop(padding_size); |
2171 } | 2166 } |
2172 } | 2167 } |
2173 | 2168 |
2174 #undef __ | 2169 #undef __ |
2175 | 2170 |
2176 } // namespace compiler | 2171 } // namespace compiler |
2177 } // namespace internal | 2172 } // namespace internal |
2178 } // namespace v8 | 2173 } // namespace v8 |
OLD | NEW |