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

Side by Side Diff: src/interpreter/bytecode-generator.cc

Issue 1702063002: Non-pattern rewriting revisited (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix a bug I introduced when rebasing Created 4 years, 10 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/full-codegen/full-codegen.cc ('k') | src/parsing/expression-classifier.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/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 2842 matching lines...) Expand 10 before | Expand all | Expand 10 after
2853 BytecodeLabel end_label; 2853 BytecodeLabel end_label;
2854 VisitForAccumulatorValue(left); 2854 VisitForAccumulatorValue(left);
2855 builder()->JumpIfFalse(&end_label); 2855 builder()->JumpIfFalse(&end_label);
2856 VisitForAccumulatorValue(right); 2856 VisitForAccumulatorValue(right);
2857 builder()->Bind(&end_label); 2857 builder()->Bind(&end_label);
2858 } 2858 }
2859 execution_result()->SetResultInAccumulator(); 2859 execution_result()->SetResultInAccumulator();
2860 } 2860 }
2861 2861
2862 2862
2863 void BytecodeGenerator::VisitRewritableAssignmentExpression( 2863 void BytecodeGenerator::VisitRewritableExpression(RewritableExpression* expr) {
2864 RewritableAssignmentExpression* expr) {
2865 Visit(expr->expression()); 2864 Visit(expr->expression());
2866 } 2865 }
2867 2866
2868 2867
2869 void BytecodeGenerator::VisitNewLocalFunctionContext() { 2868 void BytecodeGenerator::VisitNewLocalFunctionContext() {
2870 AccumulatorResultScope accumulator_execution_result(this); 2869 AccumulatorResultScope accumulator_execution_result(this);
2871 Scope* scope = this->scope(); 2870 Scope* scope = this->scope();
2872 2871
2873 // Allocate a new local context. 2872 // Allocate a new local context.
2874 if (scope->is_script_scope()) { 2873 if (scope->is_script_scope()) {
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
3112 } 3111 }
3113 3112
3114 3113
3115 int BytecodeGenerator::feedback_index(FeedbackVectorSlot slot) const { 3114 int BytecodeGenerator::feedback_index(FeedbackVectorSlot slot) const {
3116 return info()->feedback_vector()->GetIndex(slot); 3115 return info()->feedback_vector()->GetIndex(slot);
3117 } 3116 }
3118 3117
3119 } // namespace interpreter 3118 } // namespace interpreter
3120 } // namespace internal 3119 } // namespace internal
3121 } // namespace v8 3120 } // namespace v8
OLDNEW
« no previous file with comments | « src/full-codegen/full-codegen.cc ('k') | src/parsing/expression-classifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698