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

Unified Diff: src/interpreter/interpreter-intrinsics.h

Issue 2034493002: [Interpreter] Add intrinsics for Is<Type> calls. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add non-smi int to test Created 4 years, 6 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 | « no previous file | src/interpreter/interpreter-intrinsics.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/interpreter/interpreter-intrinsics.h
diff --git a/src/interpreter/interpreter-intrinsics.h b/src/interpreter/interpreter-intrinsics.h
index 9d842f384da11080bc1c698e6bb813b98e36f3f5..8606235a2e16d3300e1a7746b5468fd188ad468e 100644
--- a/src/interpreter/interpreter-intrinsics.h
+++ b/src/interpreter/interpreter-intrinsics.h
@@ -24,8 +24,12 @@ class Node;
// expected number of arguments (-1 denoting argument count is variable).
#define INTRINSICS_LIST(V) \
V(Call, call, -1) \
+ V(IsArray, is_array, 1) \
+ V(IsJSProxy, is_js_proxy, 1) \
V(IsJSReceiver, is_js_receiver, 1) \
- V(IsArray, is_array, 1)
+ V(IsRegExp, is_regexp, 1) \
+ V(IsSmi, is_smi, 1) \
+ V(IsTypedArray, is_typed_array, 1)
namespace interpreter {
@@ -45,10 +49,11 @@ class IntrinsicsHelper {
kInstanceTypeEqual,
kInstanceTypeGreaterThanOrEqual
};
+
+ compiler::Node* IsInstanceType(compiler::Node* input, int type);
compiler::Node* CompareInstanceType(compiler::Node* map, int type,
InstanceTypeCompareMode mode);
void AbortIfArgCountMismatch(int expected, compiler::Node* actual);
- InterpreterAssembler* assembler_;
#define DECLARE_INTRINSIC_HELPER(name, lower_case, count) \
compiler::Node* name(compiler::Node* input, compiler::Node* arg_count, \
@@ -56,6 +61,8 @@ class IntrinsicsHelper {
INTRINSICS_LIST(DECLARE_INTRINSIC_HELPER)
#undef DECLARE_INTRINSIC_HELPER
+ InterpreterAssembler* assembler_;
+
DISALLOW_COPY_AND_ASSIGN(IntrinsicsHelper);
};
« no previous file with comments | « no previous file | src/interpreter/interpreter-intrinsics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698