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

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

Issue 1143813002: Reland "[strong] Object literals create strong objects" (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix handlification bug Created 5 years, 7 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/preparser.h ('k') | src/runtime/runtime-literals.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/zone.h" 10 #include "src/zone.h"
(...skipping 830 matching lines...) Expand 10 before | Expand all | Expand 10 after
841 }; 841 };
842 842
843 static void ArrayIdToTypeAndSize(int array_id, ExternalArrayType* type, 843 static void ArrayIdToTypeAndSize(int array_id, ExternalArrayType* type,
844 ElementsKind* external_elements_kind, 844 ElementsKind* external_elements_kind,
845 ElementsKind* fixed_elements_kind, 845 ElementsKind* fixed_elements_kind,
846 size_t* element_size); 846 size_t* element_size);
847 847
848 // Used in runtime.cc and hydrogen's VisitArrayLiteral. 848 // Used in runtime.cc and hydrogen's VisitArrayLiteral.
849 MUST_USE_RESULT static MaybeHandle<Object> CreateArrayLiteralBoilerplate( 849 MUST_USE_RESULT static MaybeHandle<Object> CreateArrayLiteralBoilerplate(
850 Isolate* isolate, Handle<FixedArray> literals, 850 Isolate* isolate, Handle<FixedArray> literals,
851 Handle<FixedArray> elements); 851 Handle<FixedArray> elements, bool is_strong);
852 852
853 static void WeakCollectionInitialize( 853 static void WeakCollectionInitialize(
854 Isolate* isolate, Handle<JSWeakCollection> weak_collection); 854 Isolate* isolate, Handle<JSWeakCollection> weak_collection);
855 static void WeakCollectionSet(Handle<JSWeakCollection> weak_collection, 855 static void WeakCollectionSet(Handle<JSWeakCollection> weak_collection,
856 Handle<Object> key, Handle<Object> value); 856 Handle<Object> key, Handle<Object> value);
857 static bool WeakCollectionDelete(Handle<JSWeakCollection> weak_collection, 857 static bool WeakCollectionDelete(Handle<JSWeakCollection> weak_collection,
858 Handle<Object> key); 858 Handle<Object> key);
859 859
860 static MaybeHandle<JSArray> GetInternalProperties(Isolate* isolate, 860 static MaybeHandle<JSArray> GetInternalProperties(Isolate* isolate,
861 Handle<Object>); 861 Handle<Object>);
(...skipping 10 matching lines...) Expand all
872 872
873 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; 873 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {};
874 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; 874 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {};
875 STATIC_ASSERT(LANGUAGE_END == 3); 875 STATIC_ASSERT(LANGUAGE_END == 3);
876 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; 876 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {};
877 877
878 } // namespace internal 878 } // namespace internal
879 } // namespace v8 879 } // namespace v8
880 880
881 #endif // V8_RUNTIME_RUNTIME_H_ 881 #endif // V8_RUNTIME_RUNTIME_H_
OLDNEW
« no previous file with comments | « src/preparser.h ('k') | src/runtime/runtime-literals.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698