| 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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 PropertyAttribute.ReadOnly = READ_ONLY; | 188 PropertyAttribute.ReadOnly = READ_ONLY; |
| 189 PropertyAttribute.DontEnum = DONT_ENUM; | 189 PropertyAttribute.DontEnum = DONT_ENUM; |
| 190 PropertyAttribute.DontDelete = DONT_DELETE; | 190 PropertyAttribute.DontDelete = DONT_DELETE; |
| 191 | 191 |
| 192 | 192 |
| 193 // A copy of the scope types from runtime.cc. | 193 // A copy of the scope types from runtime.cc. |
| 194 ScopeType = { Global: 0, | 194 ScopeType = { Global: 0, |
| 195 Local: 1, | 195 Local: 1, |
| 196 With: 2, | 196 With: 2, |
| 197 Closure: 3, | 197 Closure: 3, |
| 198 Catch: 4 }; | 198 Catch: 4, |
| 199 Block: 5 }; |
| 199 | 200 |
| 200 | 201 |
| 201 // Mirror hierarchy: | 202 // Mirror hierarchy: |
| 202 // - Mirror | 203 // - Mirror |
| 203 // - ValueMirror | 204 // - ValueMirror |
| 204 // - UndefinedMirror | 205 // - UndefinedMirror |
| 205 // - NullMirror | 206 // - NullMirror |
| 206 // - NumberMirror | 207 // - NumberMirror |
| 207 // - StringMirror | 208 // - StringMirror |
| 208 // - ObjectMirror | 209 // - ObjectMirror |
| (...skipping 2210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2419 } | 2420 } |
| 2420 if (!NUMBER_IS_FINITE(value)) { | 2421 if (!NUMBER_IS_FINITE(value)) { |
| 2421 if (value > 0) { | 2422 if (value > 0) { |
| 2422 return 'Infinity'; | 2423 return 'Infinity'; |
| 2423 } else { | 2424 } else { |
| 2424 return '-Infinity'; | 2425 return '-Infinity'; |
| 2425 } | 2426 } |
| 2426 } | 2427 } |
| 2427 return value; | 2428 return value; |
| 2428 } | 2429 } |
| OLD | NEW |