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

Unified Diff: src/interpreter/bytecode-generator.cc

Issue 2627783008: [ignition] Create the type feedback vector after bytecode generation (Closed)
Patch Set: Extract common functionality to static method on TypeFeedbackMetadata Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler.cc ('k') | src/type-feedback-vector.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/interpreter/bytecode-generator.cc
diff --git a/src/interpreter/bytecode-generator.cc b/src/interpreter/bytecode-generator.cc
index 8c5942143c4021bd9c46f145228f0edbbfe63283..bcd7aa5205a784d456d82b9c6c56cecae4cb02ff 100644
--- a/src/interpreter/bytecode-generator.cc
+++ b/src/interpreter/bytecode-generator.cc
@@ -651,6 +651,14 @@ void BytecodeGenerator::AllocateDeferredConstants(Isolate* isolate) {
array_literal->GetOrBuildConstantElements(isolate);
builder()->InsertConstantPoolEntryAt(literal.second, constant_elements);
}
+
+ // TODO(leszeks): ideally there would be no path to here where feedback
+ // metadata is previously created, and we could create it unconditionally.
+ // We should investigate again once FCG has shuffled off its mortal coil.
+ DCHECK(info()->has_shared_info());
+ TypeFeedbackMetadata::EnsureAllocated(
Michael Starzinger 2017/01/16 15:28:41 Some follow-up questions: 1) Would it be possible
Leszek Swirski 2017/01/16 16:28:03 I'm hesitant, could this interact badly with --alw
+ info()->isolate(), info()->shared_info(),
+ info()->literal()->feedback_vector_spec());
}
void BytecodeGenerator::GenerateBytecode(uintptr_t stack_limit) {
« no previous file with comments | « src/compiler.cc ('k') | src/type-feedback-vector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698