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

Side by Side Diff: src/full-codegen/full-codegen.cc

Issue 1770773002: [interpreter, debugger] add some missing statement positions. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: update expectations Created 4 years, 9 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 | « no previous file | 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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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/full-codegen/full-codegen.h" 5 #include "src/full-codegen/full-codegen.h"
6 6
7 #include "src/ast/ast.h" 7 #include "src/ast/ast.h"
8 #include "src/ast/ast-numbering.h" 8 #include "src/ast/ast-numbering.h"
9 #include "src/ast/prettyprinter.h" 9 #include "src/ast/prettyprinter.h"
10 #include "src/ast/scopeinfo.h" 10 #include "src/ast/scopeinfo.h"
(...skipping 861 matching lines...) Expand 10 before | Expand all | Expand 10 after
872 872
873 void FullCodeGenerator::VisitExpressionStatement(ExpressionStatement* stmt) { 873 void FullCodeGenerator::VisitExpressionStatement(ExpressionStatement* stmt) {
874 Comment cmnt(masm_, "[ ExpressionStatement"); 874 Comment cmnt(masm_, "[ ExpressionStatement");
875 SetStatementPosition(stmt); 875 SetStatementPosition(stmt);
876 VisitForEffect(stmt->expression()); 876 VisitForEffect(stmt->expression());
877 } 877 }
878 878
879 879
880 void FullCodeGenerator::VisitEmptyStatement(EmptyStatement* stmt) { 880 void FullCodeGenerator::VisitEmptyStatement(EmptyStatement* stmt) {
881 Comment cmnt(masm_, "[ EmptyStatement"); 881 Comment cmnt(masm_, "[ EmptyStatement");
882 SetStatementPosition(stmt);
883 } 882 }
884 883
885 884
886 void FullCodeGenerator::VisitIfStatement(IfStatement* stmt) { 885 void FullCodeGenerator::VisitIfStatement(IfStatement* stmt) {
887 Comment cmnt(masm_, "[ IfStatement"); 886 Comment cmnt(masm_, "[ IfStatement");
888 SetStatementPosition(stmt); 887 SetStatementPosition(stmt);
889 Label then_part, else_part, done; 888 Label then_part, else_part, done;
890 889
891 if (stmt->HasElseStatement()) { 890 if (stmt->HasElseStatement()) {
892 VisitForControl(stmt->condition(), &then_part, &else_part, &then_part); 891 VisitForControl(stmt->condition(), &then_part, &else_part, &then_part);
(...skipping 1036 matching lines...) Expand 10 before | Expand all | Expand 10 after
1929 return var->mode() == CONST_LEGACY || var->scope()->is_nonlinear() || 1928 return var->mode() == CONST_LEGACY || var->scope()->is_nonlinear() ||
1930 var->initializer_position() >= proxy->position(); 1929 var->initializer_position() >= proxy->position();
1931 } 1930 }
1932 1931
1933 1932
1934 #undef __ 1933 #undef __
1935 1934
1936 1935
1937 } // namespace internal 1936 } // namespace internal
1938 } // namespace v8 1937 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/interpreter/bytecode-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698