OLD | NEW |
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-numbering.h" | 7 #include "src/ast/ast-numbering.h" |
8 #include "src/ast/ast.h" | 8 #include "src/ast/ast.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 873 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
884 VisitStatements(stmt->statements()); | 884 VisitStatements(stmt->statements()); |
885 __ bind(nested_block.break_label()); | 885 __ bind(nested_block.break_label()); |
886 } | 886 } |
887 } | 887 } |
888 | 888 |
889 | 889 |
890 void FullCodeGenerator::VisitDoExpression(DoExpression* expr) { | 890 void FullCodeGenerator::VisitDoExpression(DoExpression* expr) { |
891 Comment cmnt(masm_, "[ Do Expression"); | 891 Comment cmnt(masm_, "[ Do Expression"); |
892 SetExpressionPosition(expr); | 892 SetExpressionPosition(expr); |
893 VisitBlock(expr->block()); | 893 VisitBlock(expr->block()); |
894 EmitVariableLoad(expr->result()); | 894 VisitInDuplicateContext(expr->result()); |
895 } | 895 } |
896 | 896 |
897 | 897 |
898 void FullCodeGenerator::VisitExpressionStatement(ExpressionStatement* stmt) { | 898 void FullCodeGenerator::VisitExpressionStatement(ExpressionStatement* stmt) { |
899 Comment cmnt(masm_, "[ ExpressionStatement"); | 899 Comment cmnt(masm_, "[ ExpressionStatement"); |
900 SetStatementPosition(stmt); | 900 SetStatementPosition(stmt); |
901 VisitForEffect(stmt->expression()); | 901 VisitForEffect(stmt->expression()); |
902 } | 902 } |
903 | 903 |
904 | 904 |
(...skipping 1081 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1986 return var->scope()->is_nonlinear() || | 1986 return var->scope()->is_nonlinear() || |
1987 var->initializer_position() >= proxy->position(); | 1987 var->initializer_position() >= proxy->position(); |
1988 } | 1988 } |
1989 | 1989 |
1990 | 1990 |
1991 #undef __ | 1991 #undef __ |
1992 | 1992 |
1993 | 1993 |
1994 } // namespace internal | 1994 } // namespace internal |
1995 } // namespace v8 | 1995 } // namespace v8 |
OLD | NEW |