| 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-generator.h" | 5 #include "src/interpreter/bytecode-generator.h" |
| 6 | 6 |
| 7 #include "src/ast/scopes.h" | 7 #include "src/ast/scopes.h" |
| 8 #include "src/compiler.h" | 8 #include "src/compiler.h" |
| 9 #include "src/interpreter/bytecode-register-allocator.h" | 9 #include "src/interpreter/bytecode-register-allocator.h" |
| 10 #include "src/interpreter/control-flow-builders.h" | 10 #include "src/interpreter/control-flow-builders.h" |
| (...skipping 2851 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2862 BytecodeLabel end_label; | 2862 BytecodeLabel end_label; |
| 2863 VisitForAccumulatorValue(left); | 2863 VisitForAccumulatorValue(left); |
| 2864 builder()->JumpIfFalse(&end_label); | 2864 builder()->JumpIfFalse(&end_label); |
| 2865 VisitForAccumulatorValue(right); | 2865 VisitForAccumulatorValue(right); |
| 2866 builder()->Bind(&end_label); | 2866 builder()->Bind(&end_label); |
| 2867 } | 2867 } |
| 2868 execution_result()->SetResultInAccumulator(); | 2868 execution_result()->SetResultInAccumulator(); |
| 2869 } | 2869 } |
| 2870 | 2870 |
| 2871 | 2871 |
| 2872 void BytecodeGenerator::VisitRewritableAssignmentExpression( | 2872 void BytecodeGenerator::VisitRewritableExpression(RewritableExpression* expr) { |
| 2873 RewritableAssignmentExpression* expr) { | |
| 2874 Visit(expr->expression()); | 2873 Visit(expr->expression()); |
| 2875 } | 2874 } |
| 2876 | 2875 |
| 2877 | 2876 |
| 2878 void BytecodeGenerator::VisitNewLocalFunctionContext() { | 2877 void BytecodeGenerator::VisitNewLocalFunctionContext() { |
| 2879 AccumulatorResultScope accumulator_execution_result(this); | 2878 AccumulatorResultScope accumulator_execution_result(this); |
| 2880 Scope* scope = this->scope(); | 2879 Scope* scope = this->scope(); |
| 2881 | 2880 |
| 2882 // Allocate a new local context. | 2881 // Allocate a new local context. |
| 2883 if (scope->is_script_scope()) { | 2882 if (scope->is_script_scope()) { |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3126 } | 3125 } |
| 3127 | 3126 |
| 3128 | 3127 |
| 3129 int BytecodeGenerator::feedback_index(FeedbackVectorSlot slot) const { | 3128 int BytecodeGenerator::feedback_index(FeedbackVectorSlot slot) const { |
| 3130 return info()->feedback_vector()->GetIndex(slot); | 3129 return info()->feedback_vector()->GetIndex(slot); |
| 3131 } | 3130 } |
| 3132 | 3131 |
| 3133 } // namespace interpreter | 3132 } // namespace interpreter |
| 3134 } // namespace internal | 3133 } // namespace internal |
| 3135 } // namespace v8 | 3134 } // namespace v8 |
| OLD | NEW |