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

Unified Diff: src/interpreter/interpreter.cc

Issue 2707873002: Collect type profile for DevTools. (Closed)
Patch Set: Explain why throw is needed in message test. 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
« no previous file with comments | « src/interpreter/bytecodes.h ('k') | src/objects-printer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/interpreter/interpreter.cc
diff --git a/src/interpreter/interpreter.cc b/src/interpreter/interpreter.cc
index a2949d5f787270666067d19d5960df5e7eefee4c..6af06fddbb74311de367d9aaca53e09592a8e0c6 100644
--- a/src/interpreter/interpreter.cc
+++ b/src/interpreter/interpreter.cc
@@ -1045,6 +1045,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
« no previous file with comments | « src/interpreter/bytecodes.h ('k') | src/objects-printer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698