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

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

Issue 2415023002: [promises] Move async debug event creation to c++ (Closed)
Patch Set: rebase Created 4 years, 2 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
« no previous file with comments | « src/debug/debug.cc ('k') | src/factory.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 // 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
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
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 })
OLDNEW
« no previous file with comments | « src/debug/debug.cc ('k') | src/factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698