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::VisitRewritableExpression(RewritableExpression* expr) { | 1510 void FullCodeGenerator::VisitRewritableAssignmentExpression( |
| 1511 RewritableAssignmentExpression* expr) { |
1511 Visit(expr->expression()); | 1512 Visit(expr->expression()); |
1512 } | 1513 } |
1513 | 1514 |
1514 | 1515 |
1515 FullCodeGenerator::NestedStatement* FullCodeGenerator::TryFinally::Exit( | 1516 FullCodeGenerator::NestedStatement* FullCodeGenerator::TryFinally::Exit( |
1516 int* stack_depth, int* context_length) { | 1517 int* stack_depth, int* context_length) { |
1517 // The macros used here must preserve the result register. | 1518 // The macros used here must preserve the result register. |
1518 | 1519 |
1519 // Because the handler block contains the context of the finally | 1520 // Because the handler block contains the context of the finally |
1520 // code, we can restore it directly from there for the finally code | 1521 // 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... |
1791 return var->mode() == CONST_LEGACY || var->scope()->is_nonlinear() || | 1792 return var->mode() == CONST_LEGACY || var->scope()->is_nonlinear() || |
1792 var->initializer_position() >= proxy->position(); | 1793 var->initializer_position() >= proxy->position(); |
1793 } | 1794 } |
1794 | 1795 |
1795 | 1796 |
1796 #undef __ | 1797 #undef __ |
1797 | 1798 |
1798 | 1799 |
1799 } // namespace internal | 1800 } // namespace internal |
1800 } // namespace v8 | 1801 } // namespace v8 |
OLD | NEW |