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 "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_X87 | 7 #if V8_TARGET_ARCH_X87 |
8 | 8 |
9 #include "src/ic/call-optimization.h" | 9 #include "src/ic/call-optimization.h" |
10 #include "src/ic/handler-compiler.h" | 10 #include "src/ic/handler-compiler.h" |
(...skipping 714 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
725 // the case, return immediately. | 725 // the case, return immediately. |
726 Label interceptor_failed; | 726 Label interceptor_failed; |
727 __ cmp(eax, factory()->no_interceptor_result_sentinel()); | 727 __ cmp(eax, factory()->no_interceptor_result_sentinel()); |
728 __ j(equal, &interceptor_failed); | 728 __ j(equal, &interceptor_failed); |
729 frame_scope.GenerateLeaveFrame(); | 729 frame_scope.GenerateLeaveFrame(); |
730 __ ret(0); | 730 __ ret(0); |
731 | 731 |
732 // Clobber registers when generating debug-code to provoke errors. | 732 // Clobber registers when generating debug-code to provoke errors. |
733 __ bind(&interceptor_failed); | 733 __ bind(&interceptor_failed); |
734 if (FLAG_debug_code) { | 734 if (FLAG_debug_code) { |
735 __ mov(receiver(), Immediate(BitCast<int32_t>(kZapValue))); | 735 __ mov(receiver(), Immediate(bit_cast<int32_t>(kZapValue))); |
736 __ mov(holder_reg, Immediate(BitCast<int32_t>(kZapValue))); | 736 __ mov(holder_reg, Immediate(bit_cast<int32_t>(kZapValue))); |
737 __ mov(this->name(), Immediate(BitCast<int32_t>(kZapValue))); | 737 __ mov(this->name(), Immediate(bit_cast<int32_t>(kZapValue))); |
738 } | 738 } |
739 | 739 |
740 __ pop(this->name()); | 740 __ pop(this->name()); |
741 __ pop(holder_reg); | 741 __ pop(holder_reg); |
742 if (must_preserve_receiver_reg) { | 742 if (must_preserve_receiver_reg) { |
743 __ pop(receiver()); | 743 __ pop(receiver()); |
744 } | 744 } |
745 | 745 |
746 // Leave the internal frame. | 746 // Leave the internal frame. |
747 } | 747 } |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
845 // Return the generated code. | 845 // Return the generated code. |
846 return GetCode(kind(), Code::NORMAL, name); | 846 return GetCode(kind(), Code::NORMAL, name); |
847 } | 847 } |
848 | 848 |
849 | 849 |
850 #undef __ | 850 #undef __ |
851 } | 851 } |
852 } // namespace v8::internal | 852 } // namespace v8::internal |
853 | 853 |
854 #endif // V8_TARGET_ARCH_X87 | 854 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |