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

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

Issue 2758563002: [gn] Enable stricter build flags (Closed)
Patch Set: Address comment Created 3 years, 9 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/wasm/wasm-module-builder.cc ('k') | test/cctest/heap/test-heap.cc » ('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 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/debug/debug.h" 8 #include "src/debug/debug.h"
9 #include "src/debug/interface-types.h" 9 #include "src/debug/interface-types.h"
10 #include "src/objects.h" 10 #include "src/objects.h"
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 MACRO(SMALL_NUMBER, uint32_t, max_mem_pages) \ 287 MACRO(SMALL_NUMBER, uint32_t, max_mem_pages) \
288 MACRO(WEAK_LINK, WasmCompiledModule, next_instance) \ 288 MACRO(WEAK_LINK, WasmCompiledModule, next_instance) \
289 MACRO(WEAK_LINK, WasmCompiledModule, prev_instance) \ 289 MACRO(WEAK_LINK, WasmCompiledModule, prev_instance) \
290 MACRO(WEAK_LINK, JSObject, owning_instance) \ 290 MACRO(WEAK_LINK, JSObject, owning_instance) \
291 MACRO(WEAK_LINK, WasmModuleObject, wasm_module) 291 MACRO(WEAK_LINK, WasmModuleObject, wasm_module)
292 292
293 #if DEBUG 293 #if DEBUG
294 #define DEBUG_ONLY_TABLE(MACRO) MACRO(SMALL_NUMBER, uint32_t, instance_id) 294 #define DEBUG_ONLY_TABLE(MACRO) MACRO(SMALL_NUMBER, uint32_t, instance_id)
295 #else 295 #else
296 #define DEBUG_ONLY_TABLE(IGNORE) 296 #define DEBUG_ONLY_TABLE(IGNORE)
297 uint32_t instance_id() const { return -1; } 297 uint32_t instance_id() const { return static_cast<uint32_t>(-1); }
298 #endif 298 #endif
299 299
300 #define WCM_PROPERTY_TABLE(MACRO) \ 300 #define WCM_PROPERTY_TABLE(MACRO) \
301 CORE_WCM_PROPERTY_TABLE(MACRO) \ 301 CORE_WCM_PROPERTY_TABLE(MACRO) \
302 DEBUG_ONLY_TABLE(MACRO) 302 DEBUG_ONLY_TABLE(MACRO)
303 303
304 private: 304 private:
305 enum PropertyIndices { 305 enum PropertyIndices {
306 #define INDICES(IGNORE1, IGNORE2, NAME) kID_##NAME, 306 #define INDICES(IGNORE1, IGNORE2, NAME) kID_##NAME,
307 WCM_PROPERTY_TABLE(INDICES) Count 307 WCM_PROPERTY_TABLE(INDICES) Count
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 }; 527 };
528 }; 528 };
529 529
530 #undef DECLARE_ACCESSORS 530 #undef DECLARE_ACCESSORS
531 #undef DECLARE_OPTIONAL_ACCESSORS 531 #undef DECLARE_OPTIONAL_ACCESSORS
532 532
533 } // namespace internal 533 } // namespace internal
534 } // namespace v8 534 } // namespace v8
535 535
536 #endif // V8_WASM_OBJECTS_H_ 536 #endif // V8_WASM_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/wasm/wasm-module-builder.cc ('k') | test/cctest/heap/test-heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698