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

Side by Side Diff: src/interpreter/bytecode-array-builder.cc

Issue 2804813003: [turbofan] Collect and use type feedback on ToNumber. (Closed)
Patch Set: Address Michis feedback. Created 3 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/interpreter/bytecode-array-builder.h ('k') | src/interpreter/bytecode-generator.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 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/interpreter/bytecode-array-builder.h" 5 #include "src/interpreter/bytecode-array-builder.h"
6 6
7 #include "src/globals.h" 7 #include "src/globals.h"
8 #include "src/interpreter/bytecode-array-writer.h" 8 #include "src/interpreter/bytecode-array-writer.h"
9 #include "src/interpreter/bytecode-dead-code-optimizer.h" 9 #include "src/interpreter/bytecode-dead-code-optimizer.h"
10 #include "src/interpreter/bytecode-label.h" 10 #include "src/interpreter/bytecode-label.h"
(...skipping 855 matching lines...) Expand 10 before | Expand all | Expand 10 after
866 return *this; 866 return *this;
867 } 867 }
868 868
869 BytecodeArrayBuilder& BytecodeArrayBuilder::ConvertAccumulatorToName( 869 BytecodeArrayBuilder& BytecodeArrayBuilder::ConvertAccumulatorToName(
870 Register out) { 870 Register out) {
871 OutputToName(out); 871 OutputToName(out);
872 return *this; 872 return *this;
873 } 873 }
874 874
875 BytecodeArrayBuilder& BytecodeArrayBuilder::ConvertAccumulatorToNumber( 875 BytecodeArrayBuilder& BytecodeArrayBuilder::ConvertAccumulatorToNumber(
876 Register out) { 876 Register out, int feedback_slot) {
877 OutputToNumber(out); 877 OutputToNumber(out, feedback_slot);
878 return *this; 878 return *this;
879 } 879 }
880 880
881 BytecodeArrayBuilder& BytecodeArrayBuilder::Bind(BytecodeLabel* label) { 881 BytecodeArrayBuilder& BytecodeArrayBuilder::Bind(BytecodeLabel* label) {
882 // Flush the register optimizer when binding a label to ensure all 882 // Flush the register optimizer when binding a label to ensure all
883 // expected registers are valid when jumping to this label. 883 // expected registers are valid when jumping to this label.
884 if (register_optimizer_) register_optimizer_->Flush(); 884 if (register_optimizer_) register_optimizer_->Flush();
885 pipeline_->BindLabel(label); 885 pipeline_->BindLabel(label);
886 LeaveBasicBlock(); 886 LeaveBasicBlock();
887 return *this; 887 return *this;
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after
1353 case BytecodeArrayBuilder::ToBooleanMode::kConvertToBoolean: 1353 case BytecodeArrayBuilder::ToBooleanMode::kConvertToBoolean:
1354 return os << "ConvertToBoolean"; 1354 return os << "ConvertToBoolean";
1355 } 1355 }
1356 UNREACHABLE(); 1356 UNREACHABLE();
1357 return os; 1357 return os;
1358 } 1358 }
1359 1359
1360 } // namespace interpreter 1360 } // namespace interpreter
1361 } // namespace internal 1361 } // namespace internal
1362 } // namespace v8 1362 } // namespace v8
OLDNEW
« no previous file with comments | « src/interpreter/bytecode-array-builder.h ('k') | src/interpreter/bytecode-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698