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

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

Issue 2051043002: Implement Wasm GrowMemory opcode as a wasm runtime call (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Ben's review, fix includes Created 4 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
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_MODULE_H_ 5 #ifndef V8_WASM_MODULE_H_
6 #define V8_WASM_MODULE_H_ 6 #define V8_WASM_MODULE_H_
7 7
8 #include "src/wasm/wasm-opcodes.h" 8 #include "src/wasm/wasm-opcodes.h"
9 #include "src/wasm/wasm-result.h" 9 #include "src/wasm/wasm-result.h"
10 10
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 MaybeHandle<String> GetWasmFunctionName(Handle<JSObject> wasm, 324 MaybeHandle<String> GetWasmFunctionName(Handle<JSObject> wasm,
325 uint32_t func_index); 325 uint32_t func_index);
326 326
327 // Check whether the given object is a wasm object. 327 // Check whether the given object is a wasm object.
328 // This checks the number and type of internal fields, so it's not 100 percent 328 // This checks the number and type of internal fields, so it's not 100 percent
329 // secure. If it turns out that we need more complete checks, we could add a 329 // secure. If it turns out that we need more complete checks, we could add a
330 // special marker as internal field, which will definitely never occur anywhere 330 // special marker as internal field, which will definitely never occur anywhere
331 // else. 331 // else.
332 bool IsWasmObject(Handle<JSObject> object); 332 bool IsWasmObject(Handle<JSObject> object);
333 333
334 // Update memory references of code objects associated with the module
335 bool UpdateWasmModuleMemory(Handle<JSObject> object, byte* old_start,
336 byte* new_start, uint32_t old_size,
337 uint32_t new_size);
338
334 } // namespace wasm 339 } // namespace wasm
335 } // namespace internal 340 } // namespace internal
336 } // namespace v8 341 } // namespace v8
337 342
338 #endif // V8_WASM_MODULE_H_ 343 #endif // V8_WASM_MODULE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698