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

Side by Side Diff: src/d8.js

Issue 358873005: Remove script collected debug event. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/compiler.cc ('k') | src/debug.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 2008 the V8 project authors. All rights reserved. 1 // Copyright 2008 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 "use strict"; 5 "use strict";
6 6
7 String.prototype.startsWith = function (str) { 7 String.prototype.startsWith = function (str) {
8 if (str.length > this.length) { 8 if (str.length > this.length) {
9 return false; 9 return false;
10 } 10 }
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 var source = body.script.source; 201 var source = body.script.source;
202 if (!(source[source.length - 1] == '\n')) { 202 if (!(source[source.length - 1] == '\n')) {
203 result += source; 203 result += source;
204 } else { 204 } else {
205 result += source.substring(0, source.length - 1); 205 result += source.substring(0, source.length - 1);
206 } 206 }
207 } 207 }
208 details.text = result; 208 details.text = result;
209 break; 209 break;
210 210
211 case 'scriptCollected':
212 details.text = result;
213 break;
214
215 default: 211 default:
216 details.text = 'Unknown debug event ' + response.event(); 212 details.text = 'Unknown debug event ' + response.event();
217 } 213 }
218 214
219 return details; 215 return details;
220 } 216 }
221 217
222 218
223 function SourceInfo(body) { 219 function SourceInfo(body) {
224 var result = ''; 220 var result = '';
(...skipping 1788 matching lines...) Expand 10 before | Expand all | Expand 10 after
2013 if ("set" in desc) { 2009 if ("set" in desc) {
2014 var setter = desc.set.toString(); 2010 var setter = desc.set.toString();
2015 props.push("set " + name + setter.slice(setter.indexOf('('))); 2011 props.push("set " + name + setter.slice(setter.indexOf('(')));
2016 } 2012 }
2017 } 2013 }
2018 return "{" + props.join(", ") + "}"; 2014 return "{" + props.join(", ") + "}";
2019 default: 2015 default:
2020 return "[crazy non-standard shit]"; 2016 return "[crazy non-standard shit]";
2021 } 2017 }
2022 } 2018 }
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | src/debug.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698