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

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

Issue 6094020: Simplify CheckPrototypeMaps. (Closed)
Patch Set: Update ARM lithium Created 9 years, 11 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
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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 // LShiftI 70 // LShiftI
71 // LSubI 71 // LSubI
72 // LCallConstantFunction 72 // LCallConstantFunction
73 // LCallFunction 73 // LCallFunction
74 // LCallGlobal 74 // LCallGlobal
75 // LCallKeyed 75 // LCallKeyed
76 // LCallKnownGlobal 76 // LCallKnownGlobal
77 // LCallNamed 77 // LCallNamed
78 // LCallRuntime 78 // LCallRuntime
79 // LCallStub 79 // LCallStub
80 // LCheckPrototypeMaps
80 // LConstant 81 // LConstant
81 // LConstantD 82 // LConstantD
82 // LConstantI 83 // LConstantI
83 // LConstantT 84 // LConstantT
84 // LDeoptimize 85 // LDeoptimize
85 // LFunctionLiteral 86 // LFunctionLiteral
86 // LGap 87 // LGap
87 // LLabel 88 // LLabel
88 // LGlobalObject 89 // LGlobalObject
89 // LGlobalReceiver 90 // LGlobalReceiver
(...skipping 14 matching lines...) Expand all
104 // LStoreNamed 105 // LStoreNamed
105 // LStoreNamedField 106 // LStoreNamedField
106 // LStoreNamedGeneric 107 // LStoreNamedGeneric
107 // LUnaryOperation 108 // LUnaryOperation
108 // LBitNotI 109 // LBitNotI
109 // LBranch 110 // LBranch
110 // LCallNew 111 // LCallNew
111 // LCheckFunction 112 // LCheckFunction
112 // LCheckInstanceType 113 // LCheckInstanceType
113 // LCheckMap 114 // LCheckMap
114 // LCheckPrototypeMaps
115 // LCheckSmi 115 // LCheckSmi
116 // LClassOfTest 116 // LClassOfTest
117 // LClassOfTestAndBranch 117 // LClassOfTestAndBranch
118 // LDeleteProperty 118 // LDeleteProperty
119 // LDoubleToI 119 // LDoubleToI
120 // LFixedArrayLength 120 // LFixedArrayLength
121 // LHasCachedArrayIndex 121 // LHasCachedArrayIndex
122 // LHasCachedArrayIndexAndBranch 122 // LHasCachedArrayIndexAndBranch
123 // LHasInstanceType 123 // LHasInstanceType
124 // LHasInstanceTypeAndBranch 124 // LHasInstanceTypeAndBranch
(...skipping 1555 matching lines...) Expand 10 before | Expand all | Expand 10 after
1680 }; 1680 };
1681 1681
1682 1682
1683 class LCheckPrototypeMaps: public LTemplateInstruction<0, 0, 0> { 1683 class LCheckPrototypeMaps: public LTemplateInstruction<0, 0, 0> {
1684 public: 1684 public:
1685 explicit LCheckPrototypeMaps(LOperand* temp) : temp_(temp) { } 1685 explicit LCheckPrototypeMaps(LOperand* temp) : temp_(temp) { }
1686 1686
1687 DECLARE_CONCRETE_INSTRUCTION(CheckPrototypeMaps, "check-prototype-maps") 1687 DECLARE_CONCRETE_INSTRUCTION(CheckPrototypeMaps, "check-prototype-maps")
1688 DECLARE_HYDROGEN_ACCESSOR(CheckPrototypeMaps) 1688 DECLARE_HYDROGEN_ACCESSOR(CheckPrototypeMaps)
1689 1689
1690 Handle<JSObject> prototype() const { return hydrogen()->prototype(); }
1690 Handle<JSObject> holder() const { return hydrogen()->holder(); } 1691 Handle<JSObject> holder() const { return hydrogen()->holder(); }
1691 Handle<Map> receiver_map() const { return hydrogen()->receiver_map(); }
1692 1692
1693 LOperand* temp() const { return temp_; } 1693 LOperand* temp() const { return temp_; }
1694 1694
1695 private: 1695 private:
1696 LOperand* temp_; 1696 LOperand* temp_;
1697 }; 1697 };
1698 1698
1699 1699
1700 class LCheckSmi: public LUnaryOperation<0> { 1700 class LCheckSmi: public LUnaryOperation<0> {
1701 public: 1701 public:
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
2039 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2039 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2040 }; 2040 };
2041 2041
2042 #undef DECLARE_HYDROGEN_ACCESSOR 2042 #undef DECLARE_HYDROGEN_ACCESSOR
2043 #undef DECLARE_INSTRUCTION 2043 #undef DECLARE_INSTRUCTION
2044 #undef DECLARE_CONCRETE_INSTRUCTION 2044 #undef DECLARE_CONCRETE_INSTRUCTION
2045 2045
2046 } } // namespace v8::internal 2046 } } // namespace v8::internal
2047 2047
2048 #endif // V8_IA32_LITHIUM_IA32_H_ 2048 #endif // V8_IA32_LITHIUM_IA32_H_
OLDNEW
« src/hydrogen-instructions.h ('K') | « src/ia32/lithium-codegen-ia32.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698