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

Unified Diff: src/frames.cc

Issue 2590563002: [wasm] Cleanup unneeded casts to WasmInstanceObject (Closed)
Patch Set: Created 4 years 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 | « no previous file | src/runtime/runtime-wasm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/frames.cc
diff --git a/src/frames.cc b/src/frames.cc
index eb06ac23b6a36ed1b0d9a726e7651760a9377924..c2c33fad1d9f20fc849b3a315351131abe48fb0d 100644
--- a/src/frames.cc
+++ b/src/frames.cc
@@ -1559,10 +1559,10 @@ Address WasmFrame::GetCallerStackPointer() const {
}
WasmInstanceObject* WasmFrame::wasm_instance() const {
- Object* ret = wasm::GetOwningWasmInstance(LookupCode());
- // This is a live stack frame, there must be a live wasm instance available.
- DCHECK_NOT_NULL(ret);
- return WasmInstanceObject::cast(ret);
+ WasmInstanceObject* obj = wasm::GetOwningWasmInstance(LookupCode());
+ // This is a live stack frame; it must have a live instance.
+ DCHECK_NOT_NULL(obj);
+ return obj;
}
uint32_t WasmFrame::function_index() const {
« no previous file with comments | « no previous file | src/runtime/runtime-wasm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698