OLD | NEW |
---|---|
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_RUNTIME_RUNTIME_H_ | 5 #ifndef V8_RUNTIME_RUNTIME_H_ |
6 #define V8_RUNTIME_RUNTIME_H_ | 6 #define V8_RUNTIME_RUNTIME_H_ |
7 | 7 |
8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
9 #include "src/base/platform/time.h" | 9 #include "src/base/platform/time.h" |
10 #include "src/objects.h" | 10 #include "src/objects.h" |
(...skipping 1107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1118 ARRAY_ID_FLOAT64 = 8, | 1118 ARRAY_ID_FLOAT64 = 8, |
1119 ARRAY_ID_UINT8_CLAMPED = 9, | 1119 ARRAY_ID_UINT8_CLAMPED = 9, |
1120 ARRAY_ID_FIRST = ARRAY_ID_UINT8, | 1120 ARRAY_ID_FIRST = ARRAY_ID_UINT8, |
1121 ARRAY_ID_LAST = ARRAY_ID_UINT8_CLAMPED | 1121 ARRAY_ID_LAST = ARRAY_ID_UINT8_CLAMPED |
1122 }; | 1122 }; |
1123 | 1123 |
1124 static void ArrayIdToTypeAndSize(int array_id, ExternalArrayType* type, | 1124 static void ArrayIdToTypeAndSize(int array_id, ExternalArrayType* type, |
1125 ElementsKind* fixed_elements_kind, | 1125 ElementsKind* fixed_elements_kind, |
1126 size_t* element_size); | 1126 size_t* element_size); |
1127 | 1127 |
1128 // Used in runtime.cc and hydrogen's VisitArrayLiteral. | |
Michael Starzinger
2016/04/06 13:17:24
Yay! \o/
| |
1129 MUST_USE_RESULT static MaybeHandle<Object> CreateArrayLiteralBoilerplate( | |
1130 Isolate* isolate, Handle<LiteralsArray> literals, | |
1131 Handle<FixedArray> elements); | |
1132 | |
1133 static MaybeHandle<JSArray> GetInternalProperties(Isolate* isolate, | 1128 static MaybeHandle<JSArray> GetInternalProperties(Isolate* isolate, |
1134 Handle<Object>); | 1129 Handle<Object>); |
1135 }; | 1130 }; |
1136 | 1131 |
1137 | 1132 |
1138 class RuntimeState { | 1133 class RuntimeState { |
1139 public: | 1134 public: |
1140 unibrow::Mapping<unibrow::ToUppercase, 128>* to_upper_mapping() { | 1135 unibrow::Mapping<unibrow::ToUppercase, 128>* to_upper_mapping() { |
1141 return &to_upper_mapping_; | 1136 return &to_upper_mapping_; |
1142 } | 1137 } |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1178 | 1173 |
1179 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; | 1174 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; |
1180 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; | 1175 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; |
1181 STATIC_ASSERT(LANGUAGE_END == 3); | 1176 STATIC_ASSERT(LANGUAGE_END == 3); |
1182 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; | 1177 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; |
1183 | 1178 |
1184 } // namespace internal | 1179 } // namespace internal |
1185 } // namespace v8 | 1180 } // namespace v8 |
1186 | 1181 |
1187 #endif // V8_RUNTIME_RUNTIME_H_ | 1182 #endif // V8_RUNTIME_RUNTIME_H_ |
OLD | NEW |