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

Side by Side Diff: src/mirror-debugger.js

Issue 653603002: Try to fix cross-script global scope (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/globals.h ('k') | src/parser.cc » ('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 // Handle id counters. 5 // Handle id counters.
6 var next_handle_ = 0; 6 var next_handle_ = 0;
7 var next_transient_handle_ = -1; 7 var next_transient_handle_ = -1;
8 8
9 // Mirror cache. 9 // Mirror cache.
10 var mirror_cache_ = []; 10 var mirror_cache_ = [];
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 179
180 // Different attributes for a property. 180 // Different attributes for a property.
181 var PropertyAttribute = {}; 181 var PropertyAttribute = {};
182 PropertyAttribute.None = NONE; 182 PropertyAttribute.None = NONE;
183 PropertyAttribute.ReadOnly = READ_ONLY; 183 PropertyAttribute.ReadOnly = READ_ONLY;
184 PropertyAttribute.DontEnum = DONT_ENUM; 184 PropertyAttribute.DontEnum = DONT_ENUM;
185 PropertyAttribute.DontDelete = DONT_DELETE; 185 PropertyAttribute.DontDelete = DONT_DELETE;
186 186
187 187
188 // A copy of the scope types from runtime.cc. 188 // A copy of the scope types from runtime.cc.
189 var ScopeType = { Global: 0, 189 var ScopeType = { Global: 0, // named NativeScope internally
190 Local: 1, 190 GlobalLexical: 1, // named GlobalScope internally
191 With: 2, 191 Local: 2,
192 Closure: 3, 192 With: 3,
193 Catch: 4, 193 Closure: 4,
194 Block: 5 }; 194 Catch: 5,
195 Block: 6 };
195 196
196 197
197 // Mirror hierarchy: 198 // Mirror hierarchy:
198 // - Mirror 199 // - Mirror
199 // - ValueMirror 200 // - ValueMirror
200 // - UndefinedMirror 201 // - UndefinedMirror
201 // - NullMirror 202 // - NullMirror
202 // - NumberMirror 203 // - NumberMirror
203 // - StringMirror 204 // - StringMirror
204 // - SymbolMirror 205 // - SymbolMirror
(...skipping 2573 matching lines...) Expand 10 before | Expand all | Expand 10 after
2778 } 2779 }
2779 if (!NUMBER_IS_FINITE(value)) { 2780 if (!NUMBER_IS_FINITE(value)) {
2780 if (value > 0) { 2781 if (value > 0) {
2781 return 'Infinity'; 2782 return 'Infinity';
2782 } else { 2783 } else {
2783 return '-Infinity'; 2784 return '-Infinity';
2784 } 2785 }
2785 } 2786 }
2786 return value; 2787 return value;
2787 } 2788 }
OLDNEW
« no previous file with comments | « src/globals.h ('k') | src/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698