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

Unified Diff: src/compiler/interpreter-assembler.h

Issue 1645763003: [Interpreter] TurboFan implementation of intrinsics. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 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/compiler/interpreter-assembler.h
diff --git a/src/compiler/interpreter-assembler.h b/src/compiler/interpreter-assembler.h
index fb79d3eaa2ff2a506faf3cb3cbd2e6f91b767b74..e8995a4903231aa396864efbff5502a5996bc25d 100644
--- a/src/compiler/interpreter-assembler.h
+++ b/src/compiler/interpreter-assembler.h
@@ -140,6 +140,9 @@ class InterpreterAssembler {
Node* CallRuntime(Runtime::FunctionId function_id, Node* arg1, Node* arg2,
Node* arg3, Node* arg4);
+ // Optimization for a few supported intrinsics taking only one argument.
+ Node* IntrinsicOneArg(Node* function_id, Node* arg);
+
// Jump relative to the current bytecode by |jump_offset|.
void Jump(Node* jump_offset);
@@ -195,6 +198,11 @@ class InterpreterAssembler {
Node* Advance(int delta);
Node* Advance(Node* delta);
+ // Helper methods to deal with IntrinsicOneArg.
+ Node* ToBoolean(Node* arg);
+ Node* IsJSReceiver(Node* arg);
+ Node* IsJSArray(Node* arg);
+
// Starts next instruction dispatch at |new_bytecode_offset|.
void DispatchTo(Node* new_bytecode_offset);

Powered by Google App Engine
This is Rietveld 408576698