| 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 "v8.h" | 5 #include "v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_IA32 | 7 #if V8_TARGET_ARCH_IA32 |
| 8 | 8 |
| 9 #include "codegen.h" | 9 #include "codegen.h" |
| 10 #include "deoptimizer.h" | 10 #include "deoptimizer.h" |
| (...skipping 659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 670 __ ret(0); // Return to IC Miss stub, continuation still on stack. | 670 __ ret(0); // Return to IC Miss stub, continuation still on stack. |
| 671 } | 671 } |
| 672 | 672 |
| 673 | 673 |
| 674 void Builtins::Generate_NotifyStubFailure(MacroAssembler* masm) { | 674 void Builtins::Generate_NotifyStubFailure(MacroAssembler* masm) { |
| 675 Generate_NotifyStubFailureHelper(masm, kDontSaveFPRegs); | 675 Generate_NotifyStubFailureHelper(masm, kDontSaveFPRegs); |
| 676 } | 676 } |
| 677 | 677 |
| 678 | 678 |
| 679 void Builtins::Generate_NotifyStubFailureSaveDoubles(MacroAssembler* masm) { | 679 void Builtins::Generate_NotifyStubFailureSaveDoubles(MacroAssembler* masm) { |
| 680 if (Serializer::enabled(masm->isolate())) { | 680 Generate_NotifyStubFailureHelper(masm, kSaveFPRegs); |
| 681 PlatformFeatureScope sse2(masm->isolate(), SSE2); | |
| 682 Generate_NotifyStubFailureHelper(masm, kSaveFPRegs); | |
| 683 } else { | |
| 684 Generate_NotifyStubFailureHelper(masm, kSaveFPRegs); | |
| 685 } | |
| 686 } | 681 } |
| 687 | 682 |
| 688 | 683 |
| 689 static void Generate_NotifyDeoptimizedHelper(MacroAssembler* masm, | 684 static void Generate_NotifyDeoptimizedHelper(MacroAssembler* masm, |
| 690 Deoptimizer::BailoutType type) { | 685 Deoptimizer::BailoutType type) { |
| 691 { | 686 { |
| 692 FrameScope scope(masm, StackFrame::INTERNAL); | 687 FrameScope scope(masm, StackFrame::INTERNAL); |
| 693 | 688 |
| 694 // Pass deoptimization type to the runtime system. | 689 // Pass deoptimization type to the runtime system. |
| 695 __ push(Immediate(Smi::FromInt(static_cast<int>(type)))); | 690 __ push(Immediate(Smi::FromInt(static_cast<int>(type)))); |
| (...skipping 743 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1439 | 1434 |
| 1440 __ bind(&ok); | 1435 __ bind(&ok); |
| 1441 __ ret(0); | 1436 __ ret(0); |
| 1442 } | 1437 } |
| 1443 | 1438 |
| 1444 #undef __ | 1439 #undef __ |
| 1445 } | 1440 } |
| 1446 } // namespace v8::internal | 1441 } // namespace v8::internal |
| 1447 | 1442 |
| 1448 #endif // V8_TARGET_ARCH_IA32 | 1443 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |