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

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

Issue 7549008: Preliminary code for block scopes and block contexts. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Small fix: set harmony flag properly Created 9 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 | Annotate | Revision Log
« no previous file with comments | « src/hydrogen.cc ('k') | src/objects.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 PropertyAttribute.ReadOnly = READ_ONLY; 188 PropertyAttribute.ReadOnly = READ_ONLY;
189 PropertyAttribute.DontEnum = DONT_ENUM; 189 PropertyAttribute.DontEnum = DONT_ENUM;
190 PropertyAttribute.DontDelete = DONT_DELETE; 190 PropertyAttribute.DontDelete = DONT_DELETE;
191 191
192 192
193 // A copy of the scope types from runtime.cc. 193 // A copy of the scope types from runtime.cc.
194 ScopeType = { Global: 0, 194 ScopeType = { Global: 0,
195 Local: 1, 195 Local: 1,
196 With: 2, 196 With: 2,
197 Closure: 3, 197 Closure: 3,
198 Catch: 4 }; 198 Catch: 4,
199 Block: 5 };
199 200
200 201
201 // Mirror hierarchy: 202 // Mirror hierarchy:
202 // - Mirror 203 // - Mirror
203 // - ValueMirror 204 // - ValueMirror
204 // - UndefinedMirror 205 // - UndefinedMirror
205 // - NullMirror 206 // - NullMirror
206 // - NumberMirror 207 // - NumberMirror
207 // - StringMirror 208 // - StringMirror
208 // - ObjectMirror 209 // - ObjectMirror
(...skipping 2210 matching lines...) Expand 10 before | Expand all | Expand 10 after
2419 } 2420 }
2420 if (!NUMBER_IS_FINITE(value)) { 2421 if (!NUMBER_IS_FINITE(value)) {
2421 if (value > 0) { 2422 if (value > 0) {
2422 return 'Infinity'; 2423 return 'Infinity';
2423 } else { 2424 } else {
2424 return '-Infinity'; 2425 return '-Infinity';
2425 } 2426 }
2426 } 2427 }
2427 return value; 2428 return value;
2428 } 2429 }
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698