Chromium Code Reviews

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

Issue 2813623003: [csa] Add IsNumber and IsNumberNormalized predicates (Closed)
Patch Set: Address comments Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « src/builtins/builtins-regexp-gen.cc ('k') | src/code-stub-assembler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/code-stub-assembler.h
diff --git a/src/code-stub-assembler.h b/src/code-stub-assembler.h
index 3937dc6572f38222f51c2193f31257880f58b48c..f988e323670f2092b6a68bf3d622e023745e7f20 100644
--- a/src/code-stub-assembler.h
+++ b/src/code-stub-assembler.h
@@ -739,6 +739,13 @@ class V8_EXPORT_PRIVATE CodeStubAssembler : public compiler::CodeAssembler {
Node* IsFixedTypedArray(Node* object);
Node* IsJSRegExp(Node* object);
+ // True iff |object| is a Smi or a HeapNumber.
+ Node* IsNumber(Node* object);
+
+ // True iff |number| is either a Smi, or a HeapNumber whose value is not
+ // within Smi range.
+ Node* IsNumberNormalized(Node* number);
+
// ElementsKind helpers:
Node* IsFastElementsKind(Node* elements_kind);
Node* IsHoleyFastElementsKind(Node* elements_kind);
« no previous file with comments | « src/builtins/builtins-regexp-gen.cc ('k') | src/code-stub-assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine