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 1013 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1024 | 1024 |
1025 Handle<JSObject> Factory::NewJSObjectFromMap(Handle<Map> map, | 1025 Handle<JSObject> Factory::NewJSObjectFromMap(Handle<Map> map, |
1026 PretenureFlag pretenure) { | 1026 PretenureFlag pretenure) { |
1027 CALL_HEAP_FUNCTION( | 1027 CALL_HEAP_FUNCTION( |
1028 isolate(), | 1028 isolate(), |
1029 isolate()->heap()->AllocateJSObjectFromMap(*map, pretenure), | 1029 isolate()->heap()->AllocateJSObjectFromMap(*map, pretenure), |
1030 JSObject); | 1030 JSObject); |
1031 } | 1031 } |
1032 | 1032 |
1033 | 1033 |
| 1034 Handle<JSObject> Factory::NewJSObjectFromMapForDeoptimizer( |
| 1035 Handle<Map> map, PretenureFlag pretenure) { |
| 1036 CALL_HEAP_FUNCTION( |
| 1037 isolate(), |
| 1038 isolate()->heap()->AllocateJSObjectFromMapForDeoptimizer(*map, pretenure), |
| 1039 JSObject); |
| 1040 } |
| 1041 |
| 1042 |
1034 Handle<JSArray> Factory::NewJSArray(int capacity, | 1043 Handle<JSArray> Factory::NewJSArray(int capacity, |
1035 ElementsKind elements_kind, | 1044 ElementsKind elements_kind, |
1036 PretenureFlag pretenure) { | 1045 PretenureFlag pretenure) { |
1037 if (capacity != 0) { | 1046 if (capacity != 0) { |
1038 elements_kind = GetHoleyElementsKind(elements_kind); | 1047 elements_kind = GetHoleyElementsKind(elements_kind); |
1039 } | 1048 } |
1040 CALL_HEAP_FUNCTION(isolate(), | 1049 CALL_HEAP_FUNCTION(isolate(), |
1041 isolate()->heap()->AllocateJSArrayAndStorage( | 1050 isolate()->heap()->AllocateJSArrayAndStorage( |
1042 elements_kind, | 1051 elements_kind, |
1043 0, | 1052 0, |
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1609 return Handle<Object>::null(); | 1618 return Handle<Object>::null(); |
1610 } | 1619 } |
1611 | 1620 |
1612 | 1621 |
1613 Handle<Object> Factory::ToBoolean(bool value) { | 1622 Handle<Object> Factory::ToBoolean(bool value) { |
1614 return value ? true_value() : false_value(); | 1623 return value ? true_value() : false_value(); |
1615 } | 1624 } |
1616 | 1625 |
1617 | 1626 |
1618 } } // namespace v8::internal | 1627 } } // namespace v8::internal |
OLD | NEW |