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

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

Issue 919703003: WIP: Implement ES6 Spread-calls (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Flag calls as spread calls in parser, error on spread intrinsics/construct calls Created 5 years, 10 months 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/v8.h" 5 #include "src/v8.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 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 } 285 }
286 } 286 }
287 287
288 288
289 void BreakableStatementChecker::VisitCompareOperation(CompareOperation* expr) { 289 void BreakableStatementChecker::VisitCompareOperation(CompareOperation* expr) {
290 Visit(expr->left()); 290 Visit(expr->left());
291 Visit(expr->right()); 291 Visit(expr->right());
292 } 292 }
293 293
294 294
295 void BreakableStatementChecker::VisitSpreadOperation(SpreadOperation* expr) {
296 Visit(expr->expression());
297 }
298
299
295 void BreakableStatementChecker::VisitThisFunction(ThisFunction* expr) { 300 void BreakableStatementChecker::VisitThisFunction(ThisFunction* expr) {
296 } 301 }
297 302
298 303
299 void BreakableStatementChecker::VisitSuperReference(SuperReference* expr) {} 304 void BreakableStatementChecker::VisitSuperReference(SuperReference* expr) {}
300 305
301 306
302 #define __ ACCESS_MASM(masm()) 307 #define __ ACCESS_MASM(masm())
303 308
304 bool FullCodeGenerator::MakeCode(CompilationInfo* info) { 309 bool FullCodeGenerator::MakeCode(CompilationInfo* info) {
(...skipping 1524 matching lines...) Expand 10 before | Expand all | Expand 10 after
1829 } 1834 }
1830 codegen_->PrepareForBailoutForId(exit_id_, NO_REGISTERS); 1835 codegen_->PrepareForBailoutForId(exit_id_, NO_REGISTERS);
1831 codegen_->scope_ = saved_scope_; 1836 codegen_->scope_ = saved_scope_;
1832 } 1837 }
1833 1838
1834 1839
1835 #undef __ 1840 #undef __
1836 1841
1837 1842
1838 } } // namespace v8::internal 1843 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698