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

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

Issue 2471883003: [wasm] WebAssembly.Memory object can be referenced by multiple Instance objects. (Closed)
Patch Set: Rebase, add Dcheck 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 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 Handle<Object> value); 49 Handle<Object> value);
50 50
51 static void SetWasmMemoryArrayBuffer(Isolate* isolate, Handle<Object> value, 51 static void SetWasmMemoryArrayBuffer(Isolate* isolate, Handle<Object> value,
52 Handle<JSArrayBuffer> buffer); 52 Handle<JSArrayBuffer> buffer);
53 53
54 static uint32_t GetWasmMemoryMaximumSize(Isolate* isolate, 54 static uint32_t GetWasmMemoryMaximumSize(Isolate* isolate,
55 Handle<Object> value); 55 Handle<Object> value);
56 56
57 static void SetWasmMemoryInstance(Isolate* isolate, Handle<Object> value, 57 static void SetWasmMemoryInstance(Isolate* isolate, Handle<Object> value,
58 Handle<JSObject> instance); 58 Handle<JSObject> instance);
59
60 static void ResetWasmMemoryInstance(Isolate* isolate,
61 Handle<Object> memory_object);
62
63 static Handle<Object> GetWasmMemoryInstanceWrapper(Isolate* isolate,
64 Handle<Object> value);
bradnelson 2016/11/09 01:40:11 value -> instance?
gdeepti 2016/11/16 05:34:10 Refactored to remove the function.
59 }; 65 };
60
61 } // namespace internal 66 } // namespace internal
62 } // namespace v8 67 } // namespace v8
63 #endif 68 #endif
OLDNEW
« no previous file with comments | « src/runtime/runtime-wasm.cc ('k') | src/wasm/wasm-js.cc » ('j') | src/wasm/wasm-js.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698