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.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 1489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1500 | 1500 |
1501 | 1501 |
1502 void FullCodeGenerator::VisitSpread(Spread* expr) { UNREACHABLE(); } | 1502 void FullCodeGenerator::VisitSpread(Spread* expr) { UNREACHABLE(); } |
1503 | 1503 |
1504 | 1504 |
1505 void FullCodeGenerator::VisitEmptyParentheses(EmptyParentheses* expr) { | 1505 void FullCodeGenerator::VisitEmptyParentheses(EmptyParentheses* expr) { |
1506 UNREACHABLE(); | 1506 UNREACHABLE(); |
1507 } | 1507 } |
1508 | 1508 |
1509 | 1509 |
1510 void FullCodeGenerator::VisitRewritableAssignmentExpression( | 1510 void FullCodeGenerator::VisitRewritableExpression(RewritableExpression* expr) { |
1511 RewritableAssignmentExpression* expr) { | |
1512 Visit(expr->expression()); | 1511 Visit(expr->expression()); |
1513 } | 1512 } |
1514 | 1513 |
1515 | 1514 |
1516 FullCodeGenerator::NestedStatement* FullCodeGenerator::TryFinally::Exit( | 1515 FullCodeGenerator::NestedStatement* FullCodeGenerator::TryFinally::Exit( |
1517 int* stack_depth, int* context_length) { | 1516 int* stack_depth, int* context_length) { |
1518 // The macros used here must preserve the result register. | 1517 // The macros used here must preserve the result register. |
1519 | 1518 |
1520 // Because the handler block contains the context of the finally | 1519 // Because the handler block contains the context of the finally |
1521 // code, we can restore it directly from there for the finally code | 1520 // code, we can restore it directly from there for the finally code |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1792 return var->mode() == CONST_LEGACY || var->scope()->is_nonlinear() || | 1791 return var->mode() == CONST_LEGACY || var->scope()->is_nonlinear() || |
1793 var->initializer_position() >= proxy->position(); | 1792 var->initializer_position() >= proxy->position(); |
1794 } | 1793 } |
1795 | 1794 |
1796 | 1795 |
1797 #undef __ | 1796 #undef __ |
1798 | 1797 |
1799 | 1798 |
1800 } // namespace internal | 1799 } // namespace internal |
1801 } // namespace v8 | 1800 } // namespace v8 |
OLD | NEW |