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

Unified Diff: src/code-stub-assembler.h

Issue 2395453002: [stubs] Add String and JSReceiver instance type predicates (Closed)
Patch Set: Created 4 years, 2 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/code-stub-assembler.h
diff --git a/src/code-stub-assembler.h b/src/code-stub-assembler.h
index ec84b38fd73ee4e081ee81842c928fd455e2f760..095b271fadebbbcfc3b3a07f8caef0ac46b67dc4 100644
--- a/src/code-stub-assembler.h
+++ b/src/code-stub-assembler.h
@@ -487,6 +487,10 @@ class CodeStubAssembler : public compiler::CodeAssembler {
InstanceType instance_type,
char const* method_name);
+ // Type checks.
+ compiler::Node* IsStringInstanceType(compiler::Node* instance_type);
+ compiler::Node* IsJSReceiverInstanceType(compiler::Node* instance_type);
+
// String helpers.
// Load a character from a String (might flatten a ConsString).
compiler::Node* StringCharCodeAt(compiler::Node* string,

Powered by Google App Engine
This is Rietveld 408576698