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

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

Issue 938443002: [es6] implement spread calls (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase + clang-format Created 5 years, 8 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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 } 281 }
282 } 282 }
283 283
284 284
285 void BreakableStatementChecker::VisitCompareOperation(CompareOperation* expr) { 285 void BreakableStatementChecker::VisitCompareOperation(CompareOperation* expr) {
286 Visit(expr->left()); 286 Visit(expr->left());
287 Visit(expr->right()); 287 Visit(expr->right());
288 } 288 }
289 289
290 290
291 void BreakableStatementChecker::VisitSpread(Spread* expr) { UNREACHABLE(); }
292
293
291 void BreakableStatementChecker::VisitThisFunction(ThisFunction* expr) { 294 void BreakableStatementChecker::VisitThisFunction(ThisFunction* expr) {
292 } 295 }
293 296
294 297
295 void BreakableStatementChecker::VisitSuperReference(SuperReference* expr) {} 298 void BreakableStatementChecker::VisitSuperReference(SuperReference* expr) {}
296 299
297 300
298 #define __ ACCESS_MASM(masm()) 301 #define __ ACCESS_MASM(masm())
299 302
300 bool FullCodeGenerator::MakeCode(CompilationInfo* info) { 303 bool FullCodeGenerator::MakeCode(CompilationInfo* info) {
(...skipping 1358 matching lines...) Expand 10 before | Expand all | Expand 10 after
1659 1662
1660 1663
1661 void FullCodeGenerator::ExitTryBlock(int index) { 1664 void FullCodeGenerator::ExitTryBlock(int index) {
1662 handler_table()->SetRangeEnd(index, masm()->pc_offset()); 1665 handler_table()->SetRangeEnd(index, masm()->pc_offset());
1663 1666
1664 // Drop context from operand stack. 1667 // Drop context from operand stack.
1665 __ Drop(TryBlockConstant::kElementCount); 1668 __ Drop(TryBlockConstant::kElementCount);
1666 } 1669 }
1667 1670
1668 1671
1672 void FullCodeGenerator::VisitSpread(Spread* expr) { UNREACHABLE(); }
1673
1674
1669 FullCodeGenerator::NestedStatement* FullCodeGenerator::TryFinally::Exit( 1675 FullCodeGenerator::NestedStatement* FullCodeGenerator::TryFinally::Exit(
1670 int* stack_depth, int* context_length) { 1676 int* stack_depth, int* context_length) {
1671 // The macros used here must preserve the result register. 1677 // The macros used here must preserve the result register.
1672 1678
1673 // Because the handler block contains the context of the finally 1679 // Because the handler block contains the context of the finally
1674 // code, we can restore it directly from there for the finally code 1680 // code, we can restore it directly from there for the finally code
1675 // rather than iteratively unwinding contexts via their previous 1681 // rather than iteratively unwinding contexts via their previous
1676 // links. 1682 // links.
1677 if (*context_length > 0) { 1683 if (*context_length > 0) {
1678 __ Drop(*stack_depth); // Down to the handler block. 1684 __ Drop(*stack_depth); // Down to the handler block.
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
1844 } 1850 }
1845 codegen_->PrepareForBailoutForId(exit_id_, NO_REGISTERS); 1851 codegen_->PrepareForBailoutForId(exit_id_, NO_REGISTERS);
1846 codegen_->scope_ = saved_scope_; 1852 codegen_->scope_ = saved_scope_;
1847 } 1853 }
1848 1854
1849 1855
1850 #undef __ 1856 #undef __
1851 1857
1852 1858
1853 } } // namespace v8::internal 1859 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/full-codegen.h ('k') | src/harmony-spread.js » ('j') | test/js-perf-test/JSTests.json » ('J')

Powered by Google App Engine
This is Rietveld 408576698