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

Unified Diff: src/interpreter/interpreter.cc

Issue 2707873002: Collect type profile for DevTools. (Closed)
Patch Set: Use constructor name if available. Created 3 years, 10 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
Index: src/interpreter/interpreter.cc
diff --git a/src/interpreter/interpreter.cc b/src/interpreter/interpreter.cc
index fb78dbd240e650076d2d3c823e8b030987fc8139..7357c2915c4542b0469e68b5c1997e619c8688ab 100644
--- a/src/interpreter/interpreter.cc
+++ b/src/interpreter/interpreter.cc
@@ -980,6 +980,19 @@ void Interpreter::DoStaDataPropertyInLiteral(InterpreterAssembler* assembler) {
__ Dispatch();
}
+void Interpreter::DoCollectTypeProfile(InterpreterAssembler* assembler) {
+ Node* name = __ LoadRegister(__ BytecodeOperandReg(0));
+ Node* value = __ LoadRegister(__ BytecodeOperandReg(1));
+ Node* vector_index = __ SmiTag(__ BytecodeOperandIdx(2));
+
+ Node* feedback_vector = __ LoadFeedbackVector();
+ Node* context = __ GetContext();
+
+ __ CallRuntime(Runtime::kStoreTypeInformation, context, name, value,
+ feedback_vector, vector_index);
+ __ Dispatch();
+}
+
// LdaModuleVariable <cell_index> <depth>
//
// Load the contents of a module variable into the accumulator. The variable is

Powered by Google App Engine
This is Rietveld 408576698