Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Side by Side Diff: src/full-codegen/full-codegen.cc

Issue 1309813007: [es6] implement destructuring assignment (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: An implementation Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698