| 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 1125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1136 ARRAY_ID_LAST = ARRAY_ID_UINT8_CLAMPED | 1136 ARRAY_ID_LAST = ARRAY_ID_UINT8_CLAMPED |
| 1137 }; | 1137 }; |
| 1138 | 1138 |
| 1139 static void ArrayIdToTypeAndSize(int array_id, ExternalArrayType* type, | 1139 static void ArrayIdToTypeAndSize(int array_id, ExternalArrayType* type, |
| 1140 ElementsKind* fixed_elements_kind, | 1140 ElementsKind* fixed_elements_kind, |
| 1141 size_t* element_size); | 1141 size_t* element_size); |
| 1142 | 1142 |
| 1143 // Used in runtime.cc and hydrogen's VisitArrayLiteral. | 1143 // Used in runtime.cc and hydrogen's VisitArrayLiteral. |
| 1144 MUST_USE_RESULT static MaybeHandle<Object> CreateArrayLiteralBoilerplate( | 1144 MUST_USE_RESULT static MaybeHandle<Object> CreateArrayLiteralBoilerplate( |
| 1145 Isolate* isolate, Handle<LiteralsArray> literals, | 1145 Isolate* isolate, Handle<LiteralsArray> literals, |
| 1146 Handle<FixedArray> elements, bool is_strong); | 1146 Handle<FixedArray> elements); |
| 1147 | 1147 |
| 1148 static MaybeHandle<JSArray> GetInternalProperties(Isolate* isolate, | 1148 static MaybeHandle<JSArray> GetInternalProperties(Isolate* isolate, |
| 1149 Handle<Object>); | 1149 Handle<Object>); |
| 1150 }; | 1150 }; |
| 1151 | 1151 |
| 1152 | 1152 |
| 1153 class RuntimeState { | 1153 class RuntimeState { |
| 1154 public: | 1154 public: |
| 1155 unibrow::Mapping<unibrow::ToUppercase, 128>* to_upper_mapping() { | 1155 unibrow::Mapping<unibrow::ToUppercase, 128>* to_upper_mapping() { |
| 1156 return &to_upper_mapping_; | 1156 return &to_upper_mapping_; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1193 | 1193 |
| 1194 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; | 1194 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; |
| 1195 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; | 1195 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; |
| 1196 STATIC_ASSERT(LANGUAGE_END == 3); | 1196 STATIC_ASSERT(LANGUAGE_END == 3); |
| 1197 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; | 1197 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; |
| 1198 | 1198 |
| 1199 } // namespace internal | 1199 } // namespace internal |
| 1200 } // namespace v8 | 1200 } // namespace v8 |
| 1201 | 1201 |
| 1202 #endif // V8_RUNTIME_RUNTIME_H_ | 1202 #endif // V8_RUNTIME_RUNTIME_H_ |
| OLD | NEW |