| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 1002 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1013 | 1013 |
| 1014 Handle<Object> Factory::NewNumberFromUint(uint32_t value, | 1014 Handle<Object> Factory::NewNumberFromUint(uint32_t value, |
| 1015 PretenureFlag pretenure) { | 1015 PretenureFlag pretenure) { |
| 1016 CALL_HEAP_FUNCTION( | 1016 CALL_HEAP_FUNCTION( |
| 1017 isolate(), | 1017 isolate(), |
| 1018 isolate()->heap()->NumberFromUint32(value, pretenure), Object); | 1018 isolate()->heap()->NumberFromUint32(value, pretenure), Object); |
| 1019 } | 1019 } |
| 1020 | 1020 |
| 1021 | 1021 |
| 1022 Handle<HeapNumber> Factory::NewHeapNumber(double value, | 1022 Handle<HeapNumber> Factory::NewHeapNumber(double value, |
| 1023 MutableMode mode, |
| 1023 PretenureFlag pretenure) { | 1024 PretenureFlag pretenure) { |
| 1024 CALL_HEAP_FUNCTION( | 1025 CALL_HEAP_FUNCTION( |
| 1025 isolate(), | 1026 isolate(), |
| 1026 isolate()->heap()->AllocateHeapNumber(value, pretenure), HeapNumber); | 1027 isolate()->heap()->AllocateHeapNumber(value, mode, pretenure), |
| 1028 HeapNumber); |
| 1027 } | 1029 } |
| 1028 | 1030 |
| 1029 | 1031 |
| 1030 Handle<JSObject> Factory::NewNeanderObject() { | 1032 Handle<JSObject> Factory::NewNeanderObject() { |
| 1031 CALL_HEAP_FUNCTION( | 1033 CALL_HEAP_FUNCTION( |
| 1032 isolate(), | 1034 isolate(), |
| 1033 isolate()->heap()->AllocateJSObjectFromMap( | 1035 isolate()->heap()->AllocateJSObjectFromMap( |
| 1034 isolate()->heap()->neander_map()), | 1036 isolate()->heap()->neander_map()), |
| 1035 JSObject); | 1037 JSObject); |
| 1036 } | 1038 } |
| (...skipping 981 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2018 return Handle<Object>::null(); | 2020 return Handle<Object>::null(); |
| 2019 } | 2021 } |
| 2020 | 2022 |
| 2021 | 2023 |
| 2022 Handle<Object> Factory::ToBoolean(bool value) { | 2024 Handle<Object> Factory::ToBoolean(bool value) { |
| 2023 return value ? true_value() : false_value(); | 2025 return value ? true_value() : false_value(); |
| 2024 } | 2026 } |
| 2025 | 2027 |
| 2026 | 2028 |
| 2027 } } // namespace v8::internal | 2029 } } // namespace v8::internal |
| OLD | NEW |