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

Unified Diff: runtime/vm/deopt_instructions.h

Issue 12049039: Fix source position for stack traces with optimized top function. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: rebase Created 7 years, 11 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 | « runtime/tests/vm/vm.status ('k') | runtime/vm/deopt_instructions.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/deopt_instructions.h
===================================================================
--- runtime/vm/deopt_instructions.h (revision 17754)
+++ runtime/vm/deopt_instructions.h (working copy)
@@ -115,6 +115,8 @@
virtual void Execute(DeoptimizationContext* deopt_context,
intptr_t to_index) = 0;
+ virtual DeoptInstr::Kind kind() const = 0;
+
bool Equals(const DeoptInstr& other) const {
return (kind() == other.kind()) && (from_index() == other.from_index());
}
@@ -125,12 +127,11 @@
// Get the function and return address which is encoded in this
// kRetAfterAddress deopt instruction.
- static uword GetRetAfterAddress(intptr_t deopt_from_index,
+ static uword GetRetAfterAddress(DeoptInstr* instr,
const Array& object_table,
Function* func);
protected:
- virtual DeoptInstr::Kind kind() const = 0;
virtual intptr_t from_index() const = 0;
friend class DeoptInfoBuilder;
« no previous file with comments | « runtime/tests/vm/vm.status ('k') | runtime/vm/deopt_instructions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698