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 1481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1492 | 1492 |
1493 | 1493 |
1494 void FullCodeGenerator::VisitSpread(Spread* expr) { UNREACHABLE(); } | 1494 void FullCodeGenerator::VisitSpread(Spread* expr) { UNREACHABLE(); } |
1495 | 1495 |
1496 | 1496 |
1497 void FullCodeGenerator::VisitEmptyParentheses(EmptyParentheses* expr) { | 1497 void FullCodeGenerator::VisitEmptyParentheses(EmptyParentheses* expr) { |
1498 UNREACHABLE(); | 1498 UNREACHABLE(); |
1499 } | 1499 } |
1500 | 1500 |
1501 | 1501 |
| 1502 void FullCodeGenerator::VisitRewritableExpression(RewritableExpression* expr) { |
| 1503 Visit(expr->expression()); |
| 1504 } |
| 1505 |
| 1506 |
1502 FullCodeGenerator::NestedStatement* FullCodeGenerator::TryFinally::Exit( | 1507 FullCodeGenerator::NestedStatement* FullCodeGenerator::TryFinally::Exit( |
1503 int* stack_depth, int* context_length) { | 1508 int* stack_depth, int* context_length) { |
1504 // The macros used here must preserve the result register. | 1509 // The macros used here must preserve the result register. |
1505 | 1510 |
1506 // Because the handler block contains the context of the finally | 1511 // Because the handler block contains the context of the finally |
1507 // code, we can restore it directly from there for the finally code | 1512 // code, we can restore it directly from there for the finally code |
1508 // rather than iteratively unwinding contexts via their previous | 1513 // rather than iteratively unwinding contexts via their previous |
1509 // links. | 1514 // links. |
1510 if (*context_length > 0) { | 1515 if (*context_length > 0) { |
1511 __ Drop(*stack_depth); // Down to the handler block. | 1516 __ Drop(*stack_depth); // Down to the handler block. |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1742 return var->mode() == CONST_LEGACY || var->scope()->is_nonlinear() || | 1747 return var->mode() == CONST_LEGACY || var->scope()->is_nonlinear() || |
1743 var->initializer_position() >= proxy->position(); | 1748 var->initializer_position() >= proxy->position(); |
1744 } | 1749 } |
1745 | 1750 |
1746 | 1751 |
1747 #undef __ | 1752 #undef __ |
1748 | 1753 |
1749 | 1754 |
1750 } // namespace internal | 1755 } // namespace internal |
1751 } // namespace v8 | 1756 } // namespace v8 |
OLD | NEW |