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

Side by Side Diff: src/contexts.h

Issue 2375793002: Reland: [modules] Properly initialize declared variables. (Closed)
Patch Set: Update CompilerHints. Created 4 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/bootstrapper.cc ('k') | src/globals.h » ('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_CONTEXTS_H_ 5 #ifndef V8_CONTEXTS_H_
6 #define V8_CONTEXTS_H_ 6 #define V8_CONTEXTS_H_
7 7
8 #include "src/heap/heap.h" 8 #include "src/heap/heap.h"
9 #include "src/objects.h" 9 #include "src/objects.h"
10 10
(...skipping 18 matching lines...) Expand all
29 // 29 //
30 // Contexts are implemented as FixedArray objects; the Context 30 // Contexts are implemented as FixedArray objects; the Context
31 // class is a convenience interface casted on a FixedArray object. 31 // class is a convenience interface casted on a FixedArray object.
32 // 32 //
33 // Note: Context must have no virtual functions and Context objects 33 // Note: Context must have no virtual functions and Context objects
34 // must always be allocated via Heap::AllocateContext() or 34 // must always be allocated via Heap::AllocateContext() or
35 // Factory::NewContext. 35 // Factory::NewContext.
36 36
37 #define NATIVE_CONTEXT_INTRINSIC_FUNCTIONS(V) \ 37 #define NATIVE_CONTEXT_INTRINSIC_FUNCTIONS(V) \
38 V(IS_ARRAYLIKE, JSFunction, is_arraylike) \ 38 V(IS_ARRAYLIKE, JSFunction, is_arraylike) \
39 V(GENERATOR_NEXT_INTERNAL, JSFunction, generator_next_internal) \
39 V(GET_TEMPLATE_CALL_SITE_INDEX, JSFunction, get_template_call_site) \ 40 V(GET_TEMPLATE_CALL_SITE_INDEX, JSFunction, get_template_call_site) \
40 V(MAKE_ERROR_INDEX, JSFunction, make_error) \ 41 V(MAKE_ERROR_INDEX, JSFunction, make_error) \
41 V(MAKE_RANGE_ERROR_INDEX, JSFunction, make_range_error) \ 42 V(MAKE_RANGE_ERROR_INDEX, JSFunction, make_range_error) \
42 V(MAKE_SYNTAX_ERROR_INDEX, JSFunction, make_syntax_error) \ 43 V(MAKE_SYNTAX_ERROR_INDEX, JSFunction, make_syntax_error) \
43 V(MAKE_TYPE_ERROR_INDEX, JSFunction, make_type_error) \ 44 V(MAKE_TYPE_ERROR_INDEX, JSFunction, make_type_error) \
44 V(MAKE_URI_ERROR_INDEX, JSFunction, make_uri_error) \ 45 V(MAKE_URI_ERROR_INDEX, JSFunction, make_uri_error) \
45 V(OBJECT_DEFINE_PROPERTIES, JSFunction, object_define_properties) \ 46 V(OBJECT_DEFINE_PROPERTIES, JSFunction, object_define_properties) \
46 V(OBJECT_DEFINE_PROPERTY, JSFunction, object_define_property) \ 47 V(OBJECT_DEFINE_PROPERTY, JSFunction, object_define_property) \
47 V(OBJECT_FREEZE, JSFunction, object_freeze) \ 48 V(OBJECT_FREEZE, JSFunction, object_freeze) \
48 V(OBJECT_GET_PROTOTYPE_OF, JSFunction, object_get_prototype_of) \ 49 V(OBJECT_GET_PROTOTYPE_OF, JSFunction, object_get_prototype_of) \
(...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after
557 #endif 558 #endif
558 559
559 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); 560 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize);
560 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); 561 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex);
561 }; 562 };
562 563
563 } // namespace internal 564 } // namespace internal
564 } // namespace v8 565 } // namespace v8
565 566
566 #endif // V8_CONTEXTS_H_ 567 #endif // V8_CONTEXTS_H_
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | src/globals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698