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

Side by Side Diff: src/contexts.h

Issue 2643023002: [async-await] Move remaining async-await code to TF (Closed)
Patch Set: Typo Created 3 years, 11 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 V(REFLECT_DELETE_PROPERTY_INDEX, JSFunction, reflect_delete_property) \ 59 V(REFLECT_DELETE_PROPERTY_INDEX, JSFunction, reflect_delete_property) \
60 V(SPREAD_ARGUMENTS_INDEX, JSFunction, spread_arguments) \ 60 V(SPREAD_ARGUMENTS_INDEX, JSFunction, spread_arguments) \
61 V(SPREAD_ITERABLE_INDEX, JSFunction, spread_iterable) \ 61 V(SPREAD_ITERABLE_INDEX, JSFunction, spread_iterable) \
62 V(MATH_FLOOR_INDEX, JSFunction, math_floor) \ 62 V(MATH_FLOOR_INDEX, JSFunction, math_floor) \
63 V(MATH_POW_INDEX, JSFunction, math_pow) \ 63 V(MATH_POW_INDEX, JSFunction, math_pow) \
64 V(NEW_PROMISE_CAPABILITY_INDEX, JSFunction, new_promise_capability) \ 64 V(NEW_PROMISE_CAPABILITY_INDEX, JSFunction, new_promise_capability) \
65 V(PROMISE_INTERNAL_CONSTRUCTOR_INDEX, JSFunction, \ 65 V(PROMISE_INTERNAL_CONSTRUCTOR_INDEX, JSFunction, \
66 promise_internal_constructor) \ 66 promise_internal_constructor) \
67 V(PROMISE_INTERNAL_REJECT_INDEX, JSFunction, promise_internal_reject) \ 67 V(PROMISE_INTERNAL_REJECT_INDEX, JSFunction, promise_internal_reject) \
68 V(IS_PROMISE_INDEX, JSFunction, is_promise) \ 68 V(IS_PROMISE_INDEX, JSFunction, is_promise) \
69 V(PERFORM_PROMISE_THEN_INDEX, JSFunction, perform_promise_then) \
70 V(PROMISE_RESOLVE_INDEX, JSFunction, promise_resolve) \ 69 V(PROMISE_RESOLVE_INDEX, JSFunction, promise_resolve) \
71 V(PROMISE_THEN_INDEX, JSFunction, promise_then) \ 70 V(PROMISE_THEN_INDEX, JSFunction, promise_then) \
72 V(PROMISE_HANDLE_INDEX, JSFunction, promise_handle) \ 71 V(PROMISE_HANDLE_INDEX, JSFunction, promise_handle) \
73 V(PROMISE_HANDLE_REJECT_INDEX, JSFunction, promise_handle_reject) 72 V(PROMISE_HANDLE_REJECT_INDEX, JSFunction, promise_handle_reject)
74 73
75 #define NATIVE_CONTEXT_IMPORTED_FIELDS(V) \ 74 #define NATIVE_CONTEXT_IMPORTED_FIELDS(V) \
76 V(ARRAY_CONCAT_INDEX, JSFunction, array_concat) \ 75 V(ARRAY_CONCAT_INDEX, JSFunction, array_concat) \
77 V(ARRAY_POP_INDEX, JSFunction, array_pop) \ 76 V(ARRAY_POP_INDEX, JSFunction, array_pop) \
78 V(ARRAY_PUSH_INDEX, JSFunction, array_push) \ 77 V(ARRAY_PUSH_INDEX, JSFunction, array_push) \
79 V(ARRAY_SHIFT_INDEX, JSFunction, array_shift) \ 78 V(ARRAY_SHIFT_INDEX, JSFunction, array_shift) \
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 #define NATIVE_CONTEXT_FIELDS(V) \ 188 #define NATIVE_CONTEXT_FIELDS(V) \
190 V(GLOBAL_PROXY_INDEX, JSObject, global_proxy_object) \ 189 V(GLOBAL_PROXY_INDEX, JSObject, global_proxy_object) \
191 V(EMBEDDER_DATA_INDEX, FixedArray, embedder_data) \ 190 V(EMBEDDER_DATA_INDEX, FixedArray, embedder_data) \
192 /* Below is alpha-sorted */ \ 191 /* Below is alpha-sorted */ \
193 V(ACCESSOR_PROPERTY_DESCRIPTOR_MAP_INDEX, Map, \ 192 V(ACCESSOR_PROPERTY_DESCRIPTOR_MAP_INDEX, Map, \
194 accessor_property_descriptor_map) \ 193 accessor_property_descriptor_map) \
195 V(ALLOW_CODE_GEN_FROM_STRINGS_INDEX, Object, allow_code_gen_from_strings) \ 194 V(ALLOW_CODE_GEN_FROM_STRINGS_INDEX, Object, allow_code_gen_from_strings) \
196 V(ARRAY_BUFFER_FUN_INDEX, JSFunction, array_buffer_fun) \ 195 V(ARRAY_BUFFER_FUN_INDEX, JSFunction, array_buffer_fun) \
197 V(ARRAY_BUFFER_MAP_INDEX, Map, array_buffer_map) \ 196 V(ARRAY_BUFFER_MAP_INDEX, Map, array_buffer_map) \
198 V(ARRAY_FUNCTION_INDEX, JSFunction, array_function) \ 197 V(ARRAY_FUNCTION_INDEX, JSFunction, array_function) \
198 V(ASYNC_FUNCTION_AWAIT_REJECT_SHARED_FUN, SharedFunctionInfo, \
199 async_function_await_reject_shared_fun) \
200 V(ASYNC_FUNCTION_AWAIT_RESOLVE_SHARED_FUN, SharedFunctionInfo, \
201 async_function_await_resolve_shared_fun) \
199 V(ASYNC_FUNCTION_FUNCTION_INDEX, JSFunction, async_function_constructor) \ 202 V(ASYNC_FUNCTION_FUNCTION_INDEX, JSFunction, async_function_constructor) \
200 V(BOOL16X8_FUNCTION_INDEX, JSFunction, bool16x8_function) \ 203 V(BOOL16X8_FUNCTION_INDEX, JSFunction, bool16x8_function) \
201 V(BOOL32X4_FUNCTION_INDEX, JSFunction, bool32x4_function) \ 204 V(BOOL32X4_FUNCTION_INDEX, JSFunction, bool32x4_function) \
202 V(BOOL8X16_FUNCTION_INDEX, JSFunction, bool8x16_function) \ 205 V(BOOL8X16_FUNCTION_INDEX, JSFunction, bool8x16_function) \
203 V(BOOLEAN_FUNCTION_INDEX, JSFunction, boolean_function) \ 206 V(BOOLEAN_FUNCTION_INDEX, JSFunction, boolean_function) \
204 V(BOUND_FUNCTION_WITH_CONSTRUCTOR_MAP_INDEX, Map, \ 207 V(BOUND_FUNCTION_WITH_CONSTRUCTOR_MAP_INDEX, Map, \
205 bound_function_with_constructor_map) \ 208 bound_function_with_constructor_map) \
206 V(BOUND_FUNCTION_WITHOUT_CONSTRUCTOR_MAP_INDEX, Map, \ 209 V(BOUND_FUNCTION_WITHOUT_CONSTRUCTOR_MAP_INDEX, Map, \
207 bound_function_without_constructor_map) \ 210 bound_function_without_constructor_map) \
208 V(CALL_AS_CONSTRUCTOR_DELEGATE_INDEX, JSFunction, \ 211 V(CALL_AS_CONSTRUCTOR_DELEGATE_INDEX, JSFunction, \
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after
689 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); 692 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize);
690 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); 693 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex);
691 }; 694 };
692 695
693 typedef Context::Field ContextField; 696 typedef Context::Field ContextField;
694 697
695 } // namespace internal 698 } // namespace internal
696 } // namespace v8 699 } // namespace v8
697 700
698 #endif // V8_CONTEXTS_H_ 701 #endif // V8_CONTEXTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698