OLD | NEW |
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 1403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1414 store_map->SkipWriteBarrier(); | 1414 store_map->SkipWriteBarrier(); |
1415 return store_map; | 1415 return store_map; |
1416 } | 1416 } |
1417 HStoreNamedField* AddStoreMapConstant(HValue* object, Handle<Map> map); | 1417 HStoreNamedField* AddStoreMapConstant(HValue* object, Handle<Map> map); |
1418 HStoreNamedField* AddStoreMapConstantNoWriteBarrier(HValue* object, | 1418 HStoreNamedField* AddStoreMapConstantNoWriteBarrier(HValue* object, |
1419 Handle<Map> map) { | 1419 Handle<Map> map) { |
1420 HStoreNamedField* store_map = AddStoreMapConstant(object, map); | 1420 HStoreNamedField* store_map = AddStoreMapConstant(object, map); |
1421 store_map->SkipWriteBarrier(); | 1421 store_map->SkipWriteBarrier(); |
1422 return store_map; | 1422 return store_map; |
1423 } | 1423 } |
1424 HLoadNamedField* AddLoadElements(HValue* object, | 1424 HLoadNamedField* AddLoadElements(HValue* object); |
1425 HValue* dependency = NULL); | |
1426 | 1425 |
1427 bool MatchRotateRight(HValue* left, | 1426 bool MatchRotateRight(HValue* left, |
1428 HValue* right, | 1427 HValue* right, |
1429 HValue** operand, | 1428 HValue** operand, |
1430 HValue** shift_amount); | 1429 HValue** shift_amount); |
1431 | 1430 |
1432 HValue* BuildBinaryOperation(Token::Value op, | 1431 HValue* BuildBinaryOperation(Token::Value op, |
1433 HValue* left, | 1432 HValue* left, |
1434 HValue* right, | 1433 HValue* right, |
1435 Type* left_type, | 1434 Type* left_type, |
1436 Type* right_type, | 1435 Type* right_type, |
1437 Type* result_type, | 1436 Type* result_type, |
1438 Maybe<int> fixed_right_arg, | 1437 Maybe<int> fixed_right_arg, |
1439 HAllocationMode allocation_mode); | 1438 HAllocationMode allocation_mode); |
1440 | 1439 |
1441 HLoadNamedField* AddLoadFixedArrayLength(HValue *object, | 1440 HLoadNamedField* AddLoadFixedArrayLength(HValue *object); |
1442 HValue *dependency = NULL); | |
1443 | |
1444 HLoadNamedField* AddLoadArrayLength(HValue *object, | |
1445 ElementsKind kind, | |
1446 HValue *dependency = NULL); | |
1447 | 1441 |
1448 HValue* AddLoadJSBuiltin(Builtins::JavaScript builtin); | 1442 HValue* AddLoadJSBuiltin(Builtins::JavaScript builtin); |
1449 | 1443 |
1450 HValue* EnforceNumberType(HValue* number, Type* expected); | 1444 HValue* EnforceNumberType(HValue* number, Type* expected); |
1451 HValue* TruncateToNumber(HValue* value, Type** expected); | 1445 HValue* TruncateToNumber(HValue* value, Type** expected); |
1452 | 1446 |
1453 void FinishExitWithHardDeoptimization(const char* reason); | 1447 void FinishExitWithHardDeoptimization(const char* reason); |
1454 | 1448 |
1455 void AddIncrementCounter(StatsCounter* counter); | 1449 void AddIncrementCounter(StatsCounter* counter); |
1456 | 1450 |
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1779 ElementsKind kind, | 1773 ElementsKind kind, |
1780 ElementsKind new_kind, | 1774 ElementsKind new_kind, |
1781 HValue* length, | 1775 HValue* length, |
1782 HValue* new_capacity); | 1776 HValue* new_capacity); |
1783 | 1777 |
1784 void BuildFillElementsWithHole(HValue* elements, | 1778 void BuildFillElementsWithHole(HValue* elements, |
1785 ElementsKind elements_kind, | 1779 ElementsKind elements_kind, |
1786 HValue* from, | 1780 HValue* from, |
1787 HValue* to); | 1781 HValue* to); |
1788 | 1782 |
1789 void BuildCopyElements(HValue* array, | 1783 void BuildCopyElements(HValue* from_elements, |
1790 HValue* from_elements, | |
1791 ElementsKind from_elements_kind, | 1784 ElementsKind from_elements_kind, |
1792 HValue* to_elements, | 1785 HValue* to_elements, |
1793 ElementsKind to_elements_kind, | 1786 ElementsKind to_elements_kind, |
1794 HValue* length, | 1787 HValue* length, |
1795 HValue* capacity); | 1788 HValue* capacity); |
1796 | 1789 |
1797 HValue* BuildCloneShallowArrayCommon(HValue* boilerplate, | 1790 HValue* BuildCloneShallowArray(HValue* boilerplate, |
1798 HValue* allocation_site, | 1791 HValue* allocation_site, |
1799 HValue* extra_size, | 1792 AllocationSiteMode mode, |
1800 HValue** return_elements, | 1793 ElementsKind kind, |
1801 AllocationSiteMode mode); | 1794 int length); |
1802 | |
1803 HValue* BuildCloneShallowArrayCow(HValue* boilerplate, | |
1804 HValue* allocation_site, | |
1805 AllocationSiteMode mode, | |
1806 ElementsKind kind); | |
1807 | |
1808 HValue* BuildCloneShallowArrayEmpty(HValue* boilerplate, | |
1809 HValue* allocation_site, | |
1810 AllocationSiteMode mode); | |
1811 | |
1812 HValue* BuildCloneShallowArrayNonEmpty(HValue* boilerplate, | |
1813 HValue* allocation_site, | |
1814 AllocationSiteMode mode, | |
1815 ElementsKind kind); | |
1816 | 1795 |
1817 HValue* BuildElementIndexHash(HValue* index); | 1796 HValue* BuildElementIndexHash(HValue* index); |
1818 | 1797 |
1819 void BuildCompareNil( | 1798 void BuildCompareNil( |
1820 HValue* value, | 1799 HValue* value, |
1821 Type* type, | 1800 Type* type, |
1822 HIfContinuation* continuation); | 1801 HIfContinuation* continuation); |
1823 | 1802 |
1824 void BuildCreateAllocationMemento(HValue* previous_object, | 1803 void BuildCreateAllocationMemento(HValue* previous_object, |
1825 HValue* previous_object_size, | 1804 HValue* previous_object_size, |
(...skipping 1000 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2826 } | 2805 } |
2827 | 2806 |
2828 private: | 2807 private: |
2829 HGraphBuilder* builder_; | 2808 HGraphBuilder* builder_; |
2830 }; | 2809 }; |
2831 | 2810 |
2832 | 2811 |
2833 } } // namespace v8::internal | 2812 } } // namespace v8::internal |
2834 | 2813 |
2835 #endif // V8_HYDROGEN_H_ | 2814 #endif // V8_HYDROGEN_H_ |
OLD | NEW |