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/objects.h" | 9 #include "src/objects.h" |
10 #include "src/unicode.h" | 10 #include "src/unicode.h" |
(...skipping 1181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1192 ARRAY_ID_FIRST = ARRAY_ID_UINT8, | 1192 ARRAY_ID_FIRST = ARRAY_ID_UINT8, |
1193 ARRAY_ID_LAST = ARRAY_ID_UINT8_CLAMPED | 1193 ARRAY_ID_LAST = ARRAY_ID_UINT8_CLAMPED |
1194 }; | 1194 }; |
1195 | 1195 |
1196 static void ArrayIdToTypeAndSize(int array_id, ExternalArrayType* type, | 1196 static void ArrayIdToTypeAndSize(int array_id, ExternalArrayType* type, |
1197 ElementsKind* fixed_elements_kind, | 1197 ElementsKind* fixed_elements_kind, |
1198 size_t* element_size); | 1198 size_t* element_size); |
1199 | 1199 |
1200 // Used in runtime.cc and hydrogen's VisitArrayLiteral. | 1200 // Used in runtime.cc and hydrogen's VisitArrayLiteral. |
1201 MUST_USE_RESULT static MaybeHandle<Object> CreateArrayLiteralBoilerplate( | 1201 MUST_USE_RESULT static MaybeHandle<Object> CreateArrayLiteralBoilerplate( |
1202 Isolate* isolate, Handle<FixedArray> literals, | 1202 Isolate* isolate, Handle<LiteralsArray> literals, |
1203 Handle<FixedArray> elements, bool is_strong); | 1203 Handle<FixedArray> elements, bool is_strong); |
1204 | 1204 |
1205 static MaybeHandle<JSArray> GetInternalProperties(Isolate* isolate, | 1205 static MaybeHandle<JSArray> GetInternalProperties(Isolate* isolate, |
1206 Handle<Object>); | 1206 Handle<Object>); |
1207 | 1207 |
1208 // Find the arguments of the JavaScript function invocation that called | 1208 // Find the arguments of the JavaScript function invocation that called |
1209 // into C++ code. Collect these in a newly allocated array of handles | 1209 // into C++ code. Collect these in a newly allocated array of handles |
1210 // (possibly prefixed by a number of empty handles). | 1210 // (possibly prefixed by a number of empty handles). |
1211 // TODO(mstarzinger): Temporary workaround until this is only used by the | 1211 // TODO(mstarzinger): Temporary workaround until this is only used by the |
1212 // %_Arguments and %_ArgumentsLength intrinsics. Make this function local to | 1212 // %_Arguments and %_ArgumentsLength intrinsics. Make this function local to |
(...skipping 13 matching lines...) Expand all Loading... |
1226 | 1226 |
1227 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; | 1227 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; |
1228 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; | 1228 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; |
1229 STATIC_ASSERT(LANGUAGE_END == 3); | 1229 STATIC_ASSERT(LANGUAGE_END == 3); |
1230 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; | 1230 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; |
1231 | 1231 |
1232 } // namespace internal | 1232 } // namespace internal |
1233 } // namespace v8 | 1233 } // namespace v8 |
1234 | 1234 |
1235 #endif // V8_RUNTIME_RUNTIME_H_ | 1235 #endif // V8_RUNTIME_RUNTIME_H_ |
OLD | NEW |