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

Side by Side Diff: src/contexts.h

Issue 2645313003: [async-iteration] implement Async-from-Sync Iterator (Closed)
Patch Set: attempt #3 to fix merge conflicts Created 3 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
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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 #define NATIVE_CONTEXT_FIELDS(V) \ 189 #define NATIVE_CONTEXT_FIELDS(V) \
190 V(GLOBAL_PROXY_INDEX, JSObject, global_proxy_object) \ 190 V(GLOBAL_PROXY_INDEX, JSObject, global_proxy_object) \
191 V(EMBEDDER_DATA_INDEX, FixedArray, embedder_data) \ 191 V(EMBEDDER_DATA_INDEX, FixedArray, embedder_data) \
192 /* Below is alpha-sorted */ \ 192 /* Below is alpha-sorted */ \
193 V(ACCESSOR_PROPERTY_DESCRIPTOR_MAP_INDEX, Map, \ 193 V(ACCESSOR_PROPERTY_DESCRIPTOR_MAP_INDEX, Map, \
194 accessor_property_descriptor_map) \ 194 accessor_property_descriptor_map) \
195 V(ALLOW_CODE_GEN_FROM_STRINGS_INDEX, Object, allow_code_gen_from_strings) \ 195 V(ALLOW_CODE_GEN_FROM_STRINGS_INDEX, Object, allow_code_gen_from_strings) \
196 V(ARRAY_BUFFER_FUN_INDEX, JSFunction, array_buffer_fun) \ 196 V(ARRAY_BUFFER_FUN_INDEX, JSFunction, array_buffer_fun) \
197 V(ARRAY_BUFFER_MAP_INDEX, Map, array_buffer_map) \ 197 V(ARRAY_BUFFER_MAP_INDEX, Map, array_buffer_map) \
198 V(ARRAY_FUNCTION_INDEX, JSFunction, array_function) \ 198 V(ARRAY_FUNCTION_INDEX, JSFunction, array_function) \
199 V(ASYNC_FROM_SYNC_ITERATOR_MAP_INDEX, Map, async_from_sync_iterator_map) \
199 V(ASYNC_FUNCTION_AWAIT_REJECT_SHARED_FUN, SharedFunctionInfo, \ 200 V(ASYNC_FUNCTION_AWAIT_REJECT_SHARED_FUN, SharedFunctionInfo, \
200 async_function_await_reject_shared_fun) \ 201 async_function_await_reject_shared_fun) \
201 V(ASYNC_FUNCTION_AWAIT_RESOLVE_SHARED_FUN, SharedFunctionInfo, \ 202 V(ASYNC_FUNCTION_AWAIT_RESOLVE_SHARED_FUN, SharedFunctionInfo, \
202 async_function_await_resolve_shared_fun) \ 203 async_function_await_resolve_shared_fun) \
203 V(ASYNC_FUNCTION_FUNCTION_INDEX, JSFunction, async_function_constructor) \ 204 V(ASYNC_FUNCTION_FUNCTION_INDEX, JSFunction, async_function_constructor) \
205 V(ASYNC_ITERATOR_VALUE_UNWRAP_SHARED_FUN, SharedFunctionInfo, \
206 async_iterator_value_unwrap_shared_fun) \
204 V(BOOL16X8_FUNCTION_INDEX, JSFunction, bool16x8_function) \ 207 V(BOOL16X8_FUNCTION_INDEX, JSFunction, bool16x8_function) \
205 V(BOOL32X4_FUNCTION_INDEX, JSFunction, bool32x4_function) \ 208 V(BOOL32X4_FUNCTION_INDEX, JSFunction, bool32x4_function) \
206 V(BOOL8X16_FUNCTION_INDEX, JSFunction, bool8x16_function) \ 209 V(BOOL8X16_FUNCTION_INDEX, JSFunction, bool8x16_function) \
207 V(BOOLEAN_FUNCTION_INDEX, JSFunction, boolean_function) \ 210 V(BOOLEAN_FUNCTION_INDEX, JSFunction, boolean_function) \
208 V(BOUND_FUNCTION_WITH_CONSTRUCTOR_MAP_INDEX, Map, \ 211 V(BOUND_FUNCTION_WITH_CONSTRUCTOR_MAP_INDEX, Map, \
209 bound_function_with_constructor_map) \ 212 bound_function_with_constructor_map) \
210 V(BOUND_FUNCTION_WITHOUT_CONSTRUCTOR_MAP_INDEX, Map, \ 213 V(BOUND_FUNCTION_WITHOUT_CONSTRUCTOR_MAP_INDEX, Map, \
211 bound_function_without_constructor_map) \ 214 bound_function_without_constructor_map) \
212 V(CALL_AS_CONSTRUCTOR_DELEGATE_INDEX, JSFunction, \ 215 V(CALL_AS_CONSTRUCTOR_DELEGATE_INDEX, JSFunction, \
213 call_as_constructor_delegate) \ 216 call_as_constructor_delegate) \
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after
694 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); 697 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize);
695 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); 698 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex);
696 }; 699 };
697 700
698 typedef Context::Field ContextField; 701 typedef Context::Field ContextField;
699 702
700 } // namespace internal 703 } // namespace internal
701 } // namespace v8 704 } // namespace v8
702 705
703 #endif // V8_CONTEXTS_H_ 706 #endif // V8_CONTEXTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698