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

Unified Diff: src/interpreter/interpreter.cc

Issue 2169813002: [interpreter] Add output register to ToName (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@addregouts
Patch Set: comments Created 4 years, 5 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.cc ('k') | src/interpreter/mkpeephole.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 8ff3c159dfeb79b604823d43ccb7d0206509b9ed..30555197fc2dcef9d3eab697a501b7050abcf7c1 100644
--- a/src/interpreter/interpreter.cc
+++ b/src/interpreter/interpreter.cc
@@ -1025,7 +1025,9 @@ void Interpreter::DoUnaryOp(InterpreterAssembler* assembler) {
//
// Cast the object referenced by the accumulator to a name.
void Interpreter::DoToName(InterpreterAssembler* assembler) {
- DoUnaryOp(CodeFactory::ToName(isolate_), assembler);
+ Node* result = BuildUnaryOp(CodeFactory::ToName(isolate_), assembler);
+ __ StoreRegister(result, __ BytecodeOperandReg(0));
+ __ Dispatch();
}
// ToNumber
« no previous file with comments | « src/interpreter/bytecodes.cc ('k') | src/interpreter/mkpeephole.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698