Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(697)

Side by Side Diff: src/ic/ia32/handler-compiler-ia32.cc

Issue 553843002: Replace our home-grown BitCast with bit_cast from Chrome/Google3. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/ia32/macro-assembler-ia32.cc ('k') | src/ic/x87/handler-compiler-x87.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/ia32/macro-assembler-ia32.cc ('k') | src/ic/x87/handler-compiler-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698