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 871 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
882 src->GetElementsTransitionMap(i, elements_kind), | 882 src->GetElementsTransitionMap(i, elements_kind), |
883 Map); | 883 Map); |
884 } | 884 } |
885 | 885 |
886 | 886 |
887 Handle<FixedArray> Factory::CopyFixedArray(Handle<FixedArray> array) { | 887 Handle<FixedArray> Factory::CopyFixedArray(Handle<FixedArray> array) { |
888 CALL_HEAP_FUNCTION(isolate(), array->Copy(), FixedArray); | 888 CALL_HEAP_FUNCTION(isolate(), array->Copy(), FixedArray); |
889 } | 889 } |
890 | 890 |
891 | 891 |
| 892 Handle<FixedArray> Factory::CopyAndTenureFixedCOWArray( |
| 893 Handle<FixedArray> array) { |
| 894 ASSERT(isolate()->heap()->InNewSpace(*array)); |
| 895 CALL_HEAP_FUNCTION(isolate(), |
| 896 isolate()->heap()->CopyAndTenureFixedCOWArray(*array), |
| 897 FixedArray); |
| 898 } |
| 899 |
| 900 |
892 Handle<FixedArray> Factory::CopySizeFixedArray(Handle<FixedArray> array, | 901 Handle<FixedArray> Factory::CopySizeFixedArray(Handle<FixedArray> array, |
893 int new_length, | 902 int new_length, |
894 PretenureFlag pretenure) { | 903 PretenureFlag pretenure) { |
895 CALL_HEAP_FUNCTION(isolate(), | 904 CALL_HEAP_FUNCTION(isolate(), |
896 array->CopySize(new_length, pretenure), | 905 array->CopySize(new_length, pretenure), |
897 FixedArray); | 906 FixedArray); |
898 } | 907 } |
899 | 908 |
900 | 909 |
901 Handle<FixedDoubleArray> Factory::CopyFixedDoubleArray( | 910 Handle<FixedDoubleArray> Factory::CopyFixedDoubleArray( |
(...skipping 1087 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1989 return Handle<Object>::null(); | 1998 return Handle<Object>::null(); |
1990 } | 1999 } |
1991 | 2000 |
1992 | 2001 |
1993 Handle<Object> Factory::ToBoolean(bool value) { | 2002 Handle<Object> Factory::ToBoolean(bool value) { |
1994 return value ? true_value() : false_value(); | 2003 return value ? true_value() : false_value(); |
1995 } | 2004 } |
1996 | 2005 |
1997 | 2006 |
1998 } } // namespace v8::internal | 2007 } } // namespace v8::internal |
OLD | NEW |