OLD | NEW |
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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 PropertyKind.Named = 1; | 167 PropertyKind.Named = 1; |
168 PropertyKind.Indexed = 2; | 168 PropertyKind.Indexed = 2; |
169 | 169 |
170 | 170 |
171 // A copy of the PropertyType enum from global.h | 171 // A copy of the PropertyType enum from global.h |
172 PropertyType = {}; | 172 PropertyType = {}; |
173 PropertyType.Normal = 0; | 173 PropertyType.Normal = 0; |
174 PropertyType.Field = 1; | 174 PropertyType.Field = 1; |
175 PropertyType.ConstantFunction = 2; | 175 PropertyType.ConstantFunction = 2; |
176 PropertyType.Callbacks = 3; | 176 PropertyType.Callbacks = 3; |
177 PropertyType.Interceptor = 4; | 177 PropertyType.Handler = 4; |
178 PropertyType.MapTransition = 5; | 178 PropertyType.Interceptor = 5; |
179 PropertyType.ExternalArrayTransition = 6; | 179 PropertyType.MapTransition = 6; |
180 PropertyType.ConstantTransition = 7; | 180 PropertyType.ExternalArrayTransition = 7; |
181 PropertyType.NullDescriptor = 8; | 181 PropertyType.ConstantTransition = 8; |
| 182 PropertyType.NullDescriptor = 9; |
182 | 183 |
183 | 184 |
184 // Different attributes for a property. | 185 // Different attributes for a property. |
185 PropertyAttribute = {}; | 186 PropertyAttribute = {}; |
186 PropertyAttribute.None = NONE; | 187 PropertyAttribute.None = NONE; |
187 PropertyAttribute.ReadOnly = READ_ONLY; | 188 PropertyAttribute.ReadOnly = READ_ONLY; |
188 PropertyAttribute.DontEnum = DONT_ENUM; | 189 PropertyAttribute.DontEnum = DONT_ENUM; |
189 PropertyAttribute.DontDelete = DONT_DELETE; | 190 PropertyAttribute.DontDelete = DONT_DELETE; |
190 | 191 |
191 | 192 |
(...skipping 2180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2372 } | 2373 } |
2373 if (!NUMBER_IS_FINITE(value)) { | 2374 if (!NUMBER_IS_FINITE(value)) { |
2374 if (value > 0) { | 2375 if (value > 0) { |
2375 return 'Infinity'; | 2376 return 'Infinity'; |
2376 } else { | 2377 } else { |
2377 return '-Infinity'; | 2378 return '-Infinity'; |
2378 } | 2379 } |
2379 } | 2380 } |
2380 return value; | 2381 return value; |
2381 } | 2382 } |
OLD | NEW |