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