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

Unified Diff: src/debug-delay.js

Issue 21076: Fixed the debugger compile events.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 10 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-compile-event.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/debug-delay.js
===================================================================
--- src/debug-delay.js (revision 1222)
+++ src/debug-delay.js (working copy)
@@ -896,28 +896,37 @@
};
-function MakeCompileEvent(script_source, script_name, script_function, before) {
- return new CompileEvent(script_source, script_name, script_function, before);
+function MakeCompileEvent(exec_state, script, before) {
+ return new CompileEvent(exec_state, script, before);
}
-function CompileEvent(script_source, script_name, script_function, before) {
- this.scriptSource = script_source;
- this.scriptName = script_name;
- this.scriptFunction = script_function;
- this.before = before;
+function CompileEvent(exec_state, script, before) {
+ this.exec_state_ = exec_state;
+ this.script_ = MakeMirror(script);
+ this.before_ = before;
}
+CompileEvent.prototype.executionState = function() {
+ return this.exec_state_;
+};
+
+
CompileEvent.prototype.eventType = function() {
- if (this.before) {
- return Debug.DebugEvent.BeforeComplie;
+ if (this.before_) {
+ return Debug.DebugEvent.BeforeCompile;
} else {
- return Debug.DebugEvent.AfterComplie;
+ return Debug.DebugEvent.AfterCompile;
}
};
+CompileEvent.prototype.script = function() {
+ return this.script_;
+};
+
+
function MakeNewFunctionEvent(func) {
return new NewFunctionEvent(func);
}
« no previous file with comments | « src/debug.cc ('k') | test/mjsunit/debug-compile-event.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698