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

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

Issue 2112933002: Fix minor typo and delete unused import statement. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2012 the V8 project authors. All rights reserved. 1 // Copyright 2006-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
11 var ErrorToString; 11 var ErrorToString;
12 var GlobalArray = global.Array; 12 var GlobalArray = global.Array;
13 var IsNaN = global.isNaN; 13 var IsNaN = global.isNaN;
14 var JSONStringify = global.JSON.stringify; 14 var JSONStringify = global.JSON.stringify;
15 var MakeError; 15 var MakeError;
16 var MapEntries; 16 var MapEntries;
17 var MapIteratorNext; 17 var MapIteratorNext;
18 var MathMin = global.Math.min;
19 var promiseStateSymbol = utils.ImportNow("promise_state_symbol"); 18 var promiseStateSymbol = utils.ImportNow("promise_state_symbol");
20 var promiseResultSymbol = utils.ImportNow("promise_result_symbol"); 19 var promiseResultSymbol = utils.ImportNow("promise_result_symbol");
21 var SetIteratorNext; 20 var SetIteratorNext;
22 var SetValues; 21 var SetValues;
23 var SymbolToString; 22 var SymbolToString;
24 23
25 utils.Import(function(from) { 24 utils.Import(function(from) {
26 ErrorToString = from.ErrorToString; 25 ErrorToString = from.ErrorToString;
27 MakeError = from.MakeError; 26 MakeError = from.MakeError;
28 MapEntries = from.MapEntries; 27 MapEntries = from.MapEntries;
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 114
116 function ObjectIsPromise(value) { 115 function ObjectIsPromise(value) {
117 return IS_RECEIVER(value) && 116 return IS_RECEIVER(value) &&
118 !IS_UNDEFINED(%DebugGetProperty(value, promiseStateSymbol)); 117 !IS_UNDEFINED(%DebugGetProperty(value, promiseStateSymbol));
119 } 118 }
120 119
121 120
122 /** 121 /**
123 * Returns the mirror for a specified value or object. 122 * Returns the mirror for a specified value or object.
124 * 123 *
125 * @param {value or Object} value the value or object to retreive the mirror for 124 * @param {value or Object} value the value or object to retrieve the mirror for
126 * @param {boolean} transient indicate whether this object is transient and 125 * @param {boolean} transient indicate whether this object is transient and
127 * should not be added to the mirror cache. The default is not transient. 126 * should not be added to the mirror cache. The default is not transient.
128 * @returns {Mirror} the mirror reflects the passed value or object 127 * @returns {Mirror} the mirror reflects the passed value or object
129 */ 128 */
130 function MakeMirror(value, opt_transient) { 129 function MakeMirror(value, opt_transient) {
131 var mirror; 130 var mirror;
132 131
133 // Look for non transient mirrors in the mirror cache. 132 // Look for non transient mirrors in the mirror cache.
134 if (!opt_transient && mirror_cache_enabled_) { 133 if (!opt_transient && mirror_cache_enabled_) {
135 for (var id in mirror_cache_) { 134 for (var id in mirror_cache_) {
(...skipping 2912 matching lines...) Expand 10 before | Expand all | Expand 10 after
3048 // Functions needed by the debugger runtime. 3047 // Functions needed by the debugger runtime.
3049 utils.InstallFunctions(utils, DONT_ENUM, [ 3048 utils.InstallFunctions(utils, DONT_ENUM, [
3050 "ClearMirrorCache", ClearMirrorCache 3049 "ClearMirrorCache", ClearMirrorCache
3051 ]); 3050 ]);
3052 3051
3053 // Export to debug.js 3052 // Export to debug.js
3054 utils.Export(function(to) { 3053 utils.Export(function(to) {
3055 to.MirrorType = MirrorType; 3054 to.MirrorType = MirrorType;
3056 }); 3055 });
3057 }) 3056 })
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698