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

Side by Side Diff: src/hydrogen.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/full-codegen/full-codegen.cc ('k') | src/interpreter/bytecode-generator.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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/hydrogen.h" 5 #include "src/hydrogen.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/allocation-site-scopes.h" 9 #include "src/allocation-site-scopes.h"
10 #include "src/ast-numbering.h" 10 #include "src/ast-numbering.h"
(...skipping 11507 matching lines...) Expand 10 before | Expand all | Expand 10 after
11518 HIfContinuation continuation; 11518 HIfContinuation continuation;
11519 BuildCompareNil(value, type, &continuation); 11519 BuildCompareNil(value, type, &continuation);
11520 return ast_context()->ReturnContinuation(&continuation, expr->id()); 11520 return ast_context()->ReturnContinuation(&continuation, expr->id());
11521 } 11521 }
11522 } 11522 }
11523 11523
11524 11524
11525 void HOptimizedGraphBuilder::VisitSpread(Spread* expr) { UNREACHABLE(); } 11525 void HOptimizedGraphBuilder::VisitSpread(Spread* expr) { UNREACHABLE(); }
11526 11526
11527 11527
11528 void HOptimizedGraphBuilder::VisitEmptyParentheses(EmptyParentheses* expr) {
11529 UNREACHABLE();
11530 }
11531
11532
11528 HInstruction* HOptimizedGraphBuilder::BuildThisFunction() { 11533 HInstruction* HOptimizedGraphBuilder::BuildThisFunction() {
11529 // If we share optimized code between different closures, the 11534 // If we share optimized code between different closures, the
11530 // this-function is not a constant, except inside an inlined body. 11535 // this-function is not a constant, except inside an inlined body.
11531 if (function_state()->outer() != NULL) { 11536 if (function_state()->outer() != NULL) {
11532 return New<HConstant>( 11537 return New<HConstant>(
11533 function_state()->compilation_info()->closure()); 11538 function_state()->compilation_info()->closure());
11534 } else { 11539 } else {
11535 return New<HThisFunction>(); 11540 return New<HThisFunction>();
11536 } 11541 }
11537 } 11542 }
(...skipping 1897 matching lines...) Expand 10 before | Expand all | Expand 10 after
13435 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 13440 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
13436 } 13441 }
13437 13442
13438 #ifdef DEBUG 13443 #ifdef DEBUG
13439 graph_->Verify(false); // No full verify. 13444 graph_->Verify(false); // No full verify.
13440 #endif 13445 #endif
13441 } 13446 }
13442 13447
13443 } // namespace internal 13448 } // namespace internal
13444 } // namespace v8 13449 } // namespace v8
OLDNEW
« no previous file with comments | « src/full-codegen/full-codegen.cc ('k') | src/interpreter/bytecode-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698