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 1315823002: Parse arrow functions at proper precedence level (Closed) Base URL: https://chromium.googlesource.com/v8/v8@master
Patch Set: Fix nits Created 5 years, 3 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
« no previous file with comments | « src/compiler/ast-loop-assignment-analyzer.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/ast.h" 5 #include "src/ast.h"
6 #include "src/ast-numbering.h" 6 #include "src/ast-numbering.h"
7 #include "src/code-factory.h" 7 #include "src/code-factory.h"
8 #include "src/codegen.h" 8 #include "src/codegen.h"
9 #include "src/compiler.h" 9 #include "src/compiler.h"
10 #include "src/debug/debug.h" 10 #include "src/debug/debug.h"
(...skipping 1381 matching lines...) Expand 10 before | Expand all | Expand 10 after
1392 entry->range_end = masm()->pc_offset(); 1392 entry->range_end = masm()->pc_offset();
1393 1393
1394 // Drop context from operand stack. 1394 // Drop context from operand stack.
1395 __ Drop(TryBlockConstant::kElementCount); 1395 __ Drop(TryBlockConstant::kElementCount);
1396 } 1396 }
1397 1397
1398 1398
1399 void FullCodeGenerator::VisitSpread(Spread* expr) { UNREACHABLE(); } 1399 void FullCodeGenerator::VisitSpread(Spread* expr) { UNREACHABLE(); }
1400 1400
1401 1401
1402 void FullCodeGenerator::VisitEmptyParentheses(EmptyParentheses* expr) {
1403 UNREACHABLE();
1404 }
1405
1406
1402 FullCodeGenerator::NestedStatement* FullCodeGenerator::TryFinally::Exit( 1407 FullCodeGenerator::NestedStatement* FullCodeGenerator::TryFinally::Exit(
1403 int* stack_depth, int* context_length) { 1408 int* stack_depth, int* context_length) {
1404 // The macros used here must preserve the result register. 1409 // The macros used here must preserve the result register.
1405 1410
1406 // Because the handler block contains the context of the finally 1411 // Because the handler block contains the context of the finally
1407 // code, we can restore it directly from there for the finally code 1412 // code, we can restore it directly from there for the finally code
1408 // rather than iteratively unwinding contexts via their previous 1413 // rather than iteratively unwinding contexts via their previous
1409 // links. 1414 // links.
1410 if (*context_length > 0) { 1415 if (*context_length > 0) {
1411 __ Drop(*stack_depth); // Down to the handler block. 1416 __ Drop(*stack_depth); // Down to the handler block.
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
1583 codegen_->PrepareForBailoutForId(exit_id_, NO_REGISTERS); 1588 codegen_->PrepareForBailoutForId(exit_id_, NO_REGISTERS);
1584 codegen_->scope_ = saved_scope_; 1589 codegen_->scope_ = saved_scope_;
1585 } 1590 }
1586 1591
1587 1592
1588 #undef __ 1593 #undef __
1589 1594
1590 1595
1591 } // namespace internal 1596 } // namespace internal
1592 } // namespace v8 1597 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/ast-loop-assignment-analyzer.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698