| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |