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

Side by Side Diff: src/contexts.h

Issue 2695593002: [promises] cleanup default promise handlers (Closed)
Patch Set: remove unused var 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
« no previous file with comments | « src/builtins/builtins-promise.cc ('k') | src/heap-symbols.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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 V(GLOBAL_PROXY_FUNCTION_INDEX, JSFunction, global_proxy_function) \ 100 V(GLOBAL_PROXY_FUNCTION_INDEX, JSFunction, global_proxy_function) \
101 V(MAP_DELETE_METHOD_INDEX, JSFunction, map_delete) \ 101 V(MAP_DELETE_METHOD_INDEX, JSFunction, map_delete) \
102 V(MAP_GET_METHOD_INDEX, JSFunction, map_get) \ 102 V(MAP_GET_METHOD_INDEX, JSFunction, map_get) \
103 V(MAP_HAS_METHOD_INDEX, JSFunction, map_has) \ 103 V(MAP_HAS_METHOD_INDEX, JSFunction, map_has) \
104 V(MAP_SET_METHOD_INDEX, JSFunction, map_set) \ 104 V(MAP_SET_METHOD_INDEX, JSFunction, map_set) \
105 V(FUNCTION_HAS_INSTANCE_INDEX, JSFunction, function_has_instance) \ 105 V(FUNCTION_HAS_INSTANCE_INDEX, JSFunction, function_has_instance) \
106 V(OBJECT_VALUE_OF, JSFunction, object_value_of) \ 106 V(OBJECT_VALUE_OF, JSFunction, object_value_of) \
107 V(OBJECT_TO_STRING, JSFunction, object_to_string) \ 107 V(OBJECT_TO_STRING, JSFunction, object_to_string) \
108 V(PROMISE_CATCH_INDEX, JSFunction, promise_catch) \ 108 V(PROMISE_CATCH_INDEX, JSFunction, promise_catch) \
109 V(PROMISE_FUNCTION_INDEX, JSFunction, promise_function) \ 109 V(PROMISE_FUNCTION_INDEX, JSFunction, promise_function) \
110 V(PROMISE_ID_RESOLVE_HANDLER_INDEX, JSFunction, promise_id_resolve_handler) \
111 V(PROMISE_ID_REJECT_HANDLER_INDEX, JSFunction, promise_id_reject_handler) \
112 V(RANGE_ERROR_FUNCTION_INDEX, JSFunction, range_error_function) \ 110 V(RANGE_ERROR_FUNCTION_INDEX, JSFunction, range_error_function) \
113 V(REFERENCE_ERROR_FUNCTION_INDEX, JSFunction, reference_error_function) \ 111 V(REFERENCE_ERROR_FUNCTION_INDEX, JSFunction, reference_error_function) \
114 V(SET_ADD_METHOD_INDEX, JSFunction, set_add) \ 112 V(SET_ADD_METHOD_INDEX, JSFunction, set_add) \
115 V(SET_DELETE_METHOD_INDEX, JSFunction, set_delete) \ 113 V(SET_DELETE_METHOD_INDEX, JSFunction, set_delete) \
116 V(SET_HAS_METHOD_INDEX, JSFunction, set_has) \ 114 V(SET_HAS_METHOD_INDEX, JSFunction, set_has) \
117 V(SYNTAX_ERROR_FUNCTION_INDEX, JSFunction, syntax_error_function) \ 115 V(SYNTAX_ERROR_FUNCTION_INDEX, JSFunction, syntax_error_function) \
118 V(TYPE_ERROR_FUNCTION_INDEX, JSFunction, type_error_function) \ 116 V(TYPE_ERROR_FUNCTION_INDEX, JSFunction, type_error_function) \
119 V(URI_ERROR_FUNCTION_INDEX, JSFunction, uri_error_function) \ 117 V(URI_ERROR_FUNCTION_INDEX, JSFunction, uri_error_function) \
120 V(WASM_COMPILE_ERROR_FUNCTION_INDEX, JSFunction, \ 118 V(WASM_COMPILE_ERROR_FUNCTION_INDEX, JSFunction, \
121 wasm_compile_error_function) \ 119 wasm_compile_error_function) \
(...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after
696 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); 694 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize);
697 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); 695 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex);
698 }; 696 };
699 697
700 typedef Context::Field ContextField; 698 typedef Context::Field ContextField;
701 699
702 } // namespace internal 700 } // namespace internal
703 } // namespace v8 701 } // namespace v8
704 702
705 #endif // V8_CONTEXTS_H_ 703 #endif // V8_CONTEXTS_H_
OLDNEW
« no previous file with comments | « src/builtins/builtins-promise.cc ('k') | src/heap-symbols.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698