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