Author: [email protected]
Date: Mon Jun 22 06:14:47 2009
New Revision: 2237

Modified:
    branches/bleeding_edge/src/mirror-delay.js

Log:
Sending scope types and object refs costs nothing but would save us request  
that should be send to retrieve scopes informations for each frame  
in 'backtrace' response.
Review URL: http://codereview.chromium.org/131107

Modified: branches/bleeding_edge/src/mirror-delay.js
==============================================================================
--- branches/bleeding_edge/src/mirror-delay.js  (original)
+++ branches/bleeding_edge/src/mirror-delay.js  Mon Jun 22 06:14:47 2009
@@ -2232,6 +2232,15 @@
    if (!IS_UNDEFINED(source_line_text)) {
      content.sourceLineText = source_line_text;
    }
+
+  content.scopes = [];
+  for (var i = 0; i < mirror.scopeCount(); i++) {
+    var scope = mirror.scope(i);
+    content.scopes.push({
+      type: scope.scopeType(),
+      index: i
+    });
+  }
  }



--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to