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 1063 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1074 | 1074 |
1075 | 1075 |
1076 void Factory::SetContent(Handle<JSArray> array, | 1076 void Factory::SetContent(Handle<JSArray> array, |
1077 Handle<FixedArrayBase> elements) { | 1077 Handle<FixedArrayBase> elements) { |
1078 CALL_HEAP_FUNCTION_VOID( | 1078 CALL_HEAP_FUNCTION_VOID( |
1079 isolate(), | 1079 isolate(), |
1080 array->SetContent(*elements)); | 1080 array->SetContent(*elements)); |
1081 } | 1081 } |
1082 | 1082 |
1083 | 1083 |
1084 void Factory::EnsureCanContainHeapObjectElements(Handle<JSArray> array) { | |
1085 CALL_HEAP_FUNCTION_VOID( | |
1086 isolate(), | |
1087 array->EnsureCanContainHeapObjectElements()); | |
1088 } | |
1089 | |
1090 | |
1091 void Factory::EnsureCanContainElements(Handle<JSArray> array, | 1084 void Factory::EnsureCanContainElements(Handle<JSArray> array, |
1092 Handle<FixedArrayBase> elements, | 1085 Handle<FixedArrayBase> elements, |
1093 uint32_t length, | 1086 uint32_t length, |
1094 EnsureElementsMode mode) { | 1087 EnsureElementsMode mode) { |
1095 CALL_HEAP_FUNCTION_VOID( | 1088 CALL_HEAP_FUNCTION_VOID( |
1096 isolate(), | 1089 isolate(), |
1097 array->EnsureCanContainElements(*elements, length, mode)); | 1090 array->EnsureCanContainElements(*elements, length, mode)); |
1098 } | 1091 } |
1099 | 1092 |
1100 | 1093 |
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1646 return Handle<Object>::null(); | 1639 return Handle<Object>::null(); |
1647 } | 1640 } |
1648 | 1641 |
1649 | 1642 |
1650 Handle<Object> Factory::ToBoolean(bool value) { | 1643 Handle<Object> Factory::ToBoolean(bool value) { |
1651 return value ? true_value() : false_value(); | 1644 return value ? true_value() : false_value(); |
1652 } | 1645 } |
1653 | 1646 |
1654 | 1647 |
1655 } } // namespace v8::internal | 1648 } } // namespace v8::internal |
OLD | NEW |