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

Side by Side Diff: src/compiler.cc

Issue 785933002: Make --no-turbo-types work on all paths through the pipeline. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years 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 | « no previous file | 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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/compiler.h" 7 #include "src/compiler.h"
8 8
9 #include "src/ast-numbering.h" 9 #include "src/ast-numbering.h"
10 #include "src/ast-this-access-visitor.h" 10 #include "src/ast-this-access-visitor.h"
(...skipping 927 matching lines...) Expand 10 before | Expand all | Expand 10 after
938 DCHECK(!function->is_compiled()); 938 DCHECK(!function->is_compiled());
939 // If the debugger is active, do not compile with turbofan unless we can 939 // If the debugger is active, do not compile with turbofan unless we can
940 // deopt from turbofan code. 940 // deopt from turbofan code.
941 if (FLAG_turbo_asm && function->shared()->asm_function() && 941 if (FLAG_turbo_asm && function->shared()->asm_function() &&
942 (FLAG_turbo_deoptimization || !isolate->debug()->is_active())) { 942 (FLAG_turbo_deoptimization || !isolate->debug()->is_active())) {
943 CompilationInfoWithZone info(function); 943 CompilationInfoWithZone info(function);
944 944
945 VMState<COMPILER> state(isolate); 945 VMState<COMPILER> state(isolate);
946 PostponeInterruptsScope postpone(isolate); 946 PostponeInterruptsScope postpone(isolate);
947 947
948 info.SetOptimizing(BailoutId::None(), 948 info.SetOptimizing(BailoutId::None(), handle(function->shared()->code()));
949 Handle<Code>(function->shared()->code()));
950
951 info.MarkAsContextSpecializing(); 949 info.MarkAsContextSpecializing();
952 info.MarkAsTypingEnabled();
953 950
954 if (GetOptimizedCodeNow(&info)) { 951 if (GetOptimizedCodeNow(&info)) {
955 DCHECK(function->shared()->is_compiled()); 952 DCHECK(function->shared()->is_compiled());
956 return info.code(); 953 return info.code();
957 } 954 }
958 } 955 }
959 956
960 if (function->shared()->is_compiled()) { 957 if (function->shared()->is_compiled()) {
961 return Handle<Code>(function->shared()->code()); 958 return Handle<Code>(function->shared()->code());
962 } 959 }
(...skipping 612 matching lines...) Expand 10 before | Expand all | Expand 10 after
1575 AllowHandleDereference allow_deref; 1572 AllowHandleDereference allow_deref;
1576 bool tracing_on = info()->IsStub() 1573 bool tracing_on = info()->IsStub()
1577 ? FLAG_trace_hydrogen_stubs 1574 ? FLAG_trace_hydrogen_stubs
1578 : (FLAG_trace_hydrogen && 1575 : (FLAG_trace_hydrogen &&
1579 info()->closure()->PassesFilter(FLAG_trace_hydrogen_filter)); 1576 info()->closure()->PassesFilter(FLAG_trace_hydrogen_filter));
1580 return (tracing_on && 1577 return (tracing_on &&
1581 base::OS::StrChr(const_cast<char*>(FLAG_trace_phase), name_[0]) != NULL); 1578 base::OS::StrChr(const_cast<char*>(FLAG_trace_phase), name_[0]) != NULL);
1582 } 1579 }
1583 1580
1584 } } // namespace v8::internal 1581 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698