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

Side by Side Diff: src/prologue.js

Issue 1282793002: Debugger: load debugger builtins as normal native JS. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: use InstallFunctions and InstallConstants Created 5 years, 4 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/messages.h ('k') | src/string.js » ('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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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 6
7 "use strict"; 7 "use strict";
8 8
9 %CheckIsBootstrapping(); 9 %CheckIsBootstrapping();
10 10
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 imports(experimental_exports); 202 imports(experimental_exports);
203 } 203 }
204 for ( ; !IS_UNDEFINED(imports_from_experimental); 204 for ( ; !IS_UNDEFINED(imports_from_experimental);
205 imports_from_experimental = imports_from_experimental.next) { 205 imports_from_experimental = imports_from_experimental.next) {
206 imports_from_experimental(experimental_exports); 206 imports_from_experimental(experimental_exports);
207 } 207 }
208 208
209 experimental_exports = UNDEFINED; 209 experimental_exports = UNDEFINED;
210 210
211 utils.PostExperimentals = UNDEFINED; 211 utils.PostExperimentals = UNDEFINED;
212 utils.PostDebug = UNDEFINED;
213 utils.Import = UNDEFINED;
214 utils.Export = UNDEFINED;
215 };
216
217
218 function PostDebug(utils) {
219 for ( ; !IS_UNDEFINED(exports); exports = exports.next) {
220 exports(experimental_exports);
221 }
222 for ( ; !IS_UNDEFINED(imports); imports = imports.next) {
223 imports(experimental_exports);
224 }
225
226 utils.PostDebug = UNDEFINED;
227 utils.PostExperimentals = UNDEFINED;
212 utils.Import = UNDEFINED; 228 utils.Import = UNDEFINED;
213 utils.Export = UNDEFINED; 229 utils.Export = UNDEFINED;
214 }; 230 };
215 231
216 // ----------------------------------------------------------------------- 232 // -----------------------------------------------------------------------
217 233
218 InstallFunctions(utils, NONE, [ 234 InstallFunctions(utils, NONE, [
219 "Import", Import, 235 "Import", Import,
220 "Export", Export, 236 "Export", Export,
221 "ImportFromExperimental", ImportFromExperimental, 237 "ImportFromExperimental", ImportFromExperimental,
222 "SetFunctionName", SetFunctionName, 238 "SetFunctionName", SetFunctionName,
223 "InstallConstants", InstallConstants, 239 "InstallConstants", InstallConstants,
224 "InstallFunctions", InstallFunctions, 240 "InstallFunctions", InstallFunctions,
225 "InstallGetter", InstallGetter, 241 "InstallGetter", InstallGetter,
226 "InstallGetterSetter", InstallGetterSetter, 242 "InstallGetterSetter", InstallGetterSetter,
227 "SetUpLockedPrototype", SetUpLockedPrototype, 243 "SetUpLockedPrototype", SetUpLockedPrototype,
228 "PostNatives", PostNatives, 244 "PostNatives", PostNatives,
229 "PostExperimentals", PostExperimentals, 245 "PostExperimentals", PostExperimentals,
246 "PostDebug", PostDebug,
230 ]); 247 ]);
231 248
232 }) 249 })
OLDNEW
« no previous file with comments | « src/messages.h ('k') | src/string.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698