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

Unified Diff: src/runtime.cc

Issue 7307035: Add inspection of whether frame is a construct frame to 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 | « src/debug.cc ('k') | test/mjsunit/debug-evaluate-locals-optimized.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/runtime.cc
diff --git a/src/runtime.cc b/src/runtime.cc
index 2e0df5001bcfd9435bf5d1e8e62b5cc79ae473ac..5545a55105bc07454921fb10fcdf8bed1563ae89 100644
--- a/src/runtime.cc
+++ b/src/runtime.cc
@@ -10060,7 +10060,13 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_GetFrameDetails) {
it.frame()->LookupCode()->SourcePosition(it.frame()->pc());
// Check for constructor frame.
- bool constructor = it.frame()->IsConstructor();
+ bool constructor;
+ if (it.frame()->is_optimized() && deoptimized_frame_index != 0) {
+ // Inlined frames cannot be construct calls.
+ constructor = false;
+ } else {
+ constructor = it.frame()->IsConstructor();
+ }
Sven Panne 2011/07/08 08:17:37 This is a bit hard to read, perhaps: bool inlined
Søren Thygesen Gjesse 2011/07/08 08:43:09 Done. It cannot go into IsConstructor as IsConstru
// Get scope info and read from it for local variable information.
Handle<JSFunction> function(JSFunction::cast(it.frame()->function()));
« no previous file with comments | « src/debug.cc ('k') | test/mjsunit/debug-evaluate-locals-optimized.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698