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 1194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1205 ARRAY_ID_FIRST = ARRAY_ID_UINT8, | 1205 ARRAY_ID_FIRST = ARRAY_ID_UINT8, |
1206 ARRAY_ID_LAST = ARRAY_ID_UINT8_CLAMPED | 1206 ARRAY_ID_LAST = ARRAY_ID_UINT8_CLAMPED |
1207 }; | 1207 }; |
1208 | 1208 |
1209 static void ArrayIdToTypeAndSize(int array_id, ExternalArrayType* type, | 1209 static void ArrayIdToTypeAndSize(int array_id, ExternalArrayType* type, |
1210 ElementsKind* fixed_elements_kind, | 1210 ElementsKind* fixed_elements_kind, |
1211 size_t* element_size); | 1211 size_t* element_size); |
1212 | 1212 |
1213 // Used in runtime.cc and hydrogen's VisitArrayLiteral. | 1213 // Used in runtime.cc and hydrogen's VisitArrayLiteral. |
1214 MUST_USE_RESULT static MaybeHandle<Object> CreateArrayLiteralBoilerplate( | 1214 MUST_USE_RESULT static MaybeHandle<Object> CreateArrayLiteralBoilerplate( |
1215 Isolate* isolate, Handle<FixedArray> literals, | 1215 Isolate* isolate, Handle<LiteralsArray> literals, |
1216 Handle<FixedArray> elements, bool is_strong); | 1216 Handle<FixedArray> elements, bool is_strong); |
1217 | 1217 |
1218 static MaybeHandle<JSArray> GetInternalProperties(Isolate* isolate, | 1218 static MaybeHandle<JSArray> GetInternalProperties(Isolate* isolate, |
1219 Handle<Object>); | 1219 Handle<Object>); |
1220 | 1220 |
1221 // Find the arguments of the JavaScript function invocation that called | 1221 // Find the arguments of the JavaScript function invocation that called |
1222 // into C++ code. Collect these in a newly allocated array of handles | 1222 // into C++ code. Collect these in a newly allocated array of handles |
1223 // (possibly prefixed by a number of empty handles). | 1223 // (possibly prefixed by a number of empty handles). |
1224 // TODO(mstarzinger): Temporary workaround until this is only used by the | 1224 // TODO(mstarzinger): Temporary workaround until this is only used by the |
1225 // %_Arguments and %_ArgumentsLength intrinsics. Make this function local to | 1225 // %_Arguments and %_ArgumentsLength intrinsics. Make this function local to |
(...skipping 13 matching lines...) Expand all Loading... |
1239 | 1239 |
1240 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; | 1240 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; |
1241 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; | 1241 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; |
1242 STATIC_ASSERT(LANGUAGE_END == 3); | 1242 STATIC_ASSERT(LANGUAGE_END == 3); |
1243 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; | 1243 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; |
1244 | 1244 |
1245 } // namespace internal | 1245 } // namespace internal |
1246 } // namespace v8 | 1246 } // namespace v8 |
1247 | 1247 |
1248 #endif // V8_RUNTIME_RUNTIME_H_ | 1248 #endif // V8_RUNTIME_RUNTIME_H_ |
OLD | NEW |