| 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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 PropertyAttribute.None = NONE; | 194 PropertyAttribute.None = NONE; |
| 195 PropertyAttribute.ReadOnly = READ_ONLY; | 195 PropertyAttribute.ReadOnly = READ_ONLY; |
| 196 PropertyAttribute.DontEnum = DONT_ENUM; | 196 PropertyAttribute.DontEnum = DONT_ENUM; |
| 197 PropertyAttribute.DontDelete = DONT_DELETE; | 197 PropertyAttribute.DontDelete = DONT_DELETE; |
| 198 | 198 |
| 199 | 199 |
| 200 // A copy of the scope types from runtime.cc. | 200 // A copy of the scope types from runtime.cc. |
| 201 ScopeType = { Global: 0, | 201 ScopeType = { Global: 0, |
| 202 Local: 1, | 202 Local: 1, |
| 203 With: 2, | 203 With: 2, |
| 204 Closure: 3 }; | 204 Closure: 3, |
| 205 Catch: 4 }; |
| 205 | 206 |
| 206 | 207 |
| 207 // Mirror hierarchy: | 208 // Mirror hierarchy: |
| 208 // - Mirror | 209 // - Mirror |
| 209 // - ValueMirror | 210 // - ValueMirror |
| 210 // - UndefinedMirror | 211 // - UndefinedMirror |
| 211 // - NullMirror | 212 // - NullMirror |
| 212 // - NumberMirror | 213 // - NumberMirror |
| 213 // - StringMirror | 214 // - StringMirror |
| 214 // - ObjectMirror | 215 // - ObjectMirror |
| (...skipping 2054 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2269 } | 2270 } |
| 2270 if (!isFinite(value)) { | 2271 if (!isFinite(value)) { |
| 2271 if (value > 0) { | 2272 if (value > 0) { |
| 2272 return 'Infinity'; | 2273 return 'Infinity'; |
| 2273 } else { | 2274 } else { |
| 2274 return '-Infinity'; | 2275 return '-Infinity'; |
| 2275 } | 2276 } |
| 2276 } | 2277 } |
| 2277 return value; | 2278 return value; |
| 2278 } | 2279 } |
| OLD | NEW |