Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/runtime/runtime.h

Issue 1374723002: Introduce LiteralsArray to hide it's implementation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix build break. Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/objects-inl.h ('k') | src/runtime/runtime-function.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | src/runtime/runtime-function.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698