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

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

Issue 2917603002: [wasm] Fix WasmMemoryObject constructor for when a module has no initial memory (Closed)
Patch Set: Clemens's review Created 3 years, 6 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 | « no previous file | 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/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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 // TODO(titzer): add the brand as an embedder field instead of a property. 97 // TODO(titzer): add the brand as an embedder field instead of a property.
98 enum Fields : uint8_t { 98 enum Fields : uint8_t {
99 kWrapperTracerHeader, 99 kWrapperTracerHeader,
100 kArrayBuffer, 100 kArrayBuffer,
101 kMaximum, 101 kMaximum,
102 kInstancesLink, 102 kInstancesLink,
103 kFieldCount 103 kFieldCount
104 }; 104 };
105 105
106 DECLARE_CASTS(WasmMemoryObject); 106 DECLARE_CASTS(WasmMemoryObject);
107 DECLARE_OPTIONAL_ACCESSORS(buffer, JSArrayBuffer); 107 DECLARE_ACCESSORS(buffer, JSArrayBuffer);
108 DECLARE_OPTIONAL_ACCESSORS(instances_link, WasmInstanceWrapper); 108 DECLARE_OPTIONAL_ACCESSORS(instances_link, WasmInstanceWrapper);
109 109
110 void AddInstance(Isolate* isolate, Handle<WasmInstanceObject> object); 110 void AddInstance(Isolate* isolate, Handle<WasmInstanceObject> object);
111 void ResetInstancesLink(Isolate* isolate); 111 void ResetInstancesLink(Isolate* isolate);
112 uint32_t current_pages(); 112 uint32_t current_pages();
113 bool has_maximum_pages(); 113 bool has_maximum_pages();
114 int32_t maximum_pages(); // Returns < 0 if there is no maximum. 114 int32_t maximum_pages(); // Returns < 0 if there is no maximum.
115 115
116 static Handle<WasmMemoryObject> New(Isolate* isolate, 116 static Handle<WasmMemoryObject> New(Isolate* isolate,
117 Handle<JSArrayBuffer> buffer, 117 Handle<JSArrayBuffer> buffer,
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after
670 #undef DECLARE_CASTS 670 #undef DECLARE_CASTS
671 #undef DECLARE_GETTER 671 #undef DECLARE_GETTER
672 #undef DECLARE_ACCESSORS 672 #undef DECLARE_ACCESSORS
673 #undef DECLARE_OPTIONAL_ACCESSORS 673 #undef DECLARE_OPTIONAL_ACCESSORS
674 #undef DECLARE_OPTIONAL_GETTER 674 #undef DECLARE_OPTIONAL_GETTER
675 675
676 } // namespace internal 676 } // namespace internal
677 } // namespace v8 677 } // namespace v8
678 678
679 #endif // V8_WASM_OBJECTS_H_ 679 #endif // V8_WASM_OBJECTS_H_
OLDNEW
« no previous file with comments | « no previous file | src/wasm/wasm-objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698