OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 (function (global, utils) { | 5 (function (global, utils) { |
6 "use strict"; | 6 "use strict"; |
7 | 7 |
8 // ---------------------------------------------------------------------------- | 8 // ---------------------------------------------------------------------------- |
9 // Imports | 9 // Imports |
10 | 10 |
(...skipping 1124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1135 if (!IS_UNDEFINED(script.data())) { | 1135 if (!IS_UNDEFINED(script.data())) { |
1136 o.data = script.data(); | 1136 o.data = script.data(); |
1137 } | 1137 } |
1138 if (include_source) { | 1138 if (include_source) { |
1139 o.source = script.source(); | 1139 o.source = script.source(); |
1140 } | 1140 } |
1141 return o; | 1141 return o; |
1142 } | 1142 } |
1143 | 1143 |
1144 | 1144 |
1145 function MakeAsyncTaskEvent(event_data) { | 1145 function MakeAsyncTaskEvent(type, id, name) { |
1146 return new AsyncTaskEvent(event_data); | 1146 return new AsyncTaskEvent(type, id, name); |
1147 } | 1147 } |
1148 | 1148 |
1149 | 1149 |
1150 function AsyncTaskEvent(event_data) { | 1150 function AsyncTaskEvent(type, id, name) { |
1151 this.type_ = event_data.type; | 1151 this.type_ = type; |
1152 this.name_ = event_data.name; | 1152 this.id_ = id; |
1153 this.id_ = event_data.id; | 1153 this.name_ = name; |
1154 } | 1154 } |
1155 | 1155 |
1156 | 1156 |
1157 AsyncTaskEvent.prototype.type = function() { | 1157 AsyncTaskEvent.prototype.type = function() { |
1158 return this.type_; | 1158 return this.type_; |
1159 } | 1159 } |
1160 | 1160 |
1161 | 1161 |
1162 AsyncTaskEvent.prototype.name = function() { | 1162 AsyncTaskEvent.prototype.name = function() { |
1163 return this.name_; | 1163 return this.name_; |
(...skipping 1311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2475 "IsBreakPointTriggered", IsBreakPointTriggered, | 2475 "IsBreakPointTriggered", IsBreakPointTriggered, |
2476 "UpdateScriptBreakPoints", UpdateScriptBreakPoints, | 2476 "UpdateScriptBreakPoints", UpdateScriptBreakPoints, |
2477 ]); | 2477 ]); |
2478 | 2478 |
2479 // Export to liveedit.js | 2479 // Export to liveedit.js |
2480 utils.Export(function(to) { | 2480 utils.Export(function(to) { |
2481 to.GetScriptBreakPoints = GetScriptBreakPoints; | 2481 to.GetScriptBreakPoints = GetScriptBreakPoints; |
2482 }); | 2482 }); |
2483 | 2483 |
2484 }) | 2484 }) |
OLD | NEW |