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

Side by Side Diff: src/hydrogen-instructions.h

Issue 6113004: Version 3.0.7 (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: 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 | Annotate | Revision Log
« no previous file with comments | « src/hydrogen.cc ('k') | src/ia32/code-stubs-ia32.h » ('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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 // HBitAnd 66 // HBitAnd
67 // HBitOr 67 // HBitOr
68 // HBitXor 68 // HBitXor
69 // HSar 69 // HSar
70 // HShl 70 // HShl
71 // HShr 71 // HShr
72 // HBoundsCheck 72 // HBoundsCheck
73 // HCompare 73 // HCompare
74 // HCompareJSObjectEq 74 // HCompareJSObjectEq
75 // HInstanceOf 75 // HInstanceOf
76 // HInstanceOfKnownGlobal
76 // HLoadKeyed 77 // HLoadKeyed
77 // HLoadKeyedFastElement 78 // HLoadKeyedFastElement
78 // HLoadKeyedGeneric 79 // HLoadKeyedGeneric
79 // HPower 80 // HPower
80 // HStoreNamed 81 // HStoreNamed
81 // HStoreNamedField 82 // HStoreNamedField
82 // HStoreNamedGeneric 83 // HStoreNamedGeneric
83 // HBlockEntry 84 // HBlockEntry
84 // HCall 85 // HCall
85 // HCallConstantFunction 86 // HCallConstantFunction
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 V(DeleteProperty) \ 204 V(DeleteProperty) \
204 V(Deoptimize) \ 205 V(Deoptimize) \
205 V(Div) \ 206 V(Div) \
206 V(EnterInlined) \ 207 V(EnterInlined) \
207 V(FixedArrayLength) \ 208 V(FixedArrayLength) \
208 V(FunctionLiteral) \ 209 V(FunctionLiteral) \
209 V(GlobalObject) \ 210 V(GlobalObject) \
210 V(GlobalReceiver) \ 211 V(GlobalReceiver) \
211 V(Goto) \ 212 V(Goto) \
212 V(InstanceOf) \ 213 V(InstanceOf) \
214 V(InstanceOfKnownGlobal) \
213 V(IsNull) \ 215 V(IsNull) \
214 V(IsObject) \ 216 V(IsObject) \
215 V(IsSmi) \ 217 V(IsSmi) \
216 V(HasInstanceType) \ 218 V(HasInstanceType) \
217 V(HasCachedArrayIndex) \ 219 V(HasCachedArrayIndex) \
218 V(JSArrayLength) \ 220 V(JSArrayLength) \
219 V(ClassOfTest) \ 221 V(ClassOfTest) \
220 V(LeaveInlined) \ 222 V(LeaveInlined) \
221 V(LoadElements) \ 223 V(LoadElements) \
222 V(LoadGlobal) \ 224 V(LoadGlobal) \
(...skipping 2032 matching lines...) Expand 10 before | Expand all | Expand 10 after
2255 virtual bool EmitAtUses() const { return uses()->length() <= 1; } 2257 virtual bool EmitAtUses() const { return uses()->length() <= 1; }
2256 2258
2257 virtual Representation RequiredInputRepresentation(int index) const { 2259 virtual Representation RequiredInputRepresentation(int index) const {
2258 return Representation::Tagged(); 2260 return Representation::Tagged();
2259 } 2261 }
2260 2262
2261 DECLARE_CONCRETE_INSTRUCTION(InstanceOf, "instance_of") 2263 DECLARE_CONCRETE_INSTRUCTION(InstanceOf, "instance_of")
2262 }; 2264 };
2263 2265
2264 2266
2267 class HInstanceOfKnownGlobal: public HUnaryOperation {
2268 public:
2269 HInstanceOfKnownGlobal(HValue* left, Handle<JSFunction> right)
2270 : HUnaryOperation(left), function_(right) {
2271 set_representation(Representation::Tagged());
2272 SetFlagMask(AllSideEffects());
2273 }
2274
2275 Handle<JSFunction> function() { return function_; }
2276
2277 virtual Representation RequiredInputRepresentation(int index) const {
2278 return Representation::Tagged();
2279 }
2280
2281 DECLARE_CONCRETE_INSTRUCTION(InstanceOfKnownGlobal,
2282 "instance_of_known_global")
2283
2284 private:
2285 Handle<JSFunction> function_;
2286 };
2287
2288
2265 class HPower: public HBinaryOperation { 2289 class HPower: public HBinaryOperation {
2266 public: 2290 public:
2267 HPower(HValue* left, HValue* right) 2291 HPower(HValue* left, HValue* right)
2268 : HBinaryOperation(left, right) { 2292 : HBinaryOperation(left, right) {
2269 set_representation(Representation::Double()); 2293 set_representation(Representation::Double());
2270 SetFlag(kUseGVN); 2294 SetFlag(kUseGVN);
2271 } 2295 }
2272 2296
2273 virtual Representation RequiredInputRepresentation(int index) const { 2297 virtual Representation RequiredInputRepresentation(int index) const {
2274 return (index == 1) ? Representation::None() : Representation::Double(); 2298 return (index == 1) ? Representation::None() : Representation::Double();
(...skipping 726 matching lines...) Expand 10 before | Expand all | Expand 10 after
3001 HValue* object() const { return left(); } 3025 HValue* object() const { return left(); }
3002 HValue* key() const { return right(); } 3026 HValue* key() const { return right(); }
3003 }; 3027 };
3004 3028
3005 #undef DECLARE_INSTRUCTION 3029 #undef DECLARE_INSTRUCTION
3006 #undef DECLARE_CONCRETE_INSTRUCTION 3030 #undef DECLARE_CONCRETE_INSTRUCTION
3007 3031
3008 } } // namespace v8::internal 3032 } } // namespace v8::internal
3009 3033
3010 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 3034 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/ia32/code-stubs-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698