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

Side by Side Diff: src/compiler/code-stub-assembler.cc

Issue 1837393003: [turbofan] Fix CodeStubAssembler::ChangeFloat64ToTagged for 32-bit. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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-stub-assembler.h" 5 #include "src/compiler/code-stub-assembler.h"
6 6
7 #include <ostream> 7 #include <ostream>
8 8
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/compiler/graph.h" 10 #include "src/compiler/graph.h"
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after
646 Variable var_result(this, MachineRepresentation::kTagged); 646 Variable var_result(this, MachineRepresentation::kTagged);
647 Bind(&if_valueisint32); 647 Bind(&if_valueisint32);
648 { 648 {
649 if (raw_assembler_->machine()->Is64()) { 649 if (raw_assembler_->machine()->Is64()) {
650 Node* result = SmiTag(ChangeInt32ToInt64(value32)); 650 Node* result = SmiTag(ChangeInt32ToInt64(value32));
651 var_result.Bind(result); 651 var_result.Bind(result);
652 Goto(&if_join); 652 Goto(&if_join);
653 } else { 653 } else {
654 Node* pair = Int32AddWithOverflow(value32, value32); 654 Node* pair = Int32AddWithOverflow(value32, value32);
655 Node* overflow = Projection(1, pair); 655 Node* overflow = Projection(1, pair);
656 Label if_overflow(this, Label::kDeferred), if_notoverflow(this), 656 Label if_overflow(this, Label::kDeferred), if_notoverflow(this);
657 if_join(this);
658 Branch(overflow, &if_overflow, &if_notoverflow); 657 Branch(overflow, &if_overflow, &if_notoverflow);
659 Bind(&if_overflow); 658 Bind(&if_overflow);
660 Goto(&if_valueisheapnumber); 659 Goto(&if_valueisheapnumber);
661 Bind(&if_notoverflow); 660 Bind(&if_notoverflow);
662 { 661 {
663 Node* result = Projection(0, pair); 662 Node* result = Projection(0, pair);
664 var_result.Bind(result); 663 var_result.Bind(result);
665 Goto(&if_join); 664 Goto(&if_join);
666 } 665 }
667 } 666 }
(...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after
1216 } 1215 }
1217 } 1216 }
1218 } 1217 }
1219 1218
1220 bound_ = true; 1219 bound_ = true;
1221 } 1220 }
1222 1221
1223 } // namespace compiler 1222 } // namespace compiler
1224 } // namespace internal 1223 } // namespace internal
1225 } // namespace v8 1224 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698