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

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

Issue 10984057: Replace a set of Hydrogen instructions with rotate instructions on ARM (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 2 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 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 V(Mul) \ 146 V(Mul) \
147 V(ObjectLiteral) \ 147 V(ObjectLiteral) \
148 V(OsrEntry) \ 148 V(OsrEntry) \
149 V(OuterContext) \ 149 V(OuterContext) \
150 V(Parameter) \ 150 V(Parameter) \
151 V(Power) \ 151 V(Power) \
152 V(PushArgument) \ 152 V(PushArgument) \
153 V(Random) \ 153 V(Random) \
154 V(RegExpLiteral) \ 154 V(RegExpLiteral) \
155 V(Return) \ 155 V(Return) \
156 V(Ror) \
156 V(Sar) \ 157 V(Sar) \
157 V(Shl) \ 158 V(Shl) \
158 V(Shr) \ 159 V(Shr) \
159 V(Simulate) \ 160 V(Simulate) \
160 V(SoftDeoptimize) \ 161 V(SoftDeoptimize) \
161 V(StackCheck) \ 162 V(StackCheck) \
162 V(StoreContextSlot) \ 163 V(StoreContextSlot) \
163 V(StoreGlobalCell) \ 164 V(StoreGlobalCell) \
164 V(StoreGlobalGeneric) \ 165 V(StoreGlobalGeneric) \
165 V(StoreKeyedFastDoubleElement) \ 166 V(StoreKeyedFastDoubleElement) \
(...skipping 3457 matching lines...) Expand 10 before | Expand all | Expand 10 after
3623 HValue* left, 3624 HValue* left,
3624 HValue* right); 3625 HValue* right);
3625 3626
3626 DECLARE_CONCRETE_INSTRUCTION(Shr) 3627 DECLARE_CONCRETE_INSTRUCTION(Shr)
3627 3628
3628 protected: 3629 protected:
3629 virtual bool DataEquals(HValue* other) { return true; } 3630 virtual bool DataEquals(HValue* other) { return true; }
3630 }; 3631 };
3631 3632
3632 3633
3634 class HRor: public HBitwiseBinaryOperation {
3635 public:
3636 HRor(HValue* context, HValue* left, HValue* right)
3637 : HBitwiseBinaryOperation(context, left, right) {
3638 ChangeRepresentation(Representation::Integer32());
Erik Corry 2012/09/27 14:45:44 Why is HRor different from all other bit ops here?
3639 ClearAllSideEffects();
3640 }
3641
3642 virtual Range* InferRange(Zone* zone);
3643 static HInstruction* NewHRor(Zone* zone,
3644 HValue* context,
3645 HValue* left,
3646 HValue* right);
3647
3648 DECLARE_CONCRETE_INSTRUCTION(Ror)
3649
3650 protected:
3651 virtual bool DataEquals(HValue* other) { return true; }
3652 };
3653
3654
3633 class HSar: public HBitwiseBinaryOperation { 3655 class HSar: public HBitwiseBinaryOperation {
3634 public: 3656 public:
3635 HSar(HValue* context, HValue* left, HValue* right) 3657 HSar(HValue* context, HValue* left, HValue* right)
3636 : HBitwiseBinaryOperation(context, left, right) { } 3658 : HBitwiseBinaryOperation(context, left, right) { }
3637 3659
3638 virtual Range* InferRange(Zone* zone); 3660 virtual Range* InferRange(Zone* zone);
3639 3661
3640 static HInstruction* NewHSar(Zone* zone, 3662 static HInstruction* NewHSar(Zone* zone,
3641 HValue* context, 3663 HValue* context,
3642 HValue* left, 3664 HValue* left,
(...skipping 1639 matching lines...) Expand 10 before | Expand all | Expand 10 after
5282 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex); 5304 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex);
5283 }; 5305 };
5284 5306
5285 5307
5286 #undef DECLARE_INSTRUCTION 5308 #undef DECLARE_INSTRUCTION
5287 #undef DECLARE_CONCRETE_INSTRUCTION 5309 #undef DECLARE_CONCRETE_INSTRUCTION
5288 5310
5289 } } // namespace v8::internal 5311 } } // namespace v8::internal
5290 5312
5291 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 5313 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698