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

Unified Diff: src/debug-debugger.js

Issue 352583008: Rollback to Version 3.28.4 (based on bleeding_edge revision r22031) (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 6 years, 6 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') | src/heap.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/debug-debugger.js
diff --git a/src/debug-debugger.js b/src/debug-debugger.js
index 6cd1baa61e44bb6af4c8b9b2e481170f5cd8b7ec..aa370f0c3ea99fc9cecd88fcead1b00dd2cbcdc8 100644
--- a/src/debug-debugger.js
+++ b/src/debug-debugger.js
@@ -19,8 +19,7 @@ Debug.DebugEvent = { Break: 1,
NewFunction: 3,
BeforeCompile: 4,
AfterCompile: 5,
- ScriptCollected: 6,
- CompileError: 7 };
+ ScriptCollected: 6 };
// Types of exceptions that can be broken upon.
Debug.ExceptionBreak = { Caught : 0,
@@ -1144,19 +1143,23 @@ ExceptionEvent.prototype.toJSONProtocol = function() {
};
-function MakeCompileEvent(script, type) {
- return new CompileEvent(script, type);
+function MakeCompileEvent(script, before) {
+ return new CompileEvent(script, before);
}
-function CompileEvent(script, type) {
+function CompileEvent(script, before) {
this.script_ = MakeMirror(script);
- this.type_ = type;
+ this.before_ = before;
}
CompileEvent.prototype.eventType = function() {
- return this.type_;
+ if (this.before_) {
+ return Debug.DebugEvent.BeforeCompile;
+ } else {
+ return Debug.DebugEvent.AfterCompile;
+ }
};
@@ -1168,13 +1171,10 @@ CompileEvent.prototype.script = function() {
CompileEvent.prototype.toJSONProtocol = function() {
var o = new ProtocolMessage();
o.running = true;
- switch (this.type_) {
- case Debug.DebugEvent.BeforeCompile:
- o.event = "beforeCompile";
- case Debug.DebugEvent.AfterCompile:
- o.event = "afterCompile";
- case Debug.DebugEvent.CompileError:
- o.event = "compileError";
+ if (this.before_) {
+ o.event = "beforeCompile";
+ } else {
+ o.event = "afterCompile";
}
o.body = {};
o.body.script = this.script_;
« no previous file with comments | « src/debug.cc ('k') | src/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698