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

Side by Side Diff: src/debug-debugger.js

Issue 231883007: Return MaybeHandle from Invoke. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/debug.cc ('k') | src/execution.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1199 matching lines...) Expand 10 before | Expand all | Expand 10 after
1210 } else { 1210 } else {
1211 o.event = "afterCompile"; 1211 o.event = "afterCompile";
1212 } 1212 }
1213 o.body = {}; 1213 o.body = {};
1214 o.body.script = this.script_; 1214 o.body.script = this.script_;
1215 1215
1216 return o.toJSONProtocol(); 1216 return o.toJSONProtocol();
1217 }; 1217 };
1218 1218
1219 1219
1220 function MakeNewFunctionEvent(func) {
1221 return new NewFunctionEvent(func);
1222 }
1223
1224
1225 function NewFunctionEvent(func) {
1226 this.func = func;
1227 }
1228
1229
1230 NewFunctionEvent.prototype.eventType = function() {
1231 return Debug.DebugEvent.NewFunction;
1232 };
1233
1234
1235 NewFunctionEvent.prototype.name = function() {
1236 return this.func.name;
1237 };
1238
1239
1240 NewFunctionEvent.prototype.setBreakPoint = function(p) {
1241 Debug.setBreakPoint(this.func, p || 0);
1242 };
1243
1244
1245 function MakeScriptCollectedEvent(exec_state, id) { 1220 function MakeScriptCollectedEvent(exec_state, id) {
1246 return new ScriptCollectedEvent(exec_state, id); 1221 return new ScriptCollectedEvent(exec_state, id);
1247 } 1222 }
1248 1223
1249 1224
1250 function ScriptCollectedEvent(exec_state, id) { 1225 function ScriptCollectedEvent(exec_state, id) {
1251 this.exec_state_ = exec_state; 1226 this.exec_state_ = exec_state;
1252 this.id_ = id; 1227 this.id_ = id;
1253 } 1228 }
1254 1229
(...skipping 1379 matching lines...) Expand 10 before | Expand all | Expand 10 after
2634 2609
2635 default: 2610 default:
2636 json = null; 2611 json = null;
2637 } 2612 }
2638 return json; 2613 return json;
2639 } 2614 }
2640 2615
2641 Debug.TestApi = { 2616 Debug.TestApi = {
2642 CommandProcessorResolveValue: DebugCommandProcessor.resolveValue_ 2617 CommandProcessorResolveValue: DebugCommandProcessor.resolveValue_
2643 }; 2618 };
OLDNEW
« no previous file with comments | « src/debug.cc ('k') | src/execution.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698