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

Side by Side Diff: src/contexts.h

Issue 290633010: Move microtask queueing logic from JavaScript to C++ (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Handle comments Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « src/bootstrapper.cc ('k') | src/execution.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 "heap.h" 8 #include "heap.h"
9 #include "objects.h" 9 #include "objects.h"
10 10
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 V(CALL_AS_CONSTRUCTOR_DELEGATE_INDEX, JSFunction, \ 149 V(CALL_AS_CONSTRUCTOR_DELEGATE_INDEX, JSFunction, \
150 call_as_constructor_delegate) \ 150 call_as_constructor_delegate) \
151 V(SCRIPT_FUNCTION_INDEX, JSFunction, script_function) \ 151 V(SCRIPT_FUNCTION_INDEX, JSFunction, script_function) \
152 V(OPAQUE_REFERENCE_FUNCTION_INDEX, JSFunction, opaque_reference_function) \ 152 V(OPAQUE_REFERENCE_FUNCTION_INDEX, JSFunction, opaque_reference_function) \
153 V(CONTEXT_EXTENSION_FUNCTION_INDEX, JSFunction, context_extension_function) \ 153 V(CONTEXT_EXTENSION_FUNCTION_INDEX, JSFunction, context_extension_function) \
154 V(MAP_CACHE_INDEX, Object, map_cache) \ 154 V(MAP_CACHE_INDEX, Object, map_cache) \
155 V(EMBEDDER_DATA_INDEX, FixedArray, embedder_data) \ 155 V(EMBEDDER_DATA_INDEX, FixedArray, embedder_data) \
156 V(ALLOW_CODE_GEN_FROM_STRINGS_INDEX, Object, allow_code_gen_from_strings) \ 156 V(ALLOW_CODE_GEN_FROM_STRINGS_INDEX, Object, allow_code_gen_from_strings) \
157 V(ERROR_MESSAGE_FOR_CODE_GEN_FROM_STRINGS_INDEX, Object, \ 157 V(ERROR_MESSAGE_FOR_CODE_GEN_FROM_STRINGS_INDEX, Object, \
158 error_message_for_code_gen_from_strings) \ 158 error_message_for_code_gen_from_strings) \
159 V(RUN_MICROTASKS_INDEX, JSFunction, run_microtasks) \
160 V(ENQUEUE_MICROTASK_INDEX, JSFunction, enqueue_microtask) \
161 V(IS_PROMISE_INDEX, JSFunction, is_promise) \ 159 V(IS_PROMISE_INDEX, JSFunction, is_promise) \
162 V(PROMISE_CREATE_INDEX, JSFunction, promise_create) \ 160 V(PROMISE_CREATE_INDEX, JSFunction, promise_create) \
163 V(PROMISE_RESOLVE_INDEX, JSFunction, promise_resolve) \ 161 V(PROMISE_RESOLVE_INDEX, JSFunction, promise_resolve) \
164 V(PROMISE_REJECT_INDEX, JSFunction, promise_reject) \ 162 V(PROMISE_REJECT_INDEX, JSFunction, promise_reject) \
165 V(PROMISE_CHAIN_INDEX, JSFunction, promise_chain) \ 163 V(PROMISE_CHAIN_INDEX, JSFunction, promise_chain) \
166 V(PROMISE_CATCH_INDEX, JSFunction, promise_catch) \ 164 V(PROMISE_CATCH_INDEX, JSFunction, promise_catch) \
167 V(TO_COMPLETE_PROPERTY_DESCRIPTOR_INDEX, JSFunction, \ 165 V(TO_COMPLETE_PROPERTY_DESCRIPTOR_INDEX, JSFunction, \
168 to_complete_property_descriptor) \ 166 to_complete_property_descriptor) \
169 V(DERIVED_HAS_TRAP_INDEX, JSFunction, derived_has_trap) \ 167 V(DERIVED_HAS_TRAP_INDEX, JSFunction, derived_has_trap) \
170 V(DERIVED_GET_TRAP_INDEX, JSFunction, derived_get_trap) \ 168 V(DERIVED_GET_TRAP_INDEX, JSFunction, derived_get_trap) \
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
542 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object); 540 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object);
543 #endif 541 #endif
544 542
545 STATIC_CHECK(kHeaderSize == Internals::kContextHeaderSize); 543 STATIC_CHECK(kHeaderSize == Internals::kContextHeaderSize);
546 STATIC_CHECK(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); 544 STATIC_CHECK(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex);
547 }; 545 };
548 546
549 } } // namespace v8::internal 547 } } // namespace v8::internal
550 548
551 #endif // V8_CONTEXTS_H_ 549 #endif // V8_CONTEXTS_H_
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | src/execution.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698