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

Side by Side Diff: src/hydrogen.h

Issue 15700007: Refacturing BuildEmitDeepCopy. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 6 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/code-stubs-hydrogen.cc ('k') | src/hydrogen.cc » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 1257 matching lines...) Expand 10 before | Expand all | Expand 10 after
1268 ElementsKind kind_; 1268 ElementsKind kind_;
1269 AllocationSiteMode mode_; 1269 AllocationSiteMode mode_;
1270 HValue* allocation_site_payload_; 1270 HValue* allocation_site_payload_;
1271 HInnerAllocatedObject* elements_location_; 1271 HInnerAllocatedObject* elements_location_;
1272 }; 1272 };
1273 1273
1274 HValue* BuildAllocateElements(HValue* context, 1274 HValue* BuildAllocateElements(HValue* context,
1275 ElementsKind kind, 1275 ElementsKind kind,
1276 HValue* capacity); 1276 HValue* capacity);
1277 1277
1278 void BuildInitializeElements(HValue* elements, 1278 void BuildInitializeElementsHeader(HValue* elements,
1279 ElementsKind kind, 1279 ElementsKind kind,
1280 HValue* capacity); 1280 HValue* capacity);
1281 1281
1282 HValue* BuildAllocateAndInitializeElements(HValue* context, 1282 HValue* BuildAllocateElementsAndInitializeElementsHeader(HValue* context,
1283 ElementsKind kind, 1283 ElementsKind kind,
1284 HValue* capacity); 1284 HValue* capacity);
1285 1285
1286 // array must have been allocated with enough room for 1286 // array must have been allocated with enough room for
1287 // 1) the JSArray, 2) a AllocationSiteInfo if mode requires it, 1287 // 1) the JSArray, 2) a AllocationSiteInfo if mode requires it,
1288 // 3) a FixedArray or FixedDoubleArray. 1288 // 3) a FixedArray or FixedDoubleArray.
1289 // A pointer to the Fixed(Double)Array is returned. 1289 // A pointer to the Fixed(Double)Array is returned.
1290 HInnerAllocatedObject* BuildJSArrayHeader(HValue* array, 1290 HInnerAllocatedObject* BuildJSArrayHeader(HValue* array,
1291 HValue* array_map, 1291 HValue* array_map,
1292 AllocationSiteMode mode, 1292 AllocationSiteMode mode,
1293 HValue* allocation_site_payload, 1293 HValue* allocation_site_payload,
1294 HValue* length_field); 1294 HValue* length_field);
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
1731 int data_size, 1731 int data_size,
1732 int pointer_size, 1732 int pointer_size,
1733 AllocationSiteMode mode); 1733 AllocationSiteMode mode);
1734 1734
1735 void BuildEmitDeepCopy(Handle<JSObject> boilerplat_object, 1735 void BuildEmitDeepCopy(Handle<JSObject> boilerplat_object,
1736 Handle<JSObject> object, 1736 Handle<JSObject> object,
1737 HInstruction* result, 1737 HInstruction* result,
1738 int* offset, 1738 int* offset,
1739 AllocationSiteMode mode); 1739 AllocationSiteMode mode);
1740 1740
1741 MUST_USE_RESULT HValue* BuildCopyObjectHeader( 1741 MUST_USE_RESULT HValue* BuildEmitObjectHeader(
1742 Handle<JSObject> boilerplat_object, 1742 Handle<JSObject> boilerplat_object,
1743 HInstruction* target, 1743 HInstruction* target,
1744 int object_offset, 1744 int object_offset,
1745 int elements_offset, 1745 int elements_offset,
1746 int elements_size); 1746 int elements_size);
1747 1747
1748 void BuildEmitInObjectProperties(Handle<JSObject> boilerplate_object,
1749 Handle<JSObject> original_boilerplate_object,
1750 HValue* object_properties,
1751 HInstruction* target,
1752 int* offset);
1753
1754 void BuildEmitElements(Handle<FixedArrayBase> elements,
1755 Handle<FixedArrayBase> original_elements,
1756 ElementsKind kind,
1757 HValue* object_elements,
1758 HInstruction* target,
1759 int* offset);
1760
1761 void BuildEmitFixedDoubleArray(Handle<FixedArrayBase> elements,
1762 ElementsKind kind,
1763 HValue* object_elements);
1764
1765 void BuildEmitFixedArray(Handle<FixedArrayBase> elements,
1766 Handle<FixedArrayBase> original_elements,
1767 ElementsKind kind,
1768 HValue* object_elements,
1769 HInstruction* target,
1770 int* offset);
1771
1748 void AddCheckPrototypeMaps(Handle<JSObject> holder, 1772 void AddCheckPrototypeMaps(Handle<JSObject> holder,
1749 Handle<Map> receiver_map); 1773 Handle<Map> receiver_map);
1750 1774
1751 void AddCheckConstantFunction(Handle<JSObject> holder, 1775 void AddCheckConstantFunction(Handle<JSObject> holder,
1752 HValue* receiver, 1776 HValue* receiver,
1753 Handle<Map> receiver_map); 1777 Handle<Map> receiver_map);
1754 1778
1755 bool MatchRotateRight(HValue* left, 1779 bool MatchRotateRight(HValue* left,
1756 HValue* right, 1780 HValue* right,
1757 HValue** operand, 1781 HValue** operand,
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
1929 EmbeddedVector<char, 64> filename_; 1953 EmbeddedVector<char, 64> filename_;
1930 HeapStringAllocator string_allocator_; 1954 HeapStringAllocator string_allocator_;
1931 StringStream trace_; 1955 StringStream trace_;
1932 int indent_; 1956 int indent_;
1933 }; 1957 };
1934 1958
1935 1959
1936 } } // namespace v8::internal 1960 } } // namespace v8::internal
1937 1961
1938 #endif // V8_HYDROGEN_H_ 1962 #endif // V8_HYDROGEN_H_
OLDNEW
« no previous file with comments | « src/code-stubs-hydrogen.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698