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

Side by Side Diff: src/ia32/lithium-ia32.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
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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 V(InstanceOf) \ 105 V(InstanceOf) \
106 V(InstanceOfAndBranch) \ 106 V(InstanceOfAndBranch) \
107 V(InstanceOfKnownGlobal) \ 107 V(InstanceOfKnownGlobal) \
108 V(Integer32ToDouble) \ 108 V(Integer32ToDouble) \
109 V(IsNull) \ 109 V(IsNull) \
110 V(IsNullAndBranch) \ 110 V(IsNullAndBranch) \
111 V(IsObject) \ 111 V(IsObject) \
112 V(IsObjectAndBranch) \ 112 V(IsObjectAndBranch) \
113 V(IsSmi) \ 113 V(IsSmi) \
114 V(IsSmiAndBranch) \ 114 V(IsSmiAndBranch) \
115 V(IsConstructCall) \
116 V(IsConstructCallAndBranch) \
115 V(JSArrayLength) \ 117 V(JSArrayLength) \
116 V(Label) \ 118 V(Label) \
117 V(LazyBailout) \ 119 V(LazyBailout) \
118 V(LoadContextSlot) \ 120 V(LoadContextSlot) \
119 V(LoadElements) \ 121 V(LoadElements) \
120 V(LoadFunctionPrototype) \ 122 V(LoadFunctionPrototype) \
121 V(LoadGlobal) \ 123 V(LoadGlobal) \
122 V(LoadKeyedFastElement) \ 124 V(LoadKeyedFastElement) \
123 V(LoadKeyedGeneric) \ 125 V(LoadKeyedGeneric) \
124 V(LoadNamedField) \ 126 V(LoadNamedField) \
(...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after
748 explicit LHasCachedArrayIndexAndBranch(LOperand* value) { 750 explicit LHasCachedArrayIndexAndBranch(LOperand* value) {
749 inputs_[0] = value; 751 inputs_[0] = value;
750 } 752 }
751 753
752 DECLARE_CONCRETE_INSTRUCTION(HasCachedArrayIndexAndBranch, 754 DECLARE_CONCRETE_INSTRUCTION(HasCachedArrayIndexAndBranch,
753 "has-cached-array-index-and-branch") 755 "has-cached-array-index-and-branch")
754 virtual void PrintDataTo(StringStream* stream); 756 virtual void PrintDataTo(StringStream* stream);
755 }; 757 };
756 758
757 759
760 class LIsConstructCall: public LTemplateInstruction<1, 0, 0> {
761 public:
762 DECLARE_CONCRETE_INSTRUCTION(IsConstructCall, "is-construct-call")
763 DECLARE_HYDROGEN_ACCESSOR(IsConstructCall)
764 };
765
766
767 class LIsConstructCallAndBranch: public LControlInstruction<0, 1> {
768 public:
769 explicit LIsConstructCallAndBranch(LOperand* temp) {
770 temps_[0] = temp;
771 }
772
773 DECLARE_CONCRETE_INSTRUCTION(IsConstructCallAndBranch,
774 "is-construct-call-and-branch")
775 };
776
777
758 class LClassOfTest: public LTemplateInstruction<1, 1, 1> { 778 class LClassOfTest: public LTemplateInstruction<1, 1, 1> {
759 public: 779 public:
760 LClassOfTest(LOperand* value, LOperand* temp) { 780 LClassOfTest(LOperand* value, LOperand* temp) {
761 inputs_[0] = value; 781 inputs_[0] = value;
762 temps_[0] = temp; 782 temps_[0] = temp;
763 } 783 }
764 784
765 DECLARE_CONCRETE_INSTRUCTION(ClassOfTest, "class-of-test") 785 DECLARE_CONCRETE_INSTRUCTION(ClassOfTest, "class-of-test")
766 DECLARE_HYDROGEN_ACCESSOR(ClassOfTest) 786 DECLARE_HYDROGEN_ACCESSOR(ClassOfTest)
767 787
(...skipping 1229 matching lines...) Expand 10 before | Expand all | Expand 10 after
1997 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2017 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
1998 }; 2018 };
1999 2019
2000 #undef DECLARE_HYDROGEN_ACCESSOR 2020 #undef DECLARE_HYDROGEN_ACCESSOR
2001 #undef DECLARE_INSTRUCTION 2021 #undef DECLARE_INSTRUCTION
2002 #undef DECLARE_CONCRETE_INSTRUCTION 2022 #undef DECLARE_CONCRETE_INSTRUCTION
2003 2023
2004 } } // namespace v8::internal 2024 } } // namespace v8::internal
2005 2025
2006 #endif // V8_IA32_LITHIUM_IA32_H_ 2026 #endif // V8_IA32_LITHIUM_IA32_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698