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

Side by Side Diff: src/compilation-info.cc

Issue 2325943002: [turbofan] Initial support for polymorphic inlining. (Closed)
Patch Set: Addressed feedback. Created 4 years, 3 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 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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/compilation-info.h" 5 #include "src/compilation-info.h"
6 6
7 #include "src/api.h" 7 #include "src/api.h"
8 #include "src/ast/ast.h" 8 #include "src/ast/ast.h"
9 #include "src/ast/scopes.h" 9 #include "src/ast/scopes.h"
10 #include "src/isolate.h" 10 #include "src/isolate.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 // Compiling for the snapshot typically results in different code than 45 // Compiling for the snapshot typically results in different code than
46 // compiling later on. This means that code recompiled with deoptimization 46 // compiling later on. This means that code recompiled with deoptimization
47 // support won't be "equivalent" (as defined by SharedFunctionInfo:: 47 // support won't be "equivalent" (as defined by SharedFunctionInfo::
48 // EnableDeoptimizationSupport), so it will replace the old code and all 48 // EnableDeoptimizationSupport), so it will replace the old code and all
49 // its type feedback. To avoid this, always compile functions in the snapshot 49 // its type feedback. To avoid this, always compile functions in the snapshot
50 // with deoptimization support. 50 // with deoptimization support.
51 if (isolate_->serializer_enabled()) EnableDeoptimizationSupport(); 51 if (isolate_->serializer_enabled()) EnableDeoptimizationSupport();
52 52
53 if (FLAG_function_context_specialization) MarkAsFunctionContextSpecializing(); 53 if (FLAG_function_context_specialization) MarkAsFunctionContextSpecializing();
54 if (FLAG_turbo_inlining) MarkAsInliningEnabled();
55 if (FLAG_turbo_source_positions) MarkAsSourcePositionsEnabled(); 54 if (FLAG_turbo_source_positions) MarkAsSourcePositionsEnabled();
56 if (FLAG_turbo_splitting) MarkAsSplittingEnabled(); 55 if (FLAG_turbo_splitting) MarkAsSplittingEnabled();
57 } 56 }
58 57
59 CompilationInfo::CompilationInfo(Vector<const char> debug_name, 58 CompilationInfo::CompilationInfo(Vector<const char> debug_name,
60 Isolate* isolate, Zone* zone, 59 Isolate* isolate, Zone* zone,
61 Code::Flags code_flags) 60 Code::Flags code_flags)
62 : CompilationInfo(nullptr, debug_name, code_flags, STUB, isolate, zone) {} 61 : CompilationInfo(nullptr, debug_name, code_flags, STUB, isolate, zone) {}
63 62
64 CompilationInfo::CompilationInfo(ParseInfo* parse_info, 63 CompilationInfo::CompilationInfo(ParseInfo* parse_info,
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 inlined_functions_.push_back(InlinedFunctionHolder( 207 inlined_functions_.push_back(InlinedFunctionHolder(
209 inlined_function, handle(inlined_function->code()))); 208 inlined_function, handle(inlined_function->code())));
210 } 209 }
211 210
212 Code::Kind CompilationInfo::output_code_kind() const { 211 Code::Kind CompilationInfo::output_code_kind() const {
213 return Code::ExtractKindFromFlags(code_flags_); 212 return Code::ExtractKindFromFlags(code_flags_);
214 } 213 }
215 214
216 } // namespace internal 215 } // namespace internal
217 } // namespace v8 216 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/js-inlining-heuristic.h » ('j') | src/compiler/js-inlining-heuristic.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698