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

Side by Side Diff: src/contexts.h

Issue 2630593004: [promises] Remove runtime call from fastpath in PromiseReject (Closed)
Patch Set: remove helper 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
« no previous file with comments | « src/builtins/builtins-promise.cc ('k') | src/js/async-await.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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 V(REFLECT_CONSTRUCT_INDEX, JSFunction, reflect_construct) \ 57 V(REFLECT_CONSTRUCT_INDEX, JSFunction, reflect_construct) \
58 V(REFLECT_DEFINE_PROPERTY_INDEX, JSFunction, reflect_define_property) \ 58 V(REFLECT_DEFINE_PROPERTY_INDEX, JSFunction, reflect_define_property) \
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(IS_PROMISE_INDEX, JSFunction, is_promise) \ 68 V(IS_PROMISE_INDEX, JSFunction, is_promise) \
68 V(PERFORM_PROMISE_THEN_INDEX, JSFunction, perform_promise_then) \ 69 V(PERFORM_PROMISE_THEN_INDEX, JSFunction, perform_promise_then) \
69 V(PROMISE_RESOLVE_INDEX, JSFunction, promise_resolve) \ 70 V(PROMISE_RESOLVE_INDEX, JSFunction, promise_resolve) \
70 V(PROMISE_THEN_INDEX, JSFunction, promise_then) \ 71 V(PROMISE_THEN_INDEX, JSFunction, promise_then) \
71 V(PROMISE_HANDLE_INDEX, JSFunction, promise_handle) \ 72 V(PROMISE_HANDLE_INDEX, JSFunction, promise_handle) \
72 V(PROMISE_HANDLE_REJECT_INDEX, JSFunction, promise_handle_reject) 73 V(PROMISE_HANDLE_REJECT_INDEX, JSFunction, promise_handle_reject)
73 74
74 #define NATIVE_CONTEXT_IMPORTED_FIELDS(V) \ 75 #define NATIVE_CONTEXT_IMPORTED_FIELDS(V) \
75 V(ARRAY_CONCAT_INDEX, JSFunction, array_concat) \ 76 V(ARRAY_CONCAT_INDEX, JSFunction, array_concat) \
76 V(ARRAY_POP_INDEX, JSFunction, array_pop) \ 77 V(ARRAY_POP_INDEX, JSFunction, array_pop) \
(...skipping 19 matching lines...) Expand all
96 V(GLOBAL_PROXY_FUNCTION_INDEX, JSFunction, global_proxy_function) \ 97 V(GLOBAL_PROXY_FUNCTION_INDEX, JSFunction, global_proxy_function) \
97 V(MAP_DELETE_METHOD_INDEX, JSFunction, map_delete) \ 98 V(MAP_DELETE_METHOD_INDEX, JSFunction, map_delete) \
98 V(MAP_GET_METHOD_INDEX, JSFunction, map_get) \ 99 V(MAP_GET_METHOD_INDEX, JSFunction, map_get) \
99 V(MAP_HAS_METHOD_INDEX, JSFunction, map_has) \ 100 V(MAP_HAS_METHOD_INDEX, JSFunction, map_has) \
100 V(MAP_SET_METHOD_INDEX, JSFunction, map_set) \ 101 V(MAP_SET_METHOD_INDEX, JSFunction, map_set) \
101 V(FUNCTION_HAS_INSTANCE_INDEX, JSFunction, function_has_instance) \ 102 V(FUNCTION_HAS_INSTANCE_INDEX, JSFunction, function_has_instance) \
102 V(OBJECT_VALUE_OF, JSFunction, object_value_of) \ 103 V(OBJECT_VALUE_OF, JSFunction, object_value_of) \
103 V(OBJECT_TO_STRING, JSFunction, object_to_string) \ 104 V(OBJECT_TO_STRING, JSFunction, object_to_string) \
104 V(PROMISE_CATCH_INDEX, JSFunction, promise_catch) \ 105 V(PROMISE_CATCH_INDEX, JSFunction, promise_catch) \
105 V(PROMISE_FUNCTION_INDEX, JSFunction, promise_function) \ 106 V(PROMISE_FUNCTION_INDEX, JSFunction, promise_function) \
106 V(PROMISE_REJECT_INDEX, JSFunction, promise_reject) \
107 V(PROMISE_ID_RESOLVE_HANDLER_INDEX, JSFunction, promise_id_resolve_handler) \ 107 V(PROMISE_ID_RESOLVE_HANDLER_INDEX, JSFunction, promise_id_resolve_handler) \
108 V(PROMISE_ID_REJECT_HANDLER_INDEX, JSFunction, promise_id_reject_handler) \ 108 V(PROMISE_ID_REJECT_HANDLER_INDEX, JSFunction, promise_id_reject_handler) \
109 V(RANGE_ERROR_FUNCTION_INDEX, JSFunction, range_error_function) \ 109 V(RANGE_ERROR_FUNCTION_INDEX, JSFunction, range_error_function) \
110 V(REJECT_PROMISE_NO_DEBUG_EVENT_INDEX, JSFunction, \ 110 V(REJECT_PROMISE_NO_DEBUG_EVENT_INDEX, JSFunction, \
111 reject_promise_no_debug_event) \ 111 reject_promise_no_debug_event) \
112 V(REFERENCE_ERROR_FUNCTION_INDEX, JSFunction, reference_error_function) \ 112 V(REFERENCE_ERROR_FUNCTION_INDEX, JSFunction, reference_error_function) \
113 V(SET_ADD_METHOD_INDEX, JSFunction, set_add) \ 113 V(SET_ADD_METHOD_INDEX, JSFunction, set_add) \
114 V(SET_DELETE_METHOD_INDEX, JSFunction, set_delete) \ 114 V(SET_DELETE_METHOD_INDEX, JSFunction, set_delete) \
115 V(SET_HAS_METHOD_INDEX, JSFunction, set_has) \ 115 V(SET_HAS_METHOD_INDEX, JSFunction, set_has) \
116 V(SYNTAX_ERROR_FUNCTION_INDEX, JSFunction, syntax_error_function) \ 116 V(SYNTAX_ERROR_FUNCTION_INDEX, JSFunction, syntax_error_function) \
(...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after
690 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); 690 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize);
691 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); 691 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex);
692 }; 692 };
693 693
694 typedef Context::Field ContextField; 694 typedef Context::Field ContextField;
695 695
696 } // namespace internal 696 } // namespace internal
697 } // namespace v8 697 } // namespace v8
698 698
699 #endif // V8_CONTEXTS_H_ 699 #endif // V8_CONTEXTS_H_
OLDNEW
« no previous file with comments | « src/builtins/builtins-promise.cc ('k') | src/js/async-await.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698