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

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: 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 | « src/compiler/code-generator.cc ('k') | src/compiler/frame.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 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);
657 Branch(overflow, &if_overflow, &if_notoverflow); 658 Branch(overflow, &if_overflow, &if_notoverflow);
658 Bind(&if_overflow); 659 Bind(&if_overflow);
659 Goto(&if_valueisheapnumber); 660 Goto(&if_valueisheapnumber);
660 Bind(&if_notoverflow); 661 Bind(&if_notoverflow);
661 { 662 {
662 Node* result = Projection(0, pair); 663 Node* result = Projection(0, pair);
663 var_result.Bind(result); 664 var_result.Bind(result);
664 Goto(&if_join); 665 Goto(&if_join);
665 } 666 }
666 } 667 }
(...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after
1215 } 1216 }
1216 } 1217 }
1217 } 1218 }
1218 1219
1219 bound_ = true; 1220 bound_ = true;
1220 } 1221 }
1221 1222
1222 } // namespace compiler 1223 } // namespace compiler
1223 } // namespace internal 1224 } // namespace internal
1224 } // namespace v8 1225 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/code-generator.cc ('k') | src/compiler/frame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698