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

Unified Diff: src/frames.cc

Issue 2452543003: Don't wrap roots in Handle just to dereference immediately. (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/builtins/builtins-string.cc ('k') | src/ic/ic.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 e847a698a8e010db67143a4b352880be0e9a6b40..a9e696ba4fc36798bdbdef5fdc30ef64e274a89b 100644
--- a/src/frames.cc
+++ b/src/frames.cc
@@ -1494,7 +1494,7 @@ Address WasmFrame::GetCallerStackPointer() const {
Object* WasmFrame::wasm_instance() const {
Object* ret = wasm::GetOwningWasmInstance(LookupCode());
- if (ret == nullptr) ret = *(isolate()->factory()->undefined_value());
+ if (ret == nullptr) ret = isolate()->heap()->undefined_value();
return ret;
}
« no previous file with comments | « src/builtins/builtins-string.cc ('k') | src/ic/ic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698