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