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

Unified Diff: src/frames.h

Issue 2562333002: [wasm] Handle potentially null callee-pc (Closed)
Patch Set: Remove check for RangeError, becuase of unrelated bug 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 | test/mjsunit/regress/regress-673241.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/frames.h
diff --git a/src/frames.h b/src/frames.h
index 06703dd52cfc2a95788c82b4839d8aa138c7f23e..1114576374c05065550b1a9370fe152f02250d66 100644
--- a/src/frames.h
+++ b/src/frames.h
@@ -484,7 +484,9 @@ class StackFrame BASE_EMBEDDED {
// Accessors.
Address sp() const { return state_.sp; }
Address fp() const { return state_.fp; }
- Address callee_pc() const { return *state_.callee_pc_address; }
+ Address callee_pc() const {
+ return state_.callee_pc_address ? *state_.callee_pc_address : nullptr;
+ }
Address caller_sp() const { return GetCallerStackPointer(); }
// If this frame is optimized and was dynamically aligned return its old
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-673241.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698