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

Side by Side Diff: src/contexts.h

Issue 2459283004: [promises] Move CreateResolvingFunctions to c++ (Closed)
Patch Set: address comments Created 4 years, 1 month 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/builtins/builtins-promise.cc ('k') | src/factory.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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 V(OBJECT_IS_SEALED, JSFunction, object_is_sealed) \ 52 V(OBJECT_IS_SEALED, JSFunction, object_is_sealed) \
53 V(OBJECT_KEYS, JSFunction, object_keys) \ 53 V(OBJECT_KEYS, JSFunction, object_keys) \
54 V(REGEXP_INTERNAL_MATCH, JSFunction, regexp_internal_match) \ 54 V(REGEXP_INTERNAL_MATCH, JSFunction, regexp_internal_match) \
55 V(REFLECT_APPLY_INDEX, JSFunction, reflect_apply) \ 55 V(REFLECT_APPLY_INDEX, JSFunction, reflect_apply) \
56 V(REFLECT_CONSTRUCT_INDEX, JSFunction, reflect_construct) \ 56 V(REFLECT_CONSTRUCT_INDEX, JSFunction, reflect_construct) \
57 V(REFLECT_DEFINE_PROPERTY_INDEX, JSFunction, reflect_define_property) \ 57 V(REFLECT_DEFINE_PROPERTY_INDEX, JSFunction, reflect_define_property) \
58 V(REFLECT_DELETE_PROPERTY_INDEX, JSFunction, reflect_delete_property) \ 58 V(REFLECT_DELETE_PROPERTY_INDEX, JSFunction, reflect_delete_property) \
59 V(SPREAD_ARGUMENTS_INDEX, JSFunction, spread_arguments) \ 59 V(SPREAD_ARGUMENTS_INDEX, JSFunction, spread_arguments) \
60 V(SPREAD_ITERABLE_INDEX, JSFunction, spread_iterable) \ 60 V(SPREAD_ITERABLE_INDEX, JSFunction, spread_iterable) \
61 V(MATH_FLOOR_INDEX, JSFunction, math_floor) \ 61 V(MATH_FLOOR_INDEX, JSFunction, math_floor) \
62 V(MATH_POW_INDEX, JSFunction, math_pow) 62 V(MATH_POW_INDEX, JSFunction, math_pow) \
63 V(CREATE_RESOLVING_FUNCTION_INDEX, JSFunction, create_resolving_functions)
63 64
64 #define NATIVE_CONTEXT_IMPORTED_FIELDS(V) \ 65 #define NATIVE_CONTEXT_IMPORTED_FIELDS(V) \
65 V(ARRAY_CONCAT_INDEX, JSFunction, array_concat) \ 66 V(ARRAY_CONCAT_INDEX, JSFunction, array_concat) \
66 V(ARRAY_POP_INDEX, JSFunction, array_pop) \ 67 V(ARRAY_POP_INDEX, JSFunction, array_pop) \
67 V(ARRAY_PUSH_INDEX, JSFunction, array_push) \ 68 V(ARRAY_PUSH_INDEX, JSFunction, array_push) \
68 V(ARRAY_SHIFT_INDEX, JSFunction, array_shift) \ 69 V(ARRAY_SHIFT_INDEX, JSFunction, array_shift) \
69 V(ARRAY_SPLICE_INDEX, JSFunction, array_splice) \ 70 V(ARRAY_SPLICE_INDEX, JSFunction, array_splice) \
70 V(ARRAY_SLICE_INDEX, JSFunction, array_slice) \ 71 V(ARRAY_SLICE_INDEX, JSFunction, array_slice) \
71 V(ARRAY_UNSHIFT_INDEX, JSFunction, array_unshift) \ 72 V(ARRAY_UNSHIFT_INDEX, JSFunction, array_unshift) \
72 V(ARRAY_VALUES_ITERATOR_INDEX, JSFunction, array_values_iterator) \ 73 V(ARRAY_VALUES_ITERATOR_INDEX, JSFunction, array_values_iterator) \
(...skipping 17 matching lines...) Expand all
90 V(OBJECT_VALUE_OF, JSFunction, object_value_of) \ 91 V(OBJECT_VALUE_OF, JSFunction, object_value_of) \
91 V(OBJECT_TO_STRING, JSFunction, object_to_string) \ 92 V(OBJECT_TO_STRING, JSFunction, object_to_string) \
92 V(PROMISE_CATCH_INDEX, JSFunction, promise_catch) \ 93 V(PROMISE_CATCH_INDEX, JSFunction, promise_catch) \
93 V(PROMISE_CREATE_INDEX, JSFunction, promise_create) \ 94 V(PROMISE_CREATE_INDEX, JSFunction, promise_create) \
94 V(PROMISE_FUNCTION_INDEX, JSFunction, promise_function) \ 95 V(PROMISE_FUNCTION_INDEX, JSFunction, promise_function) \
95 V(PROMISE_HANDLE_INDEX, JSFunction, promise_handle) \ 96 V(PROMISE_HANDLE_INDEX, JSFunction, promise_handle) \
96 V(PROMISE_HAS_USER_DEFINED_REJECT_HANDLER_INDEX, JSFunction, \ 97 V(PROMISE_HAS_USER_DEFINED_REJECT_HANDLER_INDEX, JSFunction, \
97 promise_has_user_defined_reject_handler) \ 98 promise_has_user_defined_reject_handler) \
98 V(PROMISE_DEBUG_GET_INFO_INDEX, JSFunction, promise_debug_get_info) \ 99 V(PROMISE_DEBUG_GET_INFO_INDEX, JSFunction, promise_debug_get_info) \
99 V(PROMISE_REJECT_INDEX, JSFunction, promise_reject) \ 100 V(PROMISE_REJECT_INDEX, JSFunction, promise_reject) \
101 V(PROMISE_INTERNAL_REJECT_INDEX, JSFunction, promise_internal_reject) \
100 V(PROMISE_RESOLVE_INDEX, JSFunction, promise_resolve) \ 102 V(PROMISE_RESOLVE_INDEX, JSFunction, promise_resolve) \
101 V(PROMISE_THEN_INDEX, JSFunction, promise_then) \ 103 V(PROMISE_THEN_INDEX, JSFunction, promise_then) \
102 V(RANGE_ERROR_FUNCTION_INDEX, JSFunction, range_error_function) \ 104 V(RANGE_ERROR_FUNCTION_INDEX, JSFunction, range_error_function) \
103 V(REJECT_PROMISE_NO_DEBUG_EVENT_INDEX, JSFunction, \ 105 V(REJECT_PROMISE_NO_DEBUG_EVENT_INDEX, JSFunction, \
104 reject_promise_no_debug_event) \ 106 reject_promise_no_debug_event) \
105 V(REFERENCE_ERROR_FUNCTION_INDEX, JSFunction, reference_error_function) \ 107 V(REFERENCE_ERROR_FUNCTION_INDEX, JSFunction, reference_error_function) \
106 V(SET_ADD_METHOD_INDEX, JSFunction, set_add) \ 108 V(SET_ADD_METHOD_INDEX, JSFunction, set_add) \
107 V(SET_DELETE_METHOD_INDEX, JSFunction, set_delete) \ 109 V(SET_DELETE_METHOD_INDEX, JSFunction, set_delete) \
108 V(SET_HAS_METHOD_INDEX, JSFunction, set_has) \ 110 V(SET_HAS_METHOD_INDEX, JSFunction, set_has) \
109 V(SYNTAX_ERROR_FUNCTION_INDEX, JSFunction, syntax_error_function) \ 111 V(SYNTAX_ERROR_FUNCTION_INDEX, JSFunction, syntax_error_function) \
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 V(OBJECT_FUNCTION_INDEX, JSFunction, object_function) \ 268 V(OBJECT_FUNCTION_INDEX, JSFunction, object_function) \
267 V(SLOW_OBJECT_WITH_NULL_PROTOTYPE_MAP, Map, \ 269 V(SLOW_OBJECT_WITH_NULL_PROTOTYPE_MAP, Map, \
268 slow_object_with_null_prototype_map) \ 270 slow_object_with_null_prototype_map) \
269 V(OBJECT_FUNCTION_PROTOTYPE_MAP_INDEX, Map, object_function_prototype_map) \ 271 V(OBJECT_FUNCTION_PROTOTYPE_MAP_INDEX, Map, object_function_prototype_map) \
270 V(OPAQUE_REFERENCE_FUNCTION_INDEX, JSFunction, opaque_reference_function) \ 272 V(OPAQUE_REFERENCE_FUNCTION_INDEX, JSFunction, opaque_reference_function) \
271 V(PROXY_CALLABLE_MAP_INDEX, Map, proxy_callable_map) \ 273 V(PROXY_CALLABLE_MAP_INDEX, Map, proxy_callable_map) \
272 V(PROXY_CONSTRUCTOR_MAP_INDEX, Map, proxy_constructor_map) \ 274 V(PROXY_CONSTRUCTOR_MAP_INDEX, Map, proxy_constructor_map) \
273 V(PROXY_FUNCTION_INDEX, JSFunction, proxy_function) \ 275 V(PROXY_FUNCTION_INDEX, JSFunction, proxy_function) \
274 V(PROXY_FUNCTION_MAP_INDEX, Map, proxy_function_map) \ 276 V(PROXY_FUNCTION_MAP_INDEX, Map, proxy_function_map) \
275 V(PROXY_MAP_INDEX, Map, proxy_map) \ 277 V(PROXY_MAP_INDEX, Map, proxy_map) \
278 V(PROMISE_RESOLVE_SHARED_FUN, SharedFunctionInfo, \
279 promise_resolve_shared_fun) \
280 V(PROMISE_REJECT_SHARED_FUN, SharedFunctionInfo, promise_reject_shared_fun) \
276 V(REGEXP_EXEC_FUNCTION_INDEX, JSFunction, regexp_exec_function) \ 281 V(REGEXP_EXEC_FUNCTION_INDEX, JSFunction, regexp_exec_function) \
277 V(REGEXP_FUNCTION_INDEX, JSFunction, regexp_function) \ 282 V(REGEXP_FUNCTION_INDEX, JSFunction, regexp_function) \
278 V(REGEXP_LAST_MATCH_INFO_INDEX, RegExpMatchInfo, regexp_last_match_info) \ 283 V(REGEXP_LAST_MATCH_INFO_INDEX, RegExpMatchInfo, regexp_last_match_info) \
279 V(REGEXP_INTERNAL_MATCH_INFO_INDEX, RegExpMatchInfo, \ 284 V(REGEXP_INTERNAL_MATCH_INFO_INDEX, RegExpMatchInfo, \
280 regexp_internal_match_info) \ 285 regexp_internal_match_info) \
281 V(REGEXP_PROTOTYPE_MAP_INDEX, Map, regexp_prototype_map) \ 286 V(REGEXP_PROTOTYPE_MAP_INDEX, Map, regexp_prototype_map) \
282 V(REGEXP_RESULT_MAP_INDEX, Map, regexp_result_map) \ 287 V(REGEXP_RESULT_MAP_INDEX, Map, regexp_result_map) \
283 V(SCRIPT_CONTEXT_TABLE_INDEX, ScriptContextTable, script_context_table) \ 288 V(SCRIPT_CONTEXT_TABLE_INDEX, ScriptContextTable, script_context_table) \
284 V(SCRIPT_FUNCTION_INDEX, JSFunction, script_function) \ 289 V(SCRIPT_FUNCTION_INDEX, JSFunction, script_function) \
285 V(SECURITY_TOKEN_INDEX, Object, security_token) \ 290 V(SECURITY_TOKEN_INDEX, Object, security_token) \
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
644 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); 649 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize);
645 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); 650 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex);
646 }; 651 };
647 652
648 typedef Context::Field ContextField; 653 typedef Context::Field ContextField;
649 654
650 } // namespace internal 655 } // namespace internal
651 } // namespace v8 656 } // namespace v8
652 657
653 #endif // V8_CONTEXTS_H_ 658 #endif // V8_CONTEXTS_H_
OLDNEW
« no previous file with comments | « src/builtins/builtins-promise.cc ('k') | src/factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698