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

Side by Side 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. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/builtins/builtins-regexp-gen.cc ('k') | src/code-stub-assembler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_CODE_STUB_ASSEMBLER_H_ 5 #ifndef V8_CODE_STUB_ASSEMBLER_H_
6 #define V8_CODE_STUB_ASSEMBLER_H_ 6 #define V8_CODE_STUB_ASSEMBLER_H_
7 7
8 #include <functional> 8 #include <functional>
9 9
10 #include "src/compiler/code-assembler.h" 10 #include "src/compiler/code-assembler.h"
(...skipping 721 matching lines...) Expand 10 before | Expand all | Expand 10 after
732 Node* IsFixedDoubleArray(Node* object); 732 Node* IsFixedDoubleArray(Node* object);
733 Node* IsHashTable(Node* object); 733 Node* IsHashTable(Node* object);
734 Node* IsDictionary(Node* object); 734 Node* IsDictionary(Node* object);
735 Node* IsUnseededNumberDictionary(Node* object); 735 Node* IsUnseededNumberDictionary(Node* object);
736 Node* IsConstructorMap(Node* map); 736 Node* IsConstructorMap(Node* map);
737 Node* IsJSFunction(Node* object); 737 Node* IsJSFunction(Node* object);
738 Node* IsJSTypedArray(Node* object); 738 Node* IsJSTypedArray(Node* object);
739 Node* IsFixedTypedArray(Node* object); 739 Node* IsFixedTypedArray(Node* object);
740 Node* IsJSRegExp(Node* object); 740 Node* IsJSRegExp(Node* object);
741 741
742 // True iff |object| is a Smi or a HeapNumber.
743 Node* IsNumber(Node* object);
744
745 // True iff |number| is either a Smi, or a HeapNumber whose value is not
746 // within Smi range.
747 Node* IsNumberNormalized(Node* number);
748
742 // ElementsKind helpers: 749 // ElementsKind helpers:
743 Node* IsFastElementsKind(Node* elements_kind); 750 Node* IsFastElementsKind(Node* elements_kind);
744 Node* IsHoleyFastElementsKind(Node* elements_kind); 751 Node* IsHoleyFastElementsKind(Node* elements_kind);
745 752
746 // String helpers. 753 // String helpers.
747 // Load a character from a String (might flatten a ConsString). 754 // Load a character from a String (might flatten a ConsString).
748 Node* StringCharCodeAt(Node* string, Node* index, 755 Node* StringCharCodeAt(Node* string, Node* index,
749 ParameterMode parameter_mode = SMI_PARAMETERS); 756 ParameterMode parameter_mode = SMI_PARAMETERS);
750 // Return the single character string with only {code}. 757 // Return the single character string with only {code}.
751 Node* StringFromCharCode(Node* code); 758 Node* StringFromCharCode(Node* code);
(...skipping 744 matching lines...) Expand 10 before | Expand all | Expand 10 after
1496 } 1503 }
1497 #else 1504 #else
1498 #define CSA_SLOW_ASSERT(csa, x) ((void)0) 1505 #define CSA_SLOW_ASSERT(csa, x) ((void)0)
1499 #endif 1506 #endif
1500 1507
1501 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); 1508 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags);
1502 1509
1503 } // namespace internal 1510 } // namespace internal
1504 } // namespace v8 1511 } // namespace v8
1505 #endif // V8_CODE_STUB_ASSEMBLER_H_ 1512 #endif // V8_CODE_STUB_ASSEMBLER_H_
OLDNEW
« 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
This is Rietveld 408576698