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

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

Issue 1286383005: Parse arrow functions at proper precedence level (Closed) Base URL: https://chromium.googlesource.com/v8/v8@master
Patch Set: Fix nits Created 5 years, 4 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 1382 matching lines...) Expand 10 before | Expand all | Expand 10 after
1393 entry->range_end = masm()->pc_offset(); 1393 entry->range_end = masm()->pc_offset();
1394 1394
1395 // Drop context from operand stack. 1395 // Drop context from operand stack.
1396 __ Drop(TryBlockConstant::kElementCount); 1396 __ Drop(TryBlockConstant::kElementCount);
1397 } 1397 }
1398 1398
1399 1399
1400 void FullCodeGenerator::VisitSpread(Spread* expr) { UNREACHABLE(); } 1400 void FullCodeGenerator::VisitSpread(Spread* expr) { UNREACHABLE(); }
1401 1401
1402 1402
1403 void FullCodeGenerator::VisitEmptyParentheses(EmptyParentheses* expr) {
1404 UNREACHABLE();
1405 }
1406
1407
1403 FullCodeGenerator::NestedStatement* FullCodeGenerator::TryFinally::Exit( 1408 FullCodeGenerator::NestedStatement* FullCodeGenerator::TryFinally::Exit(
1404 int* stack_depth, int* context_length) { 1409 int* stack_depth, int* context_length) {
1405 // The macros used here must preserve the result register. 1410 // The macros used here must preserve the result register.
1406 1411
1407 // Because the handler block contains the context of the finally 1412 // Because the handler block contains the context of the finally
1408 // code, we can restore it directly from there for the finally code 1413 // code, we can restore it directly from there for the finally code
1409 // rather than iteratively unwinding contexts via their previous 1414 // rather than iteratively unwinding contexts via their previous
1410 // links. 1415 // links.
1411 if (*context_length > 0) { 1416 if (*context_length > 0) {
1412 __ Drop(*stack_depth); // Down to the handler block. 1417 __ Drop(*stack_depth); // Down to the handler block.
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
1584 codegen_->PrepareForBailoutForId(exit_id_, NO_REGISTERS); 1589 codegen_->PrepareForBailoutForId(exit_id_, NO_REGISTERS);
1585 codegen_->scope_ = saved_scope_; 1590 codegen_->scope_ = saved_scope_;
1586 } 1591 }
1587 1592
1588 1593
1589 #undef __ 1594 #undef __
1590 1595
1591 1596
1592 } // namespace internal 1597 } // namespace internal
1593 } // namespace v8 1598 } // 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