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

Side by Side Diff: test/common/wasm/wasm-module-runner.h

Issue 2373613004: [wasm] Fix bounds check of a store instruction after a grow_memory instruction (Closed)
Patch Set: Ben's review Created 4 years, 2 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 | « test/cctest/wasm/test-run-wasm-module.cc ('k') | test/common/wasm/wasm-module-runner.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_MODULE_RUNNER_H_ 5 #ifndef V8_WASM_MODULE_RUNNER_H_
6 #define V8_WASM_MODULE_RUNNER_H_ 6 #define V8_WASM_MODULE_RUNNER_H_
7 7
8 #include "src/handles.h" 8 #include "src/handles.h"
9 #include "src/isolate.h" 9 #include "src/isolate.h"
10 #include "src/objects.h" 10 #include "src/objects.h"
(...skipping 29 matching lines...) Expand all
40 int32_t CompileAndRunWasmModule(Isolate* isolate, const byte* module_start, 40 int32_t CompileAndRunWasmModule(Isolate* isolate, const byte* module_start,
41 const byte* module_end, ModuleOrigin origin); 41 const byte* module_end, ModuleOrigin origin);
42 42
43 // Interprets the given module, starting at the function specified by 43 // Interprets the given module, starting at the function specified by
44 // {function_index}. The return type of the function has to be int32. The module 44 // {function_index}. The return type of the function has to be int32. The module
45 // should not have any imports or exports 45 // should not have any imports or exports
46 int32_t InterpretWasmModule(Isolate* isolate, ErrorThrower* thrower, 46 int32_t InterpretWasmModule(Isolate* isolate, ErrorThrower* thrower,
47 const WasmModule* module, int function_index, 47 const WasmModule* module, int function_index,
48 WasmVal* args); 48 WasmVal* args);
49 49
50 // Compiles WasmModule bytes and return an instance of the compiled module.
51 const Handle<JSObject> CompileInstantiateWasmModuleForTesting(
52 Isolate* isolate, Zone* zone, const byte* module_start,
53 const byte* module_end, ModuleOrigin origin);
54
55 // Runs the module instance with arguments.
56 int32_t RunWasmModuleForTesting(Isolate* isolate, Handle<JSObject> instance,
57 int argc, Handle<Object> argv[],
58 ModuleOrigin origin);
50 // Install function map, module symbol for testing 59 // Install function map, module symbol for testing
51 void SetupIsolateForWasmModule(Isolate* isolate); 60 void SetupIsolateForWasmModule(Isolate* isolate);
52 } // namespace testing 61 } // namespace testing
53 } // namespace wasm 62 } // namespace wasm
54 } // namespace internal 63 } // namespace internal
55 } // namespace v8 64 } // namespace v8
56 65
57 #endif // V8_WASM_MODULE_RUNNER_H_ 66 #endif // V8_WASM_MODULE_RUNNER_H_
OLDNEW
« no previous file with comments | « test/cctest/wasm/test-run-wasm-module.cc ('k') | test/common/wasm/wasm-module-runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698