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

Side by Side Diff: src/hydrogen.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/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 11515 matching lines...) Expand 10 before | Expand all | Expand 10 after
11526 HIfContinuation continuation; 11526 HIfContinuation continuation;
11527 BuildCompareNil(value, type, &continuation); 11527 BuildCompareNil(value, type, &continuation);
11528 return ast_context()->ReturnContinuation(&continuation, expr->id()); 11528 return ast_context()->ReturnContinuation(&continuation, expr->id());
11529 } 11529 }
11530 } 11530 }
11531 11531
11532 11532
11533 void HOptimizedGraphBuilder::VisitSpread(Spread* expr) { UNREACHABLE(); } 11533 void HOptimizedGraphBuilder::VisitSpread(Spread* expr) { UNREACHABLE(); }
11534 11534
11535 11535
11536 void HOptimizedGraphBuilder::VisitEmptyParentheses(EmptyParentheses* expr) {
11537 UNREACHABLE();
11538 }
11539
11540
11536 HInstruction* HOptimizedGraphBuilder::BuildThisFunction() { 11541 HInstruction* HOptimizedGraphBuilder::BuildThisFunction() {
11537 // If we share optimized code between different closures, the 11542 // If we share optimized code between different closures, the
11538 // this-function is not a constant, except inside an inlined body. 11543 // this-function is not a constant, except inside an inlined body.
11539 if (function_state()->outer() != NULL) { 11544 if (function_state()->outer() != NULL) {
11540 return New<HConstant>( 11545 return New<HConstant>(
11541 function_state()->compilation_info()->closure()); 11546 function_state()->compilation_info()->closure());
11542 } else { 11547 } else {
11543 return New<HThisFunction>(); 11548 return New<HThisFunction>();
11544 } 11549 }
11545 } 11550 }
(...skipping 1906 matching lines...) Expand 10 before | Expand all | Expand 10 after
13452 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 13457 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
13453 } 13458 }
13454 13459
13455 #ifdef DEBUG 13460 #ifdef DEBUG
13456 graph_->Verify(false); // No full verify. 13461 graph_->Verify(false); // No full verify.
13457 #endif 13462 #endif
13458 } 13463 }
13459 13464
13460 } // namespace internal 13465 } // namespace internal
13461 } // namespace v8 13466 } // 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