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 1469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1480 | 1480 |
1481 | 1481 |
1482 void FullCodeGenerator::VisitSpread(Spread* expr) { UNREACHABLE(); } | 1482 void FullCodeGenerator::VisitSpread(Spread* expr) { UNREACHABLE(); } |
1483 | 1483 |
1484 | 1484 |
1485 void FullCodeGenerator::VisitEmptyParentheses(EmptyParentheses* expr) { | 1485 void FullCodeGenerator::VisitEmptyParentheses(EmptyParentheses* expr) { |
1486 UNREACHABLE(); | 1486 UNREACHABLE(); |
1487 } | 1487 } |
1488 | 1488 |
1489 | 1489 |
| 1490 void FullCodeGenerator::VisitRewritableAssignmentExpression( |
| 1491 RewritableAssignmentExpression* expr) { |
| 1492 Visit(expr->expression()); |
| 1493 } |
| 1494 |
| 1495 |
1490 FullCodeGenerator::NestedStatement* FullCodeGenerator::TryFinally::Exit( | 1496 FullCodeGenerator::NestedStatement* FullCodeGenerator::TryFinally::Exit( |
1491 int* stack_depth, int* context_length) { | 1497 int* stack_depth, int* context_length) { |
1492 // The macros used here must preserve the result register. | 1498 // The macros used here must preserve the result register. |
1493 | 1499 |
1494 // Because the handler block contains the context of the finally | 1500 // Because the handler block contains the context of the finally |
1495 // code, we can restore it directly from there for the finally code | 1501 // code, we can restore it directly from there for the finally code |
1496 // rather than iteratively unwinding contexts via their previous | 1502 // rather than iteratively unwinding contexts via their previous |
1497 // links. | 1503 // links. |
1498 if (*context_length > 0) { | 1504 if (*context_length > 0) { |
1499 __ Drop(*stack_depth); // Down to the handler block. | 1505 __ Drop(*stack_depth); // Down to the handler block. |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1730 return var->mode() == CONST_LEGACY || var->scope()->is_nonlinear() || | 1736 return var->mode() == CONST_LEGACY || var->scope()->is_nonlinear() || |
1731 var->initializer_position() >= proxy->position(); | 1737 var->initializer_position() >= proxy->position(); |
1732 } | 1738 } |
1733 | 1739 |
1734 | 1740 |
1735 #undef __ | 1741 #undef __ |
1736 | 1742 |
1737 | 1743 |
1738 } // namespace internal | 1744 } // namespace internal |
1739 } // namespace v8 | 1745 } // namespace v8 |
OLD | NEW |