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 | 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 | 172 |
173 | 173 |
174 // A copy of the PropertyType enum from property-details.h | 174 // A copy of the PropertyType enum from property-details.h |
175 var PropertyType = {}; | 175 var PropertyType = {}; |
176 PropertyType.Normal = 0; | 176 PropertyType.Normal = 0; |
177 PropertyType.Field = 1; | 177 PropertyType.Field = 1; |
178 PropertyType.Constant = 2; | 178 PropertyType.Constant = 2; |
179 PropertyType.Callbacks = 3; | 179 PropertyType.Callbacks = 3; |
180 PropertyType.Handler = 4; | 180 PropertyType.Handler = 4; |
181 PropertyType.Interceptor = 5; | 181 PropertyType.Interceptor = 5; |
182 PropertyType.Nonexistent = 6; | |
183 | 182 |
184 | 183 |
185 // Different attributes for a property. | 184 // Different attributes for a property. |
186 var PropertyAttribute = {}; | 185 var PropertyAttribute = {}; |
187 PropertyAttribute.None = NONE; | 186 PropertyAttribute.None = NONE; |
188 PropertyAttribute.ReadOnly = READ_ONLY; | 187 PropertyAttribute.ReadOnly = READ_ONLY; |
189 PropertyAttribute.DontEnum = DONT_ENUM; | 188 PropertyAttribute.DontEnum = DONT_ENUM; |
190 PropertyAttribute.DontDelete = DONT_DELETE; | 189 PropertyAttribute.DontDelete = DONT_DELETE; |
191 | 190 |
192 | 191 |
(...skipping 2686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2879 } | 2878 } |
2880 if (!NUMBER_IS_FINITE(value)) { | 2879 if (!NUMBER_IS_FINITE(value)) { |
2881 if (value > 0) { | 2880 if (value > 0) { |
2882 return 'Infinity'; | 2881 return 'Infinity'; |
2883 } else { | 2882 } else { |
2884 return '-Infinity'; | 2883 return '-Infinity'; |
2885 } | 2884 } |
2886 } | 2885 } |
2887 return value; | 2886 return value; |
2888 } | 2887 } |
OLD | NEW |