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

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

Issue 2510673002: [wasm] Use more precise types for some WASM objects. (Closed)
Patch Set: Address review comment. 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
« no previous file with comments | « src/wasm/wasm-module.cc ('k') | src/wasm/wasm-objects.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/objects-inl.h" 8 #include "src/objects-inl.h"
9 #include "src/wasm/managed.h" 9 #include "src/wasm/managed.h"
10 10
(...skipping 21 matching lines...) Expand all
32 void set_##name(type* value) 32 void set_##name(type* value)
33 33
34 // Representation of a WebAssembly.Module JavaScript-level object. 34 // Representation of a WebAssembly.Module JavaScript-level object.
35 class WasmModuleObject : public JSObject { 35 class WasmModuleObject : public JSObject {
36 public: 36 public:
37 // TODO(titzer): add the brand as an internal field instead of a property. 37 // TODO(titzer): add the brand as an internal field instead of a property.
38 enum Fields { kCompiledModule, kFieldCount }; 38 enum Fields { kCompiledModule, kFieldCount };
39 39
40 DECLARE_CASTS(WasmModuleObject); 40 DECLARE_CASTS(WasmModuleObject);
41 41
42 WasmCompiledModule* compiled_module(); 42 WasmCompiledModule* get_compiled_module();
43 wasm::WasmModule* module(); 43 wasm::WasmModule* module();
44 int num_functions(); 44 int num_functions();
45 bool is_asm_js(); 45 bool is_asm_js();
46 int GetAsmWasmSourcePosition(int func_index, int byte_offset); 46 int GetAsmWasmSourcePosition(int func_index, int byte_offset);
47 WasmDebugInfo* debug_info(); 47 WasmDebugInfo* debug_info();
48 void set_debug_info(WasmDebugInfo* debug_info); 48 void set_debug_info(WasmDebugInfo* debug_info);
49 MaybeHandle<String> GetFunctionName(Isolate* isolate, int func_index); 49 MaybeHandle<String> GetFunctionName(Isolate* isolate, int func_index);
50 50
51 static Handle<WasmModuleObject> New( 51 static Handle<WasmModuleObject> New(
52 Isolate* isolate, Handle<WasmCompiledModule> compiled_module); 52 Isolate* isolate, Handle<WasmCompiledModule> compiled_module);
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 int func_index, int byte_offset); 299 int func_index, int byte_offset);
300 }; 300 };
301 301
302 #undef DECLARE_ACCESSORS 302 #undef DECLARE_ACCESSORS
303 #undef DECLARE_OPTIONAL_ACCESSORS 303 #undef DECLARE_OPTIONAL_ACCESSORS
304 304
305 } // namespace internal 305 } // namespace internal
306 } // namespace v8 306 } // namespace v8
307 307
308 #endif // V8_WASM_OBJECTS_H_ 308 #endif // V8_WASM_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/wasm/wasm-module.cc ('k') | src/wasm/wasm-objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698