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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 const kMaxProtocolStringLength = 80; | 163 const kMaxProtocolStringLength = 80; |
164 | 164 |
165 // Different kind of properties. | 165 // Different kind of properties. |
166 PropertyKind = {}; | 166 PropertyKind = {}; |
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.Interceptor = 4; |
178 PropertyType.MapTransition = 5; | 178 PropertyType.MapTransition = 5; |
179 PropertyType.ConstantTransition = 6; | 179 PropertyType.ExternalArrayTransition = 6; |
180 PropertyType.NullDescriptor = 7; | 180 PropertyType.ConstantTransition = 7; |
| 181 PropertyType.NullDescriptor = 8; |
181 | 182 |
182 | 183 |
183 // Different attributes for a property. | 184 // Different attributes for a property. |
184 PropertyAttribute = {}; | 185 PropertyAttribute = {}; |
185 PropertyAttribute.None = NONE; | 186 PropertyAttribute.None = NONE; |
186 PropertyAttribute.ReadOnly = READ_ONLY; | 187 PropertyAttribute.ReadOnly = READ_ONLY; |
187 PropertyAttribute.DontEnum = DONT_ENUM; | 188 PropertyAttribute.DontEnum = DONT_ENUM; |
188 PropertyAttribute.DontDelete = DONT_DELETE; | 189 PropertyAttribute.DontDelete = DONT_DELETE; |
189 | 190 |
190 | 191 |
(...skipping 2180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2371 } | 2372 } |
2372 if (!NUMBER_IS_FINITE(value)) { | 2373 if (!NUMBER_IS_FINITE(value)) { |
2373 if (value > 0) { | 2374 if (value > 0) { |
2374 return 'Infinity'; | 2375 return 'Infinity'; |
2375 } else { | 2376 } else { |
2376 return '-Infinity'; | 2377 return '-Infinity'; |
2377 } | 2378 } |
2378 } | 2379 } |
2379 return value; | 2380 return value; |
2380 } | 2381 } |
OLD | NEW |