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

Unified Diff: test/cctest/wasm/wasm-run-utils.h

Issue 2096863003: [wasm] prototype for breakpoint support. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@extend-script-functionality
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/cctest/wasm/test-run-wasm-interpreter.cc ('k') | test/mjsunit/wasm/debug-break.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/wasm/wasm-run-utils.h
diff --git a/test/cctest/wasm/wasm-run-utils.h b/test/cctest/wasm/wasm-run-utils.h
index 1f758bb8535dcf5ec316210a4a2b70829aa35aa9..17fb27c8df3d5fa90d42095da609ac635a8621b7 100644
--- a/test/cctest/wasm/wasm-run-utils.h
+++ b/test/cctest/wasm/wasm-run-utils.h
@@ -73,9 +73,10 @@ class TestingModule : public ModuleEnv {
: execution_mode_(mode),
instance_(&module_),
isolate_(CcTest::InitIsolateOnce()),
+ zone_(&allocator_),
global_offset(0),
interpreter_(mode == kExecuteInterpreted
- ? new WasmInterpreter(&instance_, &allocator_)
+ ? new WasmInterpreter(&instance_, &zone_)
: nullptr) {
module = &module_;
instance = &instance_;
@@ -240,6 +241,7 @@ class TestingModule : public ModuleEnv {
WasmModuleInstance instance_;
Isolate* isolate_;
v8::base::AccountingAllocator allocator_;
+ Zone zone_;
uint32_t global_offset;
V8_ALIGNED(8) byte global_data[kMaxGlobalsSize]; // preallocated global data.
WasmInterpreter* interpreter_;
@@ -445,7 +447,7 @@ class WasmFunctionCompiler : public HandleAndZoneScope,
function_->func_index = 0;
function_->sig_index = 0;
if (mode == kExecuteInterpreted) {
- interpreter_ = new WasmInterpreter(nullptr, zone()->allocator());
+ interpreter_ = new WasmInterpreter(nullptr, zone());
int index = interpreter_->AddFunctionForTesting(function_);
CHECK_EQ(0, index);
}
« no previous file with comments | « test/cctest/wasm/test-run-wasm-interpreter.cc ('k') | test/mjsunit/wasm/debug-break.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698