| 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 865 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 876 copy->set_visitor_id(StaticVisitorBase::GetVisitorId(*copy)); | 876 copy->set_visitor_id(StaticVisitorBase::GetVisitorId(*copy)); |
| 877 return copy; | 877 return copy; |
| 878 } | 878 } |
| 879 | 879 |
| 880 | 880 |
| 881 Handle<Map> Factory::CopyMap(Handle<Map> src) { | 881 Handle<Map> Factory::CopyMap(Handle<Map> src) { |
| 882 CALL_HEAP_FUNCTION(isolate(), src->Copy(), Map); | 882 CALL_HEAP_FUNCTION(isolate(), src->Copy(), Map); |
| 883 } | 883 } |
| 884 | 884 |
| 885 | 885 |
| 886 Handle<Map> Factory::GetElementsTransitionMap( | |
| 887 Handle<JSObject> src, | |
| 888 ElementsKind elements_kind) { | |
| 889 Isolate* i = isolate(); | |
| 890 CALL_HEAP_FUNCTION(i, | |
| 891 src->GetElementsTransitionMap(i, elements_kind), | |
| 892 Map); | |
| 893 } | |
| 894 | |
| 895 | |
| 896 Handle<FixedArray> Factory::CopyFixedArray(Handle<FixedArray> array) { | 886 Handle<FixedArray> Factory::CopyFixedArray(Handle<FixedArray> array) { |
| 897 CALL_HEAP_FUNCTION(isolate(), array->Copy(), FixedArray); | 887 CALL_HEAP_FUNCTION(isolate(), array->Copy(), FixedArray); |
| 898 } | 888 } |
| 899 | 889 |
| 900 | 890 |
| 901 Handle<FixedArray> Factory::CopyAndTenureFixedCOWArray( | 891 Handle<FixedArray> Factory::CopyAndTenureFixedCOWArray( |
| 902 Handle<FixedArray> array) { | 892 Handle<FixedArray> array) { |
| 903 ASSERT(isolate()->heap()->InNewSpace(*array)); | 893 ASSERT(isolate()->heap()->InNewSpace(*array)); |
| 904 CALL_HEAP_FUNCTION(isolate(), | 894 CALL_HEAP_FUNCTION(isolate(), |
| 905 isolate()->heap()->CopyAndTenureFixedCOWArray(*array), | 895 isolate()->heap()->CopyAndTenureFixedCOWArray(*array), |
| (...skipping 1121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2027 return Handle<Object>::null(); | 2017 return Handle<Object>::null(); |
| 2028 } | 2018 } |
| 2029 | 2019 |
| 2030 | 2020 |
| 2031 Handle<Object> Factory::ToBoolean(bool value) { | 2021 Handle<Object> Factory::ToBoolean(bool value) { |
| 2032 return value ? true_value() : false_value(); | 2022 return value ? true_value() : false_value(); |
| 2033 } | 2023 } |
| 2034 | 2024 |
| 2035 | 2025 |
| 2036 } } // namespace v8::internal | 2026 } } // namespace v8::internal |
| OLD | NEW |