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

Side by Side Diff: src/code-stub-assembler.h

Issue 2863643004: [regexp] Avoid runtime call on OOB lastIndex values (Closed)
Patch Set: Add IsNumberPositive assert Created 3 years, 7 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 768 matching lines...) Expand 10 before | Expand all | Expand 10 after
779 Node* IsFixedTypedArray(Node* object); 779 Node* IsFixedTypedArray(Node* object);
780 Node* IsJSRegExp(Node* object); 780 Node* IsJSRegExp(Node* object);
781 Node* IsFeedbackVector(Node* object); 781 Node* IsFeedbackVector(Node* object);
782 782
783 // True iff |object| is a Smi or a HeapNumber. 783 // True iff |object| is a Smi or a HeapNumber.
784 Node* IsNumber(Node* object); 784 Node* IsNumber(Node* object);
785 785
786 // True iff |number| is either a Smi, or a HeapNumber whose value is not 786 // True iff |number| is either a Smi, or a HeapNumber whose value is not
787 // within Smi range. 787 // within Smi range.
788 Node* IsNumberNormalized(Node* number); 788 Node* IsNumberNormalized(Node* number);
789 Node* IsNumberPositive(Node* number);
789 790
790 // ElementsKind helpers: 791 // ElementsKind helpers:
791 Node* IsFastElementsKind(Node* elements_kind); 792 Node* IsFastElementsKind(Node* elements_kind);
792 Node* IsHoleyFastElementsKind(Node* elements_kind); 793 Node* IsHoleyFastElementsKind(Node* elements_kind);
793 Node* IsElementsKindGreaterThan(Node* target_kind, 794 Node* IsElementsKindGreaterThan(Node* target_kind,
794 ElementsKind reference_kind); 795 ElementsKind reference_kind);
795 796
796 // String helpers. 797 // String helpers.
797 // Load a character from a String (might flatten a ConsString). 798 // Load a character from a String (might flatten a ConsString).
798 Node* StringCharCodeAt(Node* string, Node* index, 799 Node* StringCharCodeAt(Node* string, Node* index,
(...skipping 794 matching lines...) Expand 10 before | Expand all | Expand 10 after
1593 } 1594 }
1594 #else 1595 #else
1595 #define CSA_SLOW_ASSERT(csa, x) ((void)0) 1596 #define CSA_SLOW_ASSERT(csa, x) ((void)0)
1596 #endif 1597 #endif
1597 1598
1598 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); 1599 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags);
1599 1600
1600 } // namespace internal 1601 } // namespace internal
1601 } // namespace v8 1602 } // namespace v8
1602 #endif // V8_CODE_STUB_ASSEMBLER_H_ 1603 #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