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 1009 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1020 | 1020 |
1021 | 1021 |
1022 Handle<HeapNumber> Factory::NewHeapNumber(double value, | 1022 Handle<HeapNumber> Factory::NewHeapNumber(double value, |
1023 PretenureFlag pretenure) { | 1023 PretenureFlag pretenure) { |
1024 CALL_HEAP_FUNCTION( | 1024 CALL_HEAP_FUNCTION( |
1025 isolate(), | 1025 isolate(), |
1026 isolate()->heap()->AllocateHeapNumber(value, pretenure), HeapNumber); | 1026 isolate()->heap()->AllocateHeapNumber(value, pretenure), HeapNumber); |
1027 } | 1027 } |
1028 | 1028 |
1029 | 1029 |
| 1030 Handle<HeapNumber> Factory::NewMutableHeapNumber(double value, |
| 1031 PretenureFlag pretenure) { |
| 1032 CALL_HEAP_FUNCTION( |
| 1033 isolate(), |
| 1034 isolate()->heap()->AllocateMutableHeapNumber(value, pretenure), |
| 1035 HeapNumber); |
| 1036 } |
| 1037 |
| 1038 |
1030 Handle<JSObject> Factory::NewNeanderObject() { | 1039 Handle<JSObject> Factory::NewNeanderObject() { |
1031 CALL_HEAP_FUNCTION( | 1040 CALL_HEAP_FUNCTION( |
1032 isolate(), | 1041 isolate(), |
1033 isolate()->heap()->AllocateJSObjectFromMap( | 1042 isolate()->heap()->AllocateJSObjectFromMap( |
1034 isolate()->heap()->neander_map()), | 1043 isolate()->heap()->neander_map()), |
1035 JSObject); | 1044 JSObject); |
1036 } | 1045 } |
1037 | 1046 |
1038 | 1047 |
1039 Handle<Object> Factory::NewTypeError(const char* message, | 1048 Handle<Object> Factory::NewTypeError(const char* message, |
(...skipping 977 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2017 return Handle<Object>::null(); | 2026 return Handle<Object>::null(); |
2018 } | 2027 } |
2019 | 2028 |
2020 | 2029 |
2021 Handle<Object> Factory::ToBoolean(bool value) { | 2030 Handle<Object> Factory::ToBoolean(bool value) { |
2022 return value ? true_value() : false_value(); | 2031 return value ? true_value() : false_value(); |
2023 } | 2032 } |
2024 | 2033 |
2025 | 2034 |
2026 } } // namespace v8::internal | 2035 } } // namespace v8::internal |
OLD | NEW |