Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(156)

Side by Side Diff: src/factory.cc

Issue 207553005: TransitionElementsKind() and its recursive call chain handlified. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressing review notes Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/factory.h ('k') | src/objects.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/factory.h ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698