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.h" | 7 #include "src/ast.h" |
8 #include "src/ast-numbering.h" | 8 #include "src/ast-numbering.h" |
9 #include "src/code-factory.h" | 9 #include "src/code-factory.h" |
10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
(...skipping 1467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1478 break; | 1478 break; |
1479 } | 1479 } |
1480 | 1480 |
1481 #ifdef DEBUG | 1481 #ifdef DEBUG |
1482 // RecordJSReturnSite should have been called. | 1482 // RecordJSReturnSite should have been called. |
1483 DCHECK(expr->return_is_recorded_); | 1483 DCHECK(expr->return_is_recorded_); |
1484 #endif | 1484 #endif |
1485 } | 1485 } |
1486 | 1486 |
1487 | 1487 |
| 1488 void FullCodeGenerator::VisitAssignmentPattern(AssignmentPattern* pattern) { |
| 1489 Visit(pattern->expression()); |
| 1490 } |
| 1491 |
| 1492 |
1488 void FullCodeGenerator::VisitSpread(Spread* expr) { UNREACHABLE(); } | 1493 void FullCodeGenerator::VisitSpread(Spread* expr) { UNREACHABLE(); } |
1489 | 1494 |
1490 | 1495 |
1491 void FullCodeGenerator::VisitEmptyParentheses(EmptyParentheses* expr) { | 1496 void FullCodeGenerator::VisitEmptyParentheses(EmptyParentheses* expr) { |
1492 UNREACHABLE(); | 1497 UNREACHABLE(); |
1493 } | 1498 } |
1494 | 1499 |
1495 | 1500 |
1496 FullCodeGenerator::NestedStatement* FullCodeGenerator::TryFinally::Exit( | 1501 FullCodeGenerator::NestedStatement* FullCodeGenerator::TryFinally::Exit( |
1497 int* stack_depth, int* context_length) { | 1502 int* stack_depth, int* context_length) { |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1736 return var->mode() == CONST_LEGACY || var->scope()->is_nonlinear() || | 1741 return var->mode() == CONST_LEGACY || var->scope()->is_nonlinear() || |
1737 var->initializer_position() >= proxy->position(); | 1742 var->initializer_position() >= proxy->position(); |
1738 } | 1743 } |
1739 | 1744 |
1740 | 1745 |
1741 #undef __ | 1746 #undef __ |
1742 | 1747 |
1743 | 1748 |
1744 } // namespace internal | 1749 } // namespace internal |
1745 } // namespace v8 | 1750 } // namespace v8 |
OLD | NEW |