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

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

Issue 6368138: Support %_IsConstructCall in Crankshaft pipeline. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: don't check argc_bound twice Created 9 years, 10 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/arm/lithium-arm.cc » ('j') | src/arm/lithium-codegen-arm.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 V(StoreNamedField) \ 146 V(StoreNamedField) \
147 V(StoreNamedGeneric) \ 147 V(StoreNamedGeneric) \
148 V(StringCharCodeAt) \ 148 V(StringCharCodeAt) \
149 V(StringLength) \ 149 V(StringLength) \
150 V(SubI) \ 150 V(SubI) \
151 V(TaggedToI) \ 151 V(TaggedToI) \
152 V(Throw) \ 152 V(Throw) \
153 V(Typeof) \ 153 V(Typeof) \
154 V(TypeofIs) \ 154 V(TypeofIs) \
155 V(TypeofIsAndBranch) \ 155 V(TypeofIsAndBranch) \
156 V(IsConstructCall) \
157 V(IsConstructCallAndBranch) \
156 V(UnaryMathOperation) \ 158 V(UnaryMathOperation) \
157 V(UnknownOSRValue) \ 159 V(UnknownOSRValue) \
158 V(ValueOf) 160 V(ValueOf)
159 161
160 162
161 #define DECLARE_INSTRUCTION(type) \ 163 #define DECLARE_INSTRUCTION(type) \
162 virtual bool Is##type() const { return true; } \ 164 virtual bool Is##type() const { return true; } \
163 static L##type* cast(LInstruction* instr) { \ 165 static L##type* cast(LInstruction* instr) { \
164 ASSERT(instr->Is##type()); \ 166 ASSERT(instr->Is##type()); \
165 return reinterpret_cast<L##type*>(instr); \ 167 return reinterpret_cast<L##type*>(instr); \
(...skipping 1543 matching lines...) Expand 10 before | Expand all | Expand 10 after
1709 1711
1710 DECLARE_CONCRETE_INSTRUCTION(TypeofIsAndBranch, "typeof-is-and-branch") 1712 DECLARE_CONCRETE_INSTRUCTION(TypeofIsAndBranch, "typeof-is-and-branch")
1711 DECLARE_HYDROGEN_ACCESSOR(TypeofIs) 1713 DECLARE_HYDROGEN_ACCESSOR(TypeofIs)
1712 1714
1713 Handle<String> type_literal() { return hydrogen()->type_literal(); } 1715 Handle<String> type_literal() { return hydrogen()->type_literal(); }
1714 1716
1715 virtual void PrintDataTo(StringStream* stream); 1717 virtual void PrintDataTo(StringStream* stream);
1716 }; 1718 };
1717 1719
1718 1720
1721 class LIsConstructCall: public LTemplateInstruction<1, 0, 1> {
1722 public:
1723 explicit LIsConstructCall(LOperand* temp) {
1724 temps_[0] = temp;
1725 }
1726
1727 DECLARE_CONCRETE_INSTRUCTION(IsConstructCall, "is-construct-call")
1728 DECLARE_HYDROGEN_ACCESSOR(IsConstructCall)
1729 };
1730
1731
1732 class LIsConstructCallAndBranch: public LControlInstruction<0, 2> {
1733 public:
1734 LIsConstructCallAndBranch(LOperand* temp1, LOperand* temp2) {
1735 temps_[0] = temp1;
1736 temps_[1] = temp2;
1737 }
1738
1739 DECLARE_CONCRETE_INSTRUCTION(IsConstructCallAndBranch,
1740 "is-construct-call-and-branch")
1741 };
1742
1743
1719 class LDeleteProperty: public LTemplateInstruction<1, 2, 0> { 1744 class LDeleteProperty: public LTemplateInstruction<1, 2, 0> {
1720 public: 1745 public:
1721 LDeleteProperty(LOperand* obj, LOperand* key) { 1746 LDeleteProperty(LOperand* obj, LOperand* key) {
1722 inputs_[0] = obj; 1747 inputs_[0] = obj;
1723 inputs_[1] = key; 1748 inputs_[1] = key;
1724 } 1749 }
1725 1750
1726 DECLARE_CONCRETE_INSTRUCTION(DeleteProperty, "delete-property") 1751 DECLARE_CONCRETE_INSTRUCTION(DeleteProperty, "delete-property")
1727 1752
1728 LOperand* object() { return inputs_[0]; } 1753 LOperand* object() { return inputs_[0]; }
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
1970 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 1995 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
1971 }; 1996 };
1972 1997
1973 #undef DECLARE_HYDROGEN_ACCESSOR 1998 #undef DECLARE_HYDROGEN_ACCESSOR
1974 #undef DECLARE_INSTRUCTION 1999 #undef DECLARE_INSTRUCTION
1975 #undef DECLARE_CONCRETE_INSTRUCTION 2000 #undef DECLARE_CONCRETE_INSTRUCTION
1976 2001
1977 } } // namespace v8::internal 2002 } } // namespace v8::internal
1978 2003
1979 #endif // V8_ARM_LITHIUM_ARM_H_ 2004 #endif // V8_ARM_LITHIUM_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/arm/lithium-arm.cc » ('j') | src/arm/lithium-codegen-arm.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698