| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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 | 4 |
| 5 #include "src/factory.h" | 5 #include "src/factory.h" |
| 6 | 6 |
| 7 #include "src/allocation-site-scopes.h" | 7 #include "src/allocation-site-scopes.h" |
| 8 #include "src/base/bits.h" | 8 #include "src/base/bits.h" |
| 9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
| 10 #include "src/conversions.h" | 10 #include "src/conversions.h" |
| (...skipping 961 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 972 | 972 |
| 973 Handle<FixedArray> Factory::CopyFixedArrayWithMap(Handle<FixedArray> array, | 973 Handle<FixedArray> Factory::CopyFixedArrayWithMap(Handle<FixedArray> array, |
| 974 Handle<Map> map) { | 974 Handle<Map> map) { |
| 975 CALL_HEAP_FUNCTION(isolate(), | 975 CALL_HEAP_FUNCTION(isolate(), |
| 976 isolate()->heap()->CopyFixedArrayWithMap(*array, *map), | 976 isolate()->heap()->CopyFixedArrayWithMap(*array, *map), |
| 977 FixedArray); | 977 FixedArray); |
| 978 } | 978 } |
| 979 | 979 |
| 980 | 980 |
| 981 Handle<FixedArray> Factory::CopyFixedArrayAndGrow(Handle<FixedArray> array, | 981 Handle<FixedArray> Factory::CopyFixedArrayAndGrow(Handle<FixedArray> array, |
| 982 int grow_by) { | 982 int grow_by, |
| 983 CALL_HEAP_FUNCTION(isolate(), | 983 PretenureFlag pretenure) { |
| 984 isolate()->heap()->CopyFixedArrayAndGrow(*array, grow_by), | 984 CALL_HEAP_FUNCTION(isolate(), isolate()->heap()->CopyFixedArrayAndGrow( |
| 985 *array, grow_by, pretenure), |
| 985 FixedArray); | 986 FixedArray); |
| 986 } | 987 } |
| 987 | 988 |
| 988 | 989 |
| 989 Handle<FixedArray> Factory::CopyFixedArray(Handle<FixedArray> array) { | 990 Handle<FixedArray> Factory::CopyFixedArray(Handle<FixedArray> array) { |
| 990 CALL_HEAP_FUNCTION(isolate(), | 991 CALL_HEAP_FUNCTION(isolate(), |
| 991 isolate()->heap()->CopyFixedArray(*array), | 992 isolate()->heap()->CopyFixedArray(*array), |
| 992 FixedArray); | 993 FixedArray); |
| 993 } | 994 } |
| 994 | 995 |
| (...skipping 1477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2472 } | 2473 } |
| 2473 | 2474 |
| 2474 | 2475 |
| 2475 Handle<Object> Factory::ToBoolean(bool value) { | 2476 Handle<Object> Factory::ToBoolean(bool value) { |
| 2476 return value ? true_value() : false_value(); | 2477 return value ? true_value() : false_value(); |
| 2477 } | 2478 } |
| 2478 | 2479 |
| 2479 | 2480 |
| 2480 } // namespace internal | 2481 } // namespace internal |
| 2481 } // namespace v8 | 2482 } // namespace v8 |
| OLD | NEW |