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

Unified Diff: src/interpreter/interpreter.cc

Issue 2302923002: [stubs] Port ToName stub to TurboFan. (Closed)
Patch Set: Create ToName helper and inline Interpreter::DoToName 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 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 ef45b5abbe512a5ef7692b91052e8e34e93cbf26..280a9988b0450900a9bd4cf5fc7b7052f1fb377c 100644
--- a/src/interpreter/interpreter.cc
+++ b/src/interpreter/interpreter.cc
@@ -1303,7 +1303,9 @@ void Interpreter::DoUnaryOpWithFeedback(InterpreterAssembler* assembler) {
//
// Convert the object referenced by the accumulator to a name.
void Interpreter::DoToName(InterpreterAssembler* assembler) {
- Node* result = BuildUnaryOp(CodeFactory::ToName(isolate_), assembler);
+ Node* accumulator = __ GetAccumulator();
+ Node* context = __ GetContext();
+ Node* result = assembler->ToName(context, accumulator);
__ StoreRegister(result, __ BytecodeOperandReg(0));
__ Dispatch();
}

Powered by Google App Engine
This is Rietveld 408576698