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

Side by Side Diff: src/contexts.h

Issue 1704533002: Support rest element pattern with user-defined iterable (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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 | « no previous file | src/js/runtime.js » ('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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 // 72 //
73 // Contexts are implemented as FixedArray objects; the Context 73 // Contexts are implemented as FixedArray objects; the Context
74 // class is a convenience interface casted on a FixedArray object. 74 // class is a convenience interface casted on a FixedArray object.
75 // 75 //
76 // Note: Context must have no virtual functions and Context objects 76 // Note: Context must have no virtual functions and Context objects
77 // must always be allocated via Heap::AllocateContext() or 77 // must always be allocated via Heap::AllocateContext() or
78 // Factory::NewContext. 78 // Factory::NewContext.
79 79
80 #define NATIVE_CONTEXT_INTRINSIC_FUNCTIONS(V) \ 80 #define NATIVE_CONTEXT_INTRINSIC_FUNCTIONS(V) \
81 V(IS_ARRAYLIKE, JSFunction, is_arraylike) \ 81 V(IS_ARRAYLIKE, JSFunction, is_arraylike) \
82 V(CONCAT_ITERABLE_TO_ARRAY_INDEX, JSFunction, concat_iterable_to_array) \ 82 V(CONCAT_ITERATOR_TO_ARRAY_INDEX, JSFunction, concat_iterator_to_array) \
83 V(GET_TEMPLATE_CALL_SITE_INDEX, JSFunction, get_template_call_site) \ 83 V(GET_TEMPLATE_CALL_SITE_INDEX, JSFunction, get_template_call_site) \
84 V(MAKE_RANGE_ERROR_INDEX, JSFunction, make_range_error) \ 84 V(MAKE_RANGE_ERROR_INDEX, JSFunction, make_range_error) \
85 V(MAKE_TYPE_ERROR_INDEX, JSFunction, make_type_error) \ 85 V(MAKE_TYPE_ERROR_INDEX, JSFunction, make_type_error) \
86 V(OBJECT_FREEZE, JSFunction, object_freeze) \ 86 V(OBJECT_FREEZE, JSFunction, object_freeze) \
87 V(OBJECT_IS_EXTENSIBLE, JSFunction, object_is_extensible) \ 87 V(OBJECT_IS_EXTENSIBLE, JSFunction, object_is_extensible) \
88 V(OBJECT_IS_FROZEN, JSFunction, object_is_frozen) \ 88 V(OBJECT_IS_FROZEN, JSFunction, object_is_frozen) \
89 V(OBJECT_IS_SEALED, JSFunction, object_is_sealed) \ 89 V(OBJECT_IS_SEALED, JSFunction, object_is_sealed) \
90 V(OBJECT_KEYS, JSFunction, object_keys) \ 90 V(OBJECT_KEYS, JSFunction, object_keys) \
91 V(REFLECT_APPLY_INDEX, JSFunction, reflect_apply) \ 91 V(REFLECT_APPLY_INDEX, JSFunction, reflect_apply) \
92 V(REFLECT_CONSTRUCT_INDEX, JSFunction, reflect_construct) \ 92 V(REFLECT_CONSTRUCT_INDEX, JSFunction, reflect_construct) \
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
590 #endif 590 #endif
591 591
592 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); 592 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize);
593 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); 593 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex);
594 }; 594 };
595 595
596 } // namespace internal 596 } // namespace internal
597 } // namespace v8 597 } // namespace v8
598 598
599 #endif // V8_CONTEXTS_H_ 599 #endif // V8_CONTEXTS_H_
OLDNEW
« no previous file with comments | « no previous file | src/js/runtime.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698