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

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

Issue 1775323002: [turbofan] Frame elision for code stubs (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: MOVED InitializeRootRegister call 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
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);
Benedikt Meurer 2016/03/30 04:00:25 Meh C++ should warn about this, really. But this s
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_valueisheapnumber);
Benedikt Meurer 2016/03/30 04:00:25 This change looks completely unrelated and wrong t
666 } 665 }
667 } 666 }
668 } 667 }
669 Bind(&if_valueisheapnumber); 668 Bind(&if_valueisheapnumber);
670 { 669 {
671 Node* result = AllocateHeapNumberWithValue(value); 670 Node* result = AllocateHeapNumberWithValue(value);
672 var_result.Bind(result); 671 var_result.Bind(result);
673 Goto(&if_join); 672 Goto(&if_join);
674 } 673 }
675 Bind(&if_join); 674 Bind(&if_join);
(...skipping 540 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

Powered by Google App Engine
This is Rietveld 408576698