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

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

Issue 1315503002: Revert of Parse arrow functions at proper precedence level (Closed) Base URL: https://chromium.googlesource.com/v8/v8@master
Patch Set: 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 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
1408 FullCodeGenerator::NestedStatement* FullCodeGenerator::TryFinally::Exit( 1403 FullCodeGenerator::NestedStatement* FullCodeGenerator::TryFinally::Exit(
1409 int* stack_depth, int* context_length) { 1404 int* stack_depth, int* context_length) {
1410 // The macros used here must preserve the result register. 1405 // The macros used here must preserve the result register.
1411 1406
1412 // Because the handler block contains the context of the finally 1407 // Because the handler block contains the context of the finally
1413 // code, we can restore it directly from there for the finally code 1408 // code, we can restore it directly from there for the finally code
1414 // rather than iteratively unwinding contexts via their previous 1409 // rather than iteratively unwinding contexts via their previous
1415 // links. 1410 // links.
1416 if (*context_length > 0) { 1411 if (*context_length > 0) {
1417 __ Drop(*stack_depth); // Down to the handler block. 1412 __ Drop(*stack_depth); // Down to the handler block.
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
1589 codegen_->PrepareForBailoutForId(exit_id_, NO_REGISTERS); 1584 codegen_->PrepareForBailoutForId(exit_id_, NO_REGISTERS);
1590 codegen_->scope_ = saved_scope_; 1585 codegen_->scope_ = saved_scope_;
1591 } 1586 }
1592 1587
1593 1588
1594 #undef __ 1589 #undef __
1595 1590
1596 1591
1597 } // namespace internal 1592 } // namespace internal
1598 } // namespace v8 1593 } // 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