| OLD | NEW |
| 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" |
| 11 #include "src/objects.h" | 11 #include "src/objects.h" |
| 12 | 12 |
| 13 namespace v8 { | 13 namespace v8 { |
| 14 namespace internal { | 14 namespace internal { |
| 15 | 15 |
| 16 class CallInterfaceDescriptor; | 16 class CallInterfaceDescriptor; |
| 17 class StatsCounter; | 17 class StatsCounter; |
| 18 class StubCache; | 18 class StubCache; |
| 19 | 19 |
| 20 enum class PrimitiveType { kBoolean, kNumber, kString, kSymbol }; | 20 enum class PrimitiveType { kBoolean, kNumber, kString, kSymbol }; |
| 21 | 21 |
| 22 enum class UnicodeEncoding { |
| 23 // Different unicode encodings in a |word32|: |
| 24 UTF16, // hi 16bits -> trailing surrogate or 0, low 16bits -> lead surrogate |
| 25 UTF32, // full UTF32 code unit / Unicode codepoint |
| 26 }; |
| 27 |
| 22 #define HEAP_CONSTANT_LIST(V) \ | 28 #define HEAP_CONSTANT_LIST(V) \ |
| 23 V(BooleanMap, BooleanMap) \ | 29 V(BooleanMap, BooleanMap) \ |
| 24 V(empty_string, EmptyString) \ | 30 V(empty_string, EmptyString) \ |
| 25 V(EmptyFixedArray, EmptyFixedArray) \ | 31 V(EmptyFixedArray, EmptyFixedArray) \ |
| 26 V(FixedArrayMap, FixedArrayMap) \ | 32 V(FixedArrayMap, FixedArrayMap) \ |
| 27 V(FixedCOWArrayMap, FixedCOWArrayMap) \ | 33 V(FixedCOWArrayMap, FixedCOWArrayMap) \ |
| 28 V(FixedDoubleArrayMap, FixedDoubleArrayMap) \ | 34 V(FixedDoubleArrayMap, FixedDoubleArrayMap) \ |
| 29 V(HeapNumberMap, HeapNumberMap) \ | 35 V(HeapNumberMap, HeapNumberMap) \ |
| 30 V(MinusZeroValue, MinusZero) \ | 36 V(MinusZeroValue, MinusZero) \ |
| 31 V(NanValue, Nan) \ | 37 V(NanValue, Nan) \ |
| (...skipping 859 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 891 Label* bailout); | 897 Label* bailout); |
| 892 | 898 |
| 893 static const int kElementLoopUnrollThreshold = 8; | 899 static const int kElementLoopUnrollThreshold = 8; |
| 894 }; | 900 }; |
| 895 | 901 |
| 896 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); | 902 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); |
| 897 | 903 |
| 898 } // namespace internal | 904 } // namespace internal |
| 899 } // namespace v8 | 905 } // namespace v8 |
| 900 #endif // V8_CODE_STUB_ASSEMBLER_H_ | 906 #endif // V8_CODE_STUB_ASSEMBLER_H_ |
| OLD | NEW |