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

Unified Diff: src/deoptimizer.h

Issue 7227006: Add inspection of function for optimized frames (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 5 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 | « no previous file | src/deoptimizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/deoptimizer.h
diff --git a/src/deoptimizer.h b/src/deoptimizer.h
index 64823183a52446448afb5696fb7821ee66901a0d..7d2bea32b6734e1fd01f1eeb600c1a5f7d7bc5d5 100644
--- a/src/deoptimizer.h
+++ b/src/deoptimizer.h
@@ -665,6 +665,11 @@ class DeoptimizedFrameInfo : public Malloced {
// Return the height of the expression stack.
int expression_count() { return expression_count_; }
+ // Get the frame function.
+ Object* GetFunction() {
Sven Panne 2011/07/06 12:24:19 Why should we make the typing weaker here than it
Søren Thygesen Gjesse 2011/07/06 13:01:43 Good point, changed to JSFunction*.
+ return function_;
+ }
+
// Get an expression from the expression stack.
Object* GetExpression(int index) {
ASSERT(0 <= index && index < expression_count());
@@ -672,12 +677,18 @@ class DeoptimizedFrameInfo : public Malloced {
}
private:
+ // Set the frame function.
+ void SetFunction(JSFunction* function) {
+ function_ = function;
+ }
+
// Set an expression on the expression stack.
void SetExpression(int index, Object* obj) {
ASSERT(0 <= index && index < expression_count());
expression_stack_[index] = obj;
}
+ Object* function_;
int expression_count_;
Object** expression_stack_;
« no previous file with comments | « no previous file | src/deoptimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698