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

Side by Side Diff: src/compiler/x64/code-generator-x64.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/compiler/simplified-operator-reducer-unittest.cc ('k') | src/conversions-inl.h » ('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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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/compiler/code-generator.h" 5 #include "src/compiler/code-generator.h"
6 6
7 #include "src/compiler/code-generator-impl.h" 7 #include "src/compiler/code-generator-impl.h"
8 #include "src/compiler/gap-resolver.h" 8 #include "src/compiler/gap-resolver.h"
9 #include "src/compiler/node-matchers.h" 9 #include "src/compiler/node-matchers.h"
10 #include "src/compiler/node-properties-inl.h" 10 #include "src/compiler/node-properties-inl.h"
(...skipping 900 matching lines...) Expand 10 before | Expand all | Expand 10 after
911 break; 911 break;
912 case kImm64Handle: 912 case kImm64Handle:
913 __ Move(dst, imm.handle); 913 __ Move(dst, imm.handle);
914 break; 914 break;
915 } 915 }
916 if (destination->IsStackSlot()) { 916 if (destination->IsStackSlot()) {
917 __ movq(g.ToOperand(destination), kScratchRegister); 917 __ movq(g.ToOperand(destination), kScratchRegister);
918 } 918 }
919 } else { 919 } else {
920 __ movq(kScratchRegister, 920 __ movq(kScratchRegister,
921 BitCast<uint64_t, double>(g.ToDouble(constant_source))); 921 bit_cast<uint64_t, double>(g.ToDouble(constant_source)));
922 if (destination->IsDoubleRegister()) { 922 if (destination->IsDoubleRegister()) {
923 __ movq(g.ToDoubleRegister(destination), kScratchRegister); 923 __ movq(g.ToDoubleRegister(destination), kScratchRegister);
924 } else { 924 } else {
925 DCHECK(destination->IsDoubleStackSlot()); 925 DCHECK(destination->IsDoubleStackSlot());
926 __ movq(g.ToOperand(destination), kScratchRegister); 926 __ movq(g.ToOperand(destination), kScratchRegister);
927 } 927 }
928 } 928 }
929 } else if (source->IsDoubleRegister()) { 929 } else if (source->IsDoubleRegister()) {
930 XMMRegister src = g.ToDoubleRegister(source); 930 XMMRegister src = g.ToDoubleRegister(source);
931 if (destination->IsDoubleRegister()) { 931 if (destination->IsDoubleRegister()) {
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
999 } 999 }
1000 1000
1001 1001
1002 void CodeGenerator::AddNopForSmiCodeInlining() { __ nop(); } 1002 void CodeGenerator::AddNopForSmiCodeInlining() { __ nop(); }
1003 1003
1004 #undef __ 1004 #undef __
1005 1005
1006 } // namespace internal 1006 } // namespace internal
1007 } // namespace compiler 1007 } // namespace compiler
1008 } // namespace v8 1008 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/simplified-operator-reducer-unittest.cc ('k') | src/conversions-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698