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

Side by Side Diff: src/ia32/lithium-ia32.h

Issue 21345002: Get rid of HLinkObjectInList. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 4 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/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/lithium-ia32.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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 V(Integer32ToSmi) \ 113 V(Integer32ToSmi) \
114 V(InvokeFunction) \ 114 V(InvokeFunction) \
115 V(IsConstructCallAndBranch) \ 115 V(IsConstructCallAndBranch) \
116 V(IsObjectAndBranch) \ 116 V(IsObjectAndBranch) \
117 V(IsStringAndBranch) \ 117 V(IsStringAndBranch) \
118 V(IsSmiAndBranch) \ 118 V(IsSmiAndBranch) \
119 V(IsNumberAndBranch) \ 119 V(IsNumberAndBranch) \
120 V(IsUndetectableAndBranch) \ 120 V(IsUndetectableAndBranch) \
121 V(Label) \ 121 V(Label) \
122 V(LazyBailout) \ 122 V(LazyBailout) \
123 V(LinkObjectInList) \
124 V(LoadContextSlot) \ 123 V(LoadContextSlot) \
125 V(LoadExternalArrayPointer) \ 124 V(LoadExternalArrayPointer) \
126 V(LoadFieldByIndex) \ 125 V(LoadFieldByIndex) \
127 V(LoadFunctionPrototype) \ 126 V(LoadFunctionPrototype) \
128 V(LoadGlobalCell) \ 127 V(LoadGlobalCell) \
129 V(LoadGlobalGeneric) \ 128 V(LoadGlobalGeneric) \
130 V(LoadKeyed) \ 129 V(LoadKeyed) \
131 V(LoadKeyedGeneric) \ 130 V(LoadKeyedGeneric) \
132 V(LoadNamedField) \ 131 V(LoadNamedField) \
133 V(LoadNamedFieldPolymorphic) \ 132 V(LoadNamedFieldPolymorphic) \
(...skipping 1564 matching lines...) Expand 10 before | Expand all | Expand 10 after
1698 LOperand* value() { return inputs_[2]; } 1697 LOperand* value() { return inputs_[2]; }
1699 1698
1700 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalGeneric, "store-global-generic") 1699 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalGeneric, "store-global-generic")
1701 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalGeneric) 1700 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalGeneric)
1702 1701
1703 Handle<Object> name() const { return hydrogen()->name(); } 1702 Handle<Object> name() const { return hydrogen()->name(); }
1704 StrictModeFlag strict_mode_flag() { return hydrogen()->strict_mode_flag(); } 1703 StrictModeFlag strict_mode_flag() { return hydrogen()->strict_mode_flag(); }
1705 }; 1704 };
1706 1705
1707 1706
1708 class LLinkObjectInList: public LTemplateInstruction<0, 1, 1> {
1709 public:
1710 explicit LLinkObjectInList(LOperand* object, LOperand* temp) {
1711 inputs_[0] = object;
1712 temps_[0] = temp;
1713 }
1714
1715 LOperand* object() { return inputs_[0]; }
1716 LOperand* temp() { return temps_[0]; }
1717
1718 ExternalReference GetReference(Isolate* isolate);
1719
1720 DECLARE_CONCRETE_INSTRUCTION(LinkObjectInList, "link-object-in-list")
1721 DECLARE_HYDROGEN_ACCESSOR(LinkObjectInList)
1722
1723 virtual void PrintDataTo(StringStream* stream);
1724 };
1725
1726
1727 class LLoadContextSlot: public LTemplateInstruction<1, 1, 0> { 1707 class LLoadContextSlot: public LTemplateInstruction<1, 1, 0> {
1728 public: 1708 public:
1729 explicit LLoadContextSlot(LOperand* context) { 1709 explicit LLoadContextSlot(LOperand* context) {
1730 inputs_[0] = context; 1710 inputs_[0] = context;
1731 } 1711 }
1732 1712
1733 LOperand* context() { return inputs_[0]; } 1713 LOperand* context() { return inputs_[0]; }
1734 1714
1735 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") 1715 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot")
1736 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) 1716 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot)
(...skipping 1215 matching lines...) Expand 10 before | Expand all | Expand 10 after
2952 2932
2953 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2933 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2954 }; 2934 };
2955 2935
2956 #undef DECLARE_HYDROGEN_ACCESSOR 2936 #undef DECLARE_HYDROGEN_ACCESSOR
2957 #undef DECLARE_CONCRETE_INSTRUCTION 2937 #undef DECLARE_CONCRETE_INSTRUCTION
2958 2938
2959 } } // namespace v8::internal 2939 } } // namespace v8::internal
2960 2940
2961 #endif // V8_IA32_LITHIUM_IA32_H_ 2941 #endif // V8_IA32_LITHIUM_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/lithium-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698