OLD | NEW |
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 "use strict"; | 4 "use strict"; |
5 | 5 |
6 // Handle id counters. | 6 // Handle id counters. |
7 var next_handle_ = 0; | 7 var next_handle_ = 0; |
8 var next_transient_handle_ = -1; | 8 var next_transient_handle_ = -1; |
9 | 9 |
10 // Mirror cache. | 10 // Mirror cache. |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 // Different kind of properties. | 175 // Different kind of properties. |
176 var PropertyKind = {}; | 176 var PropertyKind = {}; |
177 PropertyKind.Named = 1; | 177 PropertyKind.Named = 1; |
178 PropertyKind.Indexed = 2; | 178 PropertyKind.Indexed = 2; |
179 | 179 |
180 | 180 |
181 // A copy of the PropertyType enum from property-details.h | 181 // A copy of the PropertyType enum from property-details.h |
182 var PropertyType = {}; | 182 var PropertyType = {}; |
183 PropertyType.Field = 0; | 183 PropertyType.Field = 0; |
184 PropertyType.Constant = 1; | 184 PropertyType.Constant = 1; |
185 PropertyType.Callbacks = 2; | 185 PropertyType.Callbacks = 3; |
186 | 186 |
187 | 187 |
188 // Different attributes for a property. | 188 // Different attributes for a property. |
189 var PropertyAttribute = {}; | 189 var PropertyAttribute = {}; |
190 PropertyAttribute.None = NONE; | 190 PropertyAttribute.None = NONE; |
191 PropertyAttribute.ReadOnly = READ_ONLY; | 191 PropertyAttribute.ReadOnly = READ_ONLY; |
192 PropertyAttribute.DontEnum = DONT_ENUM; | 192 PropertyAttribute.DontEnum = DONT_ENUM; |
193 PropertyAttribute.DontDelete = DONT_DELETE; | 193 PropertyAttribute.DontDelete = DONT_DELETE; |
194 | 194 |
195 | 195 |
(...skipping 2848 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3044 } | 3044 } |
3045 if (!NUMBER_IS_FINITE(value)) { | 3045 if (!NUMBER_IS_FINITE(value)) { |
3046 if (value > 0) { | 3046 if (value > 0) { |
3047 return 'Infinity'; | 3047 return 'Infinity'; |
3048 } else { | 3048 } else { |
3049 return '-Infinity'; | 3049 return '-Infinity'; |
3050 } | 3050 } |
3051 } | 3051 } |
3052 return value; | 3052 return value; |
3053 } | 3053 } |
OLD | NEW |