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

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

Issue 2389233002: [regexp] Port RegExp getters and setters (Closed)
Patch Set: Handle Smi receivers 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 unified diff | Download patch
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 11 matching lines...) Expand all
22 enum class UnicodeEncoding { 22 enum class UnicodeEncoding {
23 // Different unicode encodings in a |word32|: 23 // Different unicode encodings in a |word32|:
24 UTF16, // hi 16bits -> trailing surrogate or 0, low 16bits -> lead surrogate 24 UTF16, // hi 16bits -> trailing surrogate or 0, low 16bits -> lead surrogate
25 UTF32, // full UTF32 code unit / Unicode codepoint 25 UTF32, // full UTF32 code unit / Unicode codepoint
26 }; 26 };
27 27
28 #define HEAP_CONSTANT_LIST(V) \ 28 #define HEAP_CONSTANT_LIST(V) \
29 V(BooleanMap, BooleanMap) \ 29 V(BooleanMap, BooleanMap) \
30 V(empty_string, EmptyString) \ 30 V(empty_string, EmptyString) \
31 V(EmptyFixedArray, EmptyFixedArray) \ 31 V(EmptyFixedArray, EmptyFixedArray) \
32 V(FalseValue, False) \
32 V(FixedArrayMap, FixedArrayMap) \ 33 V(FixedArrayMap, FixedArrayMap) \
33 V(FixedCOWArrayMap, FixedCOWArrayMap) \ 34 V(FixedCOWArrayMap, FixedCOWArrayMap) \
34 V(FixedDoubleArrayMap, FixedDoubleArrayMap) \ 35 V(FixedDoubleArrayMap, FixedDoubleArrayMap) \
35 V(HeapNumberMap, HeapNumberMap) \ 36 V(HeapNumberMap, HeapNumberMap) \
36 V(MinusZeroValue, MinusZero) \ 37 V(MinusZeroValue, MinusZero) \
37 V(NanValue, Nan) \ 38 V(NanValue, Nan) \
38 V(NullValue, Null) \ 39 V(NullValue, Null) \
39 V(TheHoleValue, TheHole) \ 40 V(TheHoleValue, TheHole) \
41 V(TrueValue, True) \
40 V(UndefinedValue, Undefined) 42 V(UndefinedValue, Undefined)
41 43
42 // Provides JavaScript-specific "macro-assembler" functionality on top of the 44 // Provides JavaScript-specific "macro-assembler" functionality on top of the
43 // CodeAssembler. By factoring the JavaScript-isms out of the CodeAssembler, 45 // CodeAssembler. By factoring the JavaScript-isms out of the CodeAssembler,
44 // it's possible to add JavaScript-specific useful CodeAssembler "macros" 46 // it's possible to add JavaScript-specific useful CodeAssembler "macros"
45 // without modifying files in the compiler directory (and requiring a review 47 // without modifying files in the compiler directory (and requiring a review
46 // from a compiler directory OWNER). 48 // from a compiler directory OWNER).
47 class CodeStubAssembler : public compiler::CodeAssembler { 49 class CodeStubAssembler : public compiler::CodeAssembler {
48 public: 50 public:
49 // Create with CallStub linkage. 51 // Create with CallStub linkage.
(...skipping 847 matching lines...) Expand 10 before | Expand all | Expand 10 after
897 Label* bailout); 899 Label* bailout);
898 900
899 static const int kElementLoopUnrollThreshold = 8; 901 static const int kElementLoopUnrollThreshold = 8;
900 }; 902 };
901 903
902 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); 904 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags);
903 905
904 } // namespace internal 906 } // namespace internal
905 } // namespace v8 907 } // namespace v8
906 #endif // V8_CODE_STUB_ASSEMBLER_H_ 908 #endif // V8_CODE_STUB_ASSEMBLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698