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

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

Issue 1531843003: Rename IS_SPEC_OBJECT macro to IS_RECEIVER. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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 | src/js/array.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 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
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 } 109 }
110 110
111 111
112 function ClearMirrorCache(value) { 112 function ClearMirrorCache(value) {
113 next_handle_ = 0; 113 next_handle_ = 0;
114 mirror_cache_ = []; 114 mirror_cache_ = [];
115 } 115 }
116 116
117 117
118 function ObjectIsPromise(value) { 118 function ObjectIsPromise(value) {
119 return IS_SPEC_OBJECT(value) && 119 return IS_RECEIVER(value) &&
120 !IS_UNDEFINED(%DebugGetProperty(value, promiseStatusSymbol)); 120 !IS_UNDEFINED(%DebugGetProperty(value, promiseStatusSymbol));
121 } 121 }
122 122
123 123
124 /** 124 /**
125 * Returns the mirror for a specified value or object. 125 * Returns the mirror for a specified value or object.
126 * 126 *
127 * @param {value or Object} value the value or object to retreive the mirror for 127 * @param {value or Object} value the value or object to retreive the mirror for
128 * @param {boolean} transient indicate whether this object is transient and 128 * @param {boolean} transient indicate whether this object is transient and
129 * should not be added to the mirror cache. The default is not transient. 129 * should not be added to the mirror cache. The default is not transient.
(...skipping 2916 matching lines...) Expand 10 before | Expand all | Expand 10 after
3046 // Functions needed by the debugger runtime. 3046 // Functions needed by the debugger runtime.
3047 utils.InstallFunctions(utils, DONT_ENUM, [ 3047 utils.InstallFunctions(utils, DONT_ENUM, [
3048 "ClearMirrorCache", ClearMirrorCache 3048 "ClearMirrorCache", ClearMirrorCache
3049 ]); 3049 ]);
3050 3050
3051 // Export to debug.js 3051 // Export to debug.js
3052 utils.Export(function(to) { 3052 utils.Export(function(to) {
3053 to.MirrorType = MirrorType; 3053 to.MirrorType = MirrorType;
3054 }); 3054 });
3055 }) 3055 })
OLDNEW
« no previous file with comments | « no previous file | src/js/array.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698