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 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
478 if (FLAG_debug_code && FLAG_enable_slow_asserts) { | 478 if (FLAG_debug_code && FLAG_enable_slow_asserts) { |
479 __ VerifyX87StackDepth(1); | 479 __ VerifyX87StackDepth(1); |
480 } | 480 } |
481 __ fstp(0); | 481 __ fstp(0); |
482 int stack_param_delta = i.InputInt32(instr->InputCount() - 1); | 482 int stack_param_delta = i.InputInt32(instr->InputCount() - 1); |
483 AssembleDeconstructActivationRecord(stack_param_delta); | 483 AssembleDeconstructActivationRecord(stack_param_delta); |
484 __ jmp(FieldOperand(func, JSFunction::kCodeEntryOffset)); | 484 __ jmp(FieldOperand(func, JSFunction::kCodeEntryOffset)); |
485 frame_access_state()->ClearSPDelta(); | 485 frame_access_state()->ClearSPDelta(); |
486 break; | 486 break; |
487 } | 487 } |
488 case kArchLazyBailout: { | |
489 DoEnsureSpaceForLazyDeopt(info(), masm(), last_lazy_deopt_pc_); | |
490 RecordCallPosition(instr); | |
491 // Lazy Bailout entry, need to re-initialize FPU state. | |
492 __ fninit(); | |
493 __ fld1(); | |
494 break; | |
495 } | |
496 case kArchPrepareCallCFunction: { | 488 case kArchPrepareCallCFunction: { |
497 // Frame alignment requires using FP-relative frame addressing. | 489 // Frame alignment requires using FP-relative frame addressing. |
498 frame_access_state()->SetFrameAccessToFP(); | 490 frame_access_state()->SetFrameAccessToFP(); |
499 int const num_parameters = MiscField::decode(instr->opcode()); | 491 int const num_parameters = MiscField::decode(instr->opcode()); |
500 __ PrepareCallCFunction(num_parameters, i.TempRegister(0)); | 492 __ PrepareCallCFunction(num_parameters, i.TempRegister(0)); |
501 break; | 493 break; |
502 } | 494 } |
503 case kArchPrepareTailCall: | 495 case kArchPrepareTailCall: |
504 AssemblePrepareTailCall(i.InputInt32(instr->InputCount() - 1)); | 496 AssemblePrepareTailCall(i.InputInt32(instr->InputCount() - 1)); |
505 break; | 497 break; |
(...skipping 1736 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2242 void CodeGenerator::EnsureSpaceForLazyDeopt() { | 2234 void CodeGenerator::EnsureSpaceForLazyDeopt() { |
2243 is_handler_entry_point = true; | 2235 is_handler_entry_point = true; |
2244 DoEnsureSpaceForLazyDeopt(info(), masm(), last_lazy_deopt_pc_); | 2236 DoEnsureSpaceForLazyDeopt(info(), masm(), last_lazy_deopt_pc_); |
2245 } | 2237 } |
2246 | 2238 |
2247 #undef __ | 2239 #undef __ |
2248 | 2240 |
2249 } // namespace compiler | 2241 } // namespace compiler |
2250 } // namespace internal | 2242 } // namespace internal |
2251 } // namespace v8 | 2243 } // namespace v8 |
OLD | NEW |