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

Side by Side Diff: src/hydrogen.h

Issue 17328005: Merge assignment handling for Assignment and CompoundAssignment (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 | « no previous file | 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 1651 matching lines...) Expand 10 before | Expand all | Expand 10 after
1662 int arguments_count, 1662 int arguments_count,
1663 HValue* implicit_return_value, 1663 HValue* implicit_return_value,
1664 BailoutId ast_id, 1664 BailoutId ast_id,
1665 BailoutId return_id, 1665 BailoutId return_id,
1666 InliningKind inlining_kind); 1666 InliningKind inlining_kind);
1667 1667
1668 bool TryInlineCall(Call* expr, bool drop_extra = false); 1668 bool TryInlineCall(Call* expr, bool drop_extra = false);
1669 bool TryInlineConstruct(CallNew* expr, HValue* implicit_return_value); 1669 bool TryInlineConstruct(CallNew* expr, HValue* implicit_return_value);
1670 bool TryInlineGetter(Handle<JSFunction> getter, Property* prop); 1670 bool TryInlineGetter(Handle<JSFunction> getter, Property* prop);
1671 bool TryInlineSetter(Handle<JSFunction> setter, 1671 bool TryInlineSetter(Handle<JSFunction> setter,
1672 Assignment* assignment, 1672 BailoutId id,
1673 BailoutId assignment_id,
1673 HValue* implicit_return_value); 1674 HValue* implicit_return_value);
1674 bool TryInlineApply(Handle<JSFunction> function, 1675 bool TryInlineApply(Handle<JSFunction> function,
1675 Call* expr, 1676 Call* expr,
1676 int arguments_count); 1677 int arguments_count);
1677 bool TryInlineBuiltinMethodCall(Call* expr, 1678 bool TryInlineBuiltinMethodCall(Call* expr,
1678 HValue* receiver, 1679 HValue* receiver,
1679 Handle<Map> receiver_map, 1680 Handle<Map> receiver_map,
1680 CheckType check_type); 1681 CheckType check_type);
1681 bool TryInlineBuiltinFunctionCall(Call* expr, bool drop_extra); 1682 bool TryInlineBuiltinFunctionCall(Call* expr, bool drop_extra);
1682 1683
(...skipping 12 matching lines...) Expand all
1695 void HandlePropertyAssignment(Assignment* expr); 1696 void HandlePropertyAssignment(Assignment* expr);
1696 void HandleCompoundAssignment(Assignment* expr); 1697 void HandleCompoundAssignment(Assignment* expr);
1697 void HandlePolymorphicLoadNamedField(Property* expr, 1698 void HandlePolymorphicLoadNamedField(Property* expr,
1698 HValue* object, 1699 HValue* object,
1699 SmallMapList* types, 1700 SmallMapList* types,
1700 Handle<String> name); 1701 Handle<String> name);
1701 HInstruction* TryLoadPolymorphicAsMonomorphic(Property* expr, 1702 HInstruction* TryLoadPolymorphicAsMonomorphic(Property* expr,
1702 HValue* object, 1703 HValue* object,
1703 SmallMapList* types, 1704 SmallMapList* types,
1704 Handle<String> name); 1705 Handle<String> name);
1705 void HandlePolymorphicStoreNamedField(Assignment* expr, 1706 void HandlePolymorphicStoreNamedField(BailoutId id,
1707 int position,
1708 BailoutId assignment_id,
1706 HValue* object, 1709 HValue* object,
1707 HValue* value, 1710 HValue* value,
1708 SmallMapList* types, 1711 SmallMapList* types,
1709 Handle<String> name); 1712 Handle<String> name);
1710 bool TryStorePolymorphicAsMonomorphic(Assignment* expr, 1713 bool TryStorePolymorphicAsMonomorphic(int position,
1714 BailoutId assignment_id,
1711 HValue* object, 1715 HValue* object,
1712 HValue* value, 1716 HValue* value,
1713 SmallMapList* types, 1717 SmallMapList* types,
1714 Handle<String> name); 1718 Handle<String> name);
1715 void HandlePolymorphicCallNamed(Call* expr, 1719 void HandlePolymorphicCallNamed(Call* expr,
1716 HValue* receiver, 1720 HValue* receiver,
1717 SmallMapList* types, 1721 SmallMapList* types,
1718 Handle<String> name); 1722 Handle<String> name);
1719 void HandleLiteralCompareTypeof(CompareOperation* expr, 1723 void HandleLiteralCompareTypeof(CompareOperation* expr,
1720 HTypeof* typeof_expr, 1724 HTypeof* typeof_expr,
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
1776 HInstruction* BuildLoadNamedMonomorphic(HValue* object, 1780 HInstruction* BuildLoadNamedMonomorphic(HValue* object,
1777 Handle<String> name, 1781 Handle<String> name,
1778 Property* expr, 1782 Property* expr,
1779 Handle<Map> map); 1783 Handle<Map> map);
1780 1784
1781 void AddCheckMap(HValue* object, Handle<Map> map); 1785 void AddCheckMap(HValue* object, Handle<Map> map);
1782 1786
1783 void AddCheckMapsWithTransitions(HValue* object, 1787 void AddCheckMapsWithTransitions(HValue* object,
1784 Handle<Map> map); 1788 Handle<Map> map);
1785 1789
1790 void BuildStoreNamed(Expression* expression,
1791 BailoutId id,
1792 int position,
1793 BailoutId assignment_id,
1794 Property* prop,
1795 HValue* object,
1796 HValue* value);
1797
1786 HInstruction* BuildStoreNamedField(HValue* object, 1798 HInstruction* BuildStoreNamedField(HValue* object,
1787 Handle<String> name, 1799 Handle<String> name,
1788 HValue* value, 1800 HValue* value,
1789 Handle<Map> map, 1801 Handle<Map> map,
1790 LookupResult* lookup); 1802 LookupResult* lookup);
1791 HInstruction* BuildStoreNamedGeneric(HValue* object, 1803 HInstruction* BuildStoreNamedGeneric(HValue* object,
1792 Handle<String> name, 1804 Handle<String> name,
1793 HValue* value); 1805 HValue* value);
1794 HInstruction* BuildCallSetter(HValue* object, 1806 HInstruction* BuildCallSetter(HValue* object,
1795 HValue* value, 1807 HValue* value,
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
2038 EmbeddedVector<char, 64> filename_; 2050 EmbeddedVector<char, 64> filename_;
2039 HeapStringAllocator string_allocator_; 2051 HeapStringAllocator string_allocator_;
2040 StringStream trace_; 2052 StringStream trace_;
2041 int indent_; 2053 int indent_;
2042 }; 2054 };
2043 2055
2044 2056
2045 } } // namespace v8::internal 2057 } } // namespace v8::internal
2046 2058
2047 #endif // V8_HYDROGEN_H_ 2059 #endif // V8_HYDROGEN_H_
OLDNEW
« no previous file with comments | « no previous file | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698