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 // 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 var PropertyType = {}; | 172 var 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.Handler = 4; | 177 PropertyType.Handler = 4; |
178 PropertyType.Interceptor = 5; | 178 PropertyType.Interceptor = 5; |
179 PropertyType.MapTransition = 6; | 179 PropertyType.Transition = 6; |
180 PropertyType.ExternalArrayTransition = 7; | 180 PropertyType.Nonexistent = 7; |
181 PropertyType.ConstantTransition = 8; | |
182 PropertyType.NullDescriptor = 9; | |
183 | 181 |
184 | 182 |
185 // Different attributes for a property. | 183 // Different attributes for a property. |
186 var PropertyAttribute = {}; | 184 var PropertyAttribute = {}; |
187 PropertyAttribute.None = NONE; | 185 PropertyAttribute.None = NONE; |
188 PropertyAttribute.ReadOnly = READ_ONLY; | 186 PropertyAttribute.ReadOnly = READ_ONLY; |
189 PropertyAttribute.DontEnum = DONT_ENUM; | 187 PropertyAttribute.DontEnum = DONT_ENUM; |
190 PropertyAttribute.DontDelete = DONT_DELETE; | 188 PropertyAttribute.DontDelete = DONT_DELETE; |
191 | 189 |
192 | 190 |
(...skipping 2306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2499 } | 2497 } |
2500 if (!NUMBER_IS_FINITE(value)) { | 2498 if (!NUMBER_IS_FINITE(value)) { |
2501 if (value > 0) { | 2499 if (value > 0) { |
2502 return 'Infinity'; | 2500 return 'Infinity'; |
2503 } else { | 2501 } else { |
2504 return '-Infinity'; | 2502 return '-Infinity'; |
2505 } | 2503 } |
2506 } | 2504 } |
2507 return value; | 2505 return value; |
2508 } | 2506 } |
OLD | NEW |