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

Side by Side Diff: src/wasm/wasm-objects.h

Issue 2500443004: [wasm] OOB traps: build protected instruction list during codegen (Closed)
Patch Set: Fixing Windows better 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
OLDNEW
1 // Copyright 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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_WASM_OBJECTS_H_ 5 #ifndef V8_WASM_OBJECTS_H_
6 #define V8_WASM_OBJECTS_H_ 6 #define V8_WASM_OBJECTS_H_
7 7
8 #include "src/objects-inl.h" 8 #include "src/objects-inl.h"
9 #include "src/wasm/managed.h" 9 #include "src/wasm/managed.h"
10 10
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 MACRO(OBJECT, Script, asm_js_script) \ 193 MACRO(OBJECT, Script, asm_js_script) \
194 MACRO(OBJECT, FixedArray, function_tables) \ 194 MACRO(OBJECT, FixedArray, function_tables) \
195 MACRO(OBJECT, FixedArray, empty_function_tables) \ 195 MACRO(OBJECT, FixedArray, empty_function_tables) \
196 MACRO(OBJECT, ByteArray, asm_js_offset_tables) \ 196 MACRO(OBJECT, ByteArray, asm_js_offset_tables) \
197 MACRO(OBJECT, JSArrayBuffer, memory) \ 197 MACRO(OBJECT, JSArrayBuffer, memory) \
198 MACRO(SMALL_NUMBER, uint32_t, min_mem_pages) \ 198 MACRO(SMALL_NUMBER, uint32_t, min_mem_pages) \
199 MACRO(SMALL_NUMBER, uint32_t, max_mem_pages) \ 199 MACRO(SMALL_NUMBER, uint32_t, max_mem_pages) \
200 MACRO(WEAK_LINK, WasmCompiledModule, next_instance) \ 200 MACRO(WEAK_LINK, WasmCompiledModule, next_instance) \
201 MACRO(WEAK_LINK, WasmCompiledModule, prev_instance) \ 201 MACRO(WEAK_LINK, WasmCompiledModule, prev_instance) \
202 MACRO(WEAK_LINK, JSObject, owning_instance) \ 202 MACRO(WEAK_LINK, JSObject, owning_instance) \
203 MACRO(WEAK_LINK, JSObject, wasm_module) 203 MACRO(WEAK_LINK, JSObject, wasm_module) \
204 MACRO(OBJECT, FixedArray, protected_instructions)
204 205
205 #if DEBUG 206 #if DEBUG
206 #define DEBUG_ONLY_TABLE(MACRO) MACRO(SMALL_NUMBER, uint32_t, instance_id) 207 #define DEBUG_ONLY_TABLE(MACRO) MACRO(SMALL_NUMBER, uint32_t, instance_id)
207 #else 208 #else
208 #define DEBUG_ONLY_TABLE(IGNORE) 209 #define DEBUG_ONLY_TABLE(IGNORE)
209 uint32_t instance_id() const { return -1; } 210 uint32_t instance_id() const { return -1; }
210 #endif 211 #endif
211 212
212 #define WCM_PROPERTY_TABLE(MACRO) \ 213 #define WCM_PROPERTY_TABLE(MACRO) \
213 CORE_WCM_PROPERTY_TABLE(MACRO) \ 214 CORE_WCM_PROPERTY_TABLE(MACRO) \
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 int func_index, int byte_offset); 292 int func_index, int byte_offset);
292 }; 293 };
293 294
294 #undef DECLARE_ACCESSORS 295 #undef DECLARE_ACCESSORS
295 #undef DECLARE_OPTIONAL_ACCESSORS 296 #undef DECLARE_OPTIONAL_ACCESSORS
296 297
297 } // namespace internal 298 } // namespace internal
298 } // namespace v8 299 } // namespace v8
299 300
300 #endif // V8_WASM_OBJECTS_H_ 301 #endif // V8_WASM_OBJECTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698