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

Side by Side Diff: src/contexts.h

Issue 2421453002: [wasm] Implement {Compile,Runtime}Error; fix traps from start function (Closed)
Patch Set: Fix merge artefact Created 4 years, 2 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/compiler/wasm-compiler.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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 V(RANGE_ERROR_FUNCTION_INDEX, JSFunction, range_error_function) \ 100 V(RANGE_ERROR_FUNCTION_INDEX, JSFunction, range_error_function) \
101 V(REGEXP_LAST_MATCH_INFO_INDEX, JSObject, regexp_last_match_info) \ 101 V(REGEXP_LAST_MATCH_INFO_INDEX, JSObject, regexp_last_match_info) \
102 V(REJECT_PROMISE_NO_DEBUG_EVENT_INDEX, JSFunction, \ 102 V(REJECT_PROMISE_NO_DEBUG_EVENT_INDEX, JSFunction, \
103 reject_promise_no_debug_event) \ 103 reject_promise_no_debug_event) \
104 V(REFERENCE_ERROR_FUNCTION_INDEX, JSFunction, reference_error_function) \ 104 V(REFERENCE_ERROR_FUNCTION_INDEX, JSFunction, reference_error_function) \
105 V(SET_ADD_METHOD_INDEX, JSFunction, set_add) \ 105 V(SET_ADD_METHOD_INDEX, JSFunction, set_add) \
106 V(SET_DELETE_METHOD_INDEX, JSFunction, set_delete) \ 106 V(SET_DELETE_METHOD_INDEX, JSFunction, set_delete) \
107 V(SET_HAS_METHOD_INDEX, JSFunction, set_has) \ 107 V(SET_HAS_METHOD_INDEX, JSFunction, set_has) \
108 V(SYNTAX_ERROR_FUNCTION_INDEX, JSFunction, syntax_error_function) \ 108 V(SYNTAX_ERROR_FUNCTION_INDEX, JSFunction, syntax_error_function) \
109 V(TYPE_ERROR_FUNCTION_INDEX, JSFunction, type_error_function) \ 109 V(TYPE_ERROR_FUNCTION_INDEX, JSFunction, type_error_function) \
110 V(URI_ERROR_FUNCTION_INDEX, JSFunction, uri_error_function) 110 V(URI_ERROR_FUNCTION_INDEX, JSFunction, uri_error_function) \
111 V(WASM_COMPILE_ERROR_FUNCTION_INDEX, JSFunction, \
112 wasm_compile_error_function) \
113 V(WASM_RUNTIME_ERROR_FUNCTION_INDEX, JSFunction, wasm_runtime_error_function)
111 114
112 #define NATIVE_CONTEXT_FIELDS(V) \ 115 #define NATIVE_CONTEXT_FIELDS(V) \
113 V(GLOBAL_PROXY_INDEX, JSObject, global_proxy_object) \ 116 V(GLOBAL_PROXY_INDEX, JSObject, global_proxy_object) \
114 V(EMBEDDER_DATA_INDEX, FixedArray, embedder_data) \ 117 V(EMBEDDER_DATA_INDEX, FixedArray, embedder_data) \
115 /* Below is alpha-sorted */ \ 118 /* Below is alpha-sorted */ \
116 V(ACCESSOR_PROPERTY_DESCRIPTOR_MAP_INDEX, Map, \ 119 V(ACCESSOR_PROPERTY_DESCRIPTOR_MAP_INDEX, Map, \
117 accessor_property_descriptor_map) \ 120 accessor_property_descriptor_map) \
118 V(ALLOW_CODE_GEN_FROM_STRINGS_INDEX, Object, allow_code_gen_from_strings) \ 121 V(ALLOW_CODE_GEN_FROM_STRINGS_INDEX, Object, allow_code_gen_from_strings) \
119 V(ARRAY_BUFFER_FUN_INDEX, JSFunction, array_buffer_fun) \ 122 V(ARRAY_BUFFER_FUN_INDEX, JSFunction, array_buffer_fun) \
120 V(ARRAY_BUFFER_MAP_INDEX, Map, array_buffer_map) \ 123 V(ARRAY_BUFFER_MAP_INDEX, Map, array_buffer_map) \
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
566 #endif 569 #endif
567 570
568 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); 571 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize);
569 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); 572 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex);
570 }; 573 };
571 574
572 } // namespace internal 575 } // namespace internal
573 } // namespace v8 576 } // namespace v8
574 577
575 #endif // V8_CONTEXTS_H_ 578 #endif // V8_CONTEXTS_H_
OLDNEW
« no previous file with comments | « src/compiler/wasm-compiler.cc ('k') | src/factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698