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

Side by Side Diff: src/ic/x87/handler-compiler-x87.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/ic/ia32/handler-compiler-ia32.cc ('k') | src/isolate.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 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
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
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
OLDNEW
« no previous file with comments | « src/ic/ia32/handler-compiler-ia32.cc ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698