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

Side by Side Diff: src/hydrogen.cc

Issue 854633002: Eagerly disable optimization of %_GeneratorThrow, %_GeneratorNext (Closed) Base URL: https://chromium.googlesource.com/v8/v8@master
Patch Set: Created 5 years, 11 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
« src/ast-numbering.cc ('K') | « src/ast-numbering.cc ('k') | no next file » | 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/v8.h" 9 #include "src/v8.h"
10 10
(...skipping 12725 matching lines...) Expand 10 before | Expand all | Expand 10 after
12736 HGetCachedArrayIndex* result = New<HGetCachedArrayIndex>(value); 12736 HGetCachedArrayIndex* result = New<HGetCachedArrayIndex>(value);
12737 return ast_context()->ReturnInstruction(result, call->id()); 12737 return ast_context()->ReturnInstruction(result, call->id());
12738 } 12738 }
12739 12739
12740 12740
12741 void HOptimizedGraphBuilder::GenerateFastOneByteArrayJoin(CallRuntime* call) { 12741 void HOptimizedGraphBuilder::GenerateFastOneByteArrayJoin(CallRuntime* call) {
12742 return Bailout(kInlinedRuntimeFunctionFastOneByteArrayJoin); 12742 return Bailout(kInlinedRuntimeFunctionFastOneByteArrayJoin);
12743 } 12743 }
12744 12744
12745 12745
12746 // Support for generators. 12746 // Functions with these generator primitives will not be optimized; see
12747 // ast-numbering.cc.
12747 void HOptimizedGraphBuilder::GenerateGeneratorNext(CallRuntime* call) { 12748 void HOptimizedGraphBuilder::GenerateGeneratorNext(CallRuntime* call) {
12748 return Bailout(kInlinedRuntimeFunctionGeneratorNext); 12749 UNREACHABLE();
12749 } 12750 }
12750 12751
12751 12752
12752 void HOptimizedGraphBuilder::GenerateGeneratorThrow(CallRuntime* call) { 12753 void HOptimizedGraphBuilder::GenerateGeneratorThrow(CallRuntime* call) {
12753 return Bailout(kInlinedRuntimeFunctionGeneratorThrow); 12754 UNREACHABLE();
12754 } 12755 }
12755 12756
12756 12757
12757 void HOptimizedGraphBuilder::GenerateDebugBreakInOptimizedCode( 12758 void HOptimizedGraphBuilder::GenerateDebugBreakInOptimizedCode(
12758 CallRuntime* call) { 12759 CallRuntime* call) {
12759 Add<HDebugBreak>(); 12760 Add<HDebugBreak>();
12760 return ast_context()->ReturnValue(graph()->GetConstant0()); 12761 return ast_context()->ReturnValue(graph()->GetConstant0());
12761 } 12762 }
12762 12763
12763 12764
(...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after
13448 if (ShouldProduceTraceOutput()) { 13449 if (ShouldProduceTraceOutput()) {
13449 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 13450 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
13450 } 13451 }
13451 13452
13452 #ifdef DEBUG 13453 #ifdef DEBUG
13453 graph_->Verify(false); // No full verify. 13454 graph_->Verify(false); // No full verify.
13454 #endif 13455 #endif
13455 } 13456 }
13456 13457
13457 } } // namespace v8::internal 13458 } } // namespace v8::internal
OLDNEW
« src/ast-numbering.cc ('K') | « src/ast-numbering.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698