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

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

Issue 2438673006: [wasm] GrowMemory should update imported memory objects. (Closed)
Patch Set: Improve test 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 | « no previous file | src/wasm/wasm-js.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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_JS_H_ 5 #ifndef V8_WASM_JS_H_
6 #define V8_WASM_JS_H_ 6 #define V8_WASM_JS_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/base/hashmap.h" 9 #include "src/base/hashmap.h"
10 10
(...skipping 15 matching lines...) Expand all
26 26
27 static Handle<JSObject> CreateWasmMemoryObject(Isolate* isolate, 27 static Handle<JSObject> CreateWasmMemoryObject(Isolate* isolate,
28 Handle<JSArrayBuffer> buffer, 28 Handle<JSArrayBuffer> buffer,
29 bool has_maximum, int maximum); 29 bool has_maximum, int maximum);
30 30
31 static bool IsWasmMemoryObject(Isolate* isolate, Handle<Object> value); 31 static bool IsWasmMemoryObject(Isolate* isolate, Handle<Object> value);
32 32
33 static Handle<JSArrayBuffer> GetWasmMemoryArrayBuffer(Isolate* isolate, 33 static Handle<JSArrayBuffer> GetWasmMemoryArrayBuffer(Isolate* isolate,
34 Handle<Object> value); 34 Handle<Object> value);
35 35
36 static void SetWasmMemoryArrayBuffer(Isolate* isolate, Handle<Object> value,
37 Handle<JSArrayBuffer> buffer);
38
36 static uint32_t GetWasmMemoryMaximumSize(Isolate* isolate, 39 static uint32_t GetWasmMemoryMaximumSize(Isolate* isolate,
37 Handle<Object> value); 40 Handle<Object> value);
38 41
39 static void SetWasmMemoryInstance(Isolate* isolate, Handle<Object> value, 42 static void SetWasmMemoryInstance(Isolate* isolate, Handle<Object> value,
40 Handle<JSObject> instance); 43 Handle<JSObject> instance);
41 }; 44 };
42 45
43 } // namespace internal 46 } // namespace internal
44 } // namespace v8 47 } // namespace v8
45 #endif 48 #endif
OLDNEW
« no previous file with comments | « no previous file | src/wasm/wasm-js.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698