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

Unified Diff: src/interpreter/interpreter.cc

Issue 2707873002: Collect type profile for DevTools. (Closed)
Patch Set: Add documentation and sprinkle consts around. Created 3 years, 9 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 2f5910041d3ee860e6ed0f0d6e41b4c54165f599..e90b9d6572c69b8dc4733c0f2ffeea08bdd39673 100644
--- a/src/interpreter/interpreter.cc
+++ b/src/interpreter/interpreter.cc
@@ -983,6 +983,19 @@ void Interpreter::DoStaDataPropertyInLiteral(InterpreterAssembler* assembler) {
__ Dispatch();
}
+void Interpreter::DoCollectTypeProfile(InterpreterAssembler* assembler) {
+ Node* name = __ LoadRegister(__ BytecodeOperandReg(0));
+ Node* value = __ GetAccumulator();
+ Node* vector_index = __ SmiTag(__ BytecodeOperandIdx(1));
+
+ Node* feedback_vector = __ LoadFeedbackVector();
+ Node* context = __ GetContext();
+
+ __ CallRuntime(Runtime::kCollectTypeProfile, 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