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

Side by Side Diff: src/hydrogen.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, 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
11533 HInstruction* HOptimizedGraphBuilder::BuildThisFunction() { 11528 HInstruction* HOptimizedGraphBuilder::BuildThisFunction() {
11534 // If we share optimized code between different closures, the 11529 // If we share optimized code between different closures, the
11535 // this-function is not a constant, except inside an inlined body. 11530 // this-function is not a constant, except inside an inlined body.
11536 if (function_state()->outer() != NULL) { 11531 if (function_state()->outer() != NULL) {
11537 return New<HConstant>( 11532 return New<HConstant>(
11538 function_state()->compilation_info()->closure()); 11533 function_state()->compilation_info()->closure());
11539 } else { 11534 } else {
11540 return New<HThisFunction>(); 11535 return New<HThisFunction>();
11541 } 11536 }
11542 } 11537 }
(...skipping 1897 matching lines...) Expand 10 before | Expand all | Expand 10 after
13440 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 13435 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
13441 } 13436 }
13442 13437
13443 #ifdef DEBUG 13438 #ifdef DEBUG
13444 graph_->Verify(false); // No full verify. 13439 graph_->Verify(false); // No full verify.
13445 #endif 13440 #endif
13446 } 13441 }
13447 13442
13448 } // namespace internal 13443 } // namespace internal
13449 } // namespace v8 13444 } // 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