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

Side by Side Diff: src/hydrogen.cc

Issue 938443002: [es6] implement spread calls (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase + clang-format Created 5 years, 8 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
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/v8.h" 9 #include "src/v8.h"
10 10
(...skipping 10995 matching lines...) Expand 10 before | Expand all | Expand 10 after
11006 DCHECK_EQ(Token::EQ, expr->op()); 11006 DCHECK_EQ(Token::EQ, expr->op());
11007 Type* type = expr->combined_type()->Is(Type::None()) 11007 Type* type = expr->combined_type()->Is(Type::None())
11008 ? Type::Any(zone()) : expr->combined_type(); 11008 ? Type::Any(zone()) : expr->combined_type();
11009 HIfContinuation continuation; 11009 HIfContinuation continuation;
11010 BuildCompareNil(value, type, &continuation); 11010 BuildCompareNil(value, type, &continuation);
11011 return ast_context()->ReturnContinuation(&continuation, expr->id()); 11011 return ast_context()->ReturnContinuation(&continuation, expr->id());
11012 } 11012 }
11013 } 11013 }
11014 11014
11015 11015
11016 void HOptimizedGraphBuilder::VisitSpread(Spread* expr) { UNREACHABLE(); }
11017
11018
11016 HInstruction* HOptimizedGraphBuilder::BuildThisFunction() { 11019 HInstruction* HOptimizedGraphBuilder::BuildThisFunction() {
11017 // If we share optimized code between different closures, the 11020 // If we share optimized code between different closures, the
11018 // this-function is not a constant, except inside an inlined body. 11021 // this-function is not a constant, except inside an inlined body.
11019 if (function_state()->outer() != NULL) { 11022 if (function_state()->outer() != NULL) {
11020 return New<HConstant>( 11023 return New<HConstant>(
11021 function_state()->compilation_info()->closure()); 11024 function_state()->compilation_info()->closure());
11022 } else { 11025 } else {
11023 return New<HThisFunction>(); 11026 return New<HThisFunction>();
11024 } 11027 }
11025 } 11028 }
(...skipping 1896 matching lines...) Expand 10 before | Expand all | Expand 10 after
12922 if (ShouldProduceTraceOutput()) { 12925 if (ShouldProduceTraceOutput()) {
12923 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 12926 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
12924 } 12927 }
12925 12928
12926 #ifdef DEBUG 12929 #ifdef DEBUG
12927 graph_->Verify(false); // No full verify. 12930 graph_->Verify(false); // No full verify.
12928 #endif 12931 #endif
12929 } 12932 }
12930 12933
12931 } } // namespace v8::internal 12934 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698