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

Side by Side Diff: src/compiler.cc

Issue 1872333002: [turbofan] Remove support for --turbo-types. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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
« no previous file with comments | « src/compiler.h ('k') | src/compiler/js-generic-lowering.h » ('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 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/compiler.h" 5 #include "src/compiler.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "src/ast/ast-numbering.h" 9 #include "src/ast/ast-numbering.h"
10 #include "src/ast/prettyprinter.h" 10 #include "src/ast/prettyprinter.h"
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 // support won't be "equivalent" (as defined by SharedFunctionInfo:: 129 // support won't be "equivalent" (as defined by SharedFunctionInfo::
130 // EnableDeoptimizationSupport), so it will replace the old code and all 130 // EnableDeoptimizationSupport), so it will replace the old code and all
131 // its type feedback. To avoid this, always compile functions in the snapshot 131 // its type feedback. To avoid this, always compile functions in the snapshot
132 // with deoptimization support. 132 // with deoptimization support.
133 if (isolate_->serializer_enabled()) EnableDeoptimizationSupport(); 133 if (isolate_->serializer_enabled()) EnableDeoptimizationSupport();
134 134
135 if (FLAG_function_context_specialization) MarkAsFunctionContextSpecializing(); 135 if (FLAG_function_context_specialization) MarkAsFunctionContextSpecializing();
136 if (FLAG_turbo_inlining) MarkAsInliningEnabled(); 136 if (FLAG_turbo_inlining) MarkAsInliningEnabled();
137 if (FLAG_turbo_source_positions) MarkAsSourcePositionsEnabled(); 137 if (FLAG_turbo_source_positions) MarkAsSourcePositionsEnabled();
138 if (FLAG_turbo_splitting) MarkAsSplittingEnabled(); 138 if (FLAG_turbo_splitting) MarkAsSplittingEnabled();
139 if (FLAG_turbo_types) MarkAsTypingEnabled();
140 139
141 if (has_shared_info()) { 140 if (has_shared_info()) {
142 if (shared_info()->never_compiled()) MarkAsFirstCompile(); 141 if (shared_info()->never_compiled()) MarkAsFirstCompile();
143 } 142 }
144 } 143 }
145 144
146 145
147 CompilationInfo::CompilationInfo(const char* debug_name, Isolate* isolate, 146 CompilationInfo::CompilationInfo(const char* debug_name, Isolate* isolate,
148 Zone* zone, Code::Flags code_flags) 147 Zone* zone, Code::Flags code_flags)
149 : CompilationInfo(nullptr, debug_name, code_flags, STUB, isolate, zone) {} 148 : CompilationInfo(nullptr, debug_name, code_flags, STUB, isolate, zone) {}
(...skipping 1583 matching lines...) Expand 10 before | Expand all | Expand 10 after
1733 MaybeHandle<Code> code; 1732 MaybeHandle<Code> code;
1734 if (cached.code != nullptr) code = handle(cached.code); 1733 if (cached.code != nullptr) code = handle(cached.code);
1735 Handle<Context> native_context(function->context()->native_context()); 1734 Handle<Context> native_context(function->context()->native_context());
1736 SharedFunctionInfo::AddToOptimizedCodeMap(shared, native_context, code, 1735 SharedFunctionInfo::AddToOptimizedCodeMap(shared, native_context, code,
1737 literals, BailoutId::None()); 1736 literals, BailoutId::None());
1738 } 1737 }
1739 } 1738 }
1740 1739
1741 } // namespace internal 1740 } // namespace internal
1742 } // namespace v8 1741 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler.h ('k') | src/compiler/js-generic-lowering.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698