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 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 "use strict"; | 4 "use strict"; |
5 | 5 |
6 // Handle id counters. | 6 // Handle id counters. |
7 var next_handle_ = 0; | 7 var next_handle_ = 0; |
8 var next_transient_handle_ = -1; | 8 var next_transient_handle_ = -1; |
9 | 9 |
10 // Mirror cache. | 10 // Mirror cache. |
(...skipping 3006 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3017 } | 3017 } |
3018 if (!NUMBER_IS_FINITE(value)) { | 3018 if (!NUMBER_IS_FINITE(value)) { |
3019 if (value > 0) { | 3019 if (value > 0) { |
3020 return 'Infinity'; | 3020 return 'Infinity'; |
3021 } else { | 3021 } else { |
3022 return '-Infinity'; | 3022 return '-Infinity'; |
3023 } | 3023 } |
3024 } | 3024 } |
3025 return value; | 3025 return value; |
3026 } | 3026 } |
OLD | NEW |