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

Unified Diff: src/wasm/wasm-interpreter.cc

Issue 2415533003: [wasm] Rename WasmModuleInstance to WasmInstance. (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/wasm/wasm-interpreter.h ('k') | src/wasm/wasm-module.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/wasm/wasm-interpreter.cc
diff --git a/src/wasm/wasm-interpreter.cc b/src/wasm/wasm-interpreter.cc
index 8064bf2765c71c483c743092aa638fb4075e58ee..5103b56e924e63672a201658cb7315e7efda9f4c 100644
--- a/src/wasm/wasm-interpreter.cc
+++ b/src/wasm/wasm-interpreter.cc
@@ -655,7 +655,7 @@ static inline int64_t ExecuteI64ReinterpretF64(double a, TrapReason* trap) {
}
static inline int32_t ExecuteGrowMemory(uint32_t delta_pages,
- WasmModuleInstance* instance) {
+ WasmInstance* instance) {
// TODO(ahaas): Move memory allocation to wasm-module.cc for better
// encapsulation.
if (delta_pages > wasm::WasmModule::kMaxMemPages) {
@@ -967,7 +967,7 @@ class CodeMap {
// Responsible for executing code directly.
class ThreadImpl : public WasmInterpreter::Thread {
public:
- ThreadImpl(Zone* zone, CodeMap* codemap, WasmModuleInstance* instance)
+ ThreadImpl(Zone* zone, CodeMap* codemap, WasmInstance* instance)
: codemap_(codemap),
instance_(instance),
stack_(zone),
@@ -1080,7 +1080,7 @@ class ThreadImpl : public WasmInterpreter::Thread {
};
CodeMap* codemap_;
- WasmModuleInstance* instance_;
+ WasmInstance* instance_;
ZoneVector<WasmVal> stack_;
ZoneVector<Frame> frames_;
ZoneVector<Block> blocks_;
@@ -1089,7 +1089,7 @@ class ThreadImpl : public WasmInterpreter::Thread {
TrapReason trap_reason_;
CodeMap* codemap() { return codemap_; }
- WasmModuleInstance* instance() { return instance_; }
+ WasmInstance* instance() { return instance_; }
const WasmModule* module() { return instance_->module; }
void DoTrap(TrapReason trap, pc_t pc) {
@@ -1718,11 +1718,11 @@ class ThreadImpl : public WasmInterpreter::Thread {
//============================================================================
class WasmInterpreterInternals : public ZoneObject {
public:
- WasmModuleInstance* instance_;
+ WasmInstance* instance_;
CodeMap codemap_;
ZoneVector<ThreadImpl*> threads_;
- WasmInterpreterInternals(Zone* zone, WasmModuleInstance* instance)
+ WasmInterpreterInternals(Zone* zone, WasmInstance* instance)
: instance_(instance),
codemap_(instance_ ? instance_->module : nullptr, zone),
threads_(zone) {
@@ -1739,7 +1739,7 @@ class WasmInterpreterInternals : public ZoneObject {
//============================================================================
// Implementation of the public interface of the interpreter.
//============================================================================
-WasmInterpreter::WasmInterpreter(WasmModuleInstance* instance,
+WasmInterpreter::WasmInterpreter(WasmInstance* instance,
AccountingAllocator* allocator)
: zone_(allocator),
internals_(new (&zone_) WasmInterpreterInternals(&zone_, instance)) {}
« no previous file with comments | « src/wasm/wasm-interpreter.h ('k') | src/wasm/wasm-module.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698