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

Unified Diff: src/interpreter/interpreter.cc

Issue 2195863002: [turbofan] Stub for typeof operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Delete now unused untemplated DoUnaryOp 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/interpreter.h ('k') | src/mips/code-stubs-mips.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 c47342e4b0d9976f222231984c53f97f7ff0d8a0..33e945271a680beef05dd9f93d6439a823099288 100644
--- a/src/interpreter/interpreter.cc
+++ b/src/interpreter/interpreter.cc
@@ -1022,13 +1022,6 @@ Node* Interpreter::BuildUnaryOp(Callable callable,
return __ CallStub(callable.descriptor(), target, context, accumulator);
}
-void Interpreter::DoUnaryOp(Callable callable,
- InterpreterAssembler* assembler) {
- Node* result = BuildUnaryOp(callable, assembler);
- __ SetAccumulator(result);
- __ Dispatch();
-}
-
template <class Generator>
void Interpreter::DoUnaryOp(InterpreterAssembler* assembler) {
Node* value = __ GetAccumulator();
@@ -1141,7 +1134,7 @@ void Interpreter::DoLogicalNot(InterpreterAssembler* assembler) {
// Load the accumulator with the string representating type of the
// object in the accumulator.
void Interpreter::DoTypeOf(InterpreterAssembler* assembler) {
- DoUnaryOp(CodeFactory::Typeof(isolate_), assembler);
+ DoUnaryOp<TypeofStub>(assembler);
}
void Interpreter::DoDelete(Runtime::FunctionId function_id,
« no previous file with comments | « src/interpreter/interpreter.h ('k') | src/mips/code-stubs-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698