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

Unified Diff: src/ia32/lithium-ia32.h

Issue 6461021: Add a genuine unary minus instruction to Crankshaft.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: src/ia32/lithium-ia32.h
===================================================================
--- src/ia32/lithium-ia32.h (revision 6698)
+++ src/ia32/lithium-ia32.h (working copy)
@@ -126,6 +126,9 @@
V(LoadNamedGeneric) \
V(ModI) \
V(MulI) \
+ V(NegI) \
+ V(NegD) \
+ V(NegT) \
V(NumberTagD) \
V(NumberTagI) \
V(NumberUntagD) \
@@ -1051,6 +1054,38 @@
};
+class LNegI: public LTemplateInstruction<1, 1, 0> {
+ public:
+ explicit LNegI(LOperand* value) {
Kevin Millikin (Chromium) 2011/02/11 12:12:59 I've been trying to create simple accessors for th
fschneider 2011/02/11 12:44:12 Done.
+ inputs_[0] = value;
+ }
+
+ DECLARE_CONCRETE_INSTRUCTION(NegI, "neg-i")
+ DECLARE_HYDROGEN_ACCESSOR(Neg)
+};
+
+
+class LNegD: public LTemplateInstruction<1, 1, 1> {
+ public:
+ explicit LNegD(LOperand* value, LOperand* temp) {
+ inputs_[0] = value;
+ temps_[0] = temp;
+ }
+
+ DECLARE_CONCRETE_INSTRUCTION(NegD, "neg-d")
+};
+
+
+class LNegT: public LTemplateInstruction<1, 1, 0> {
+ public:
+ explicit LNegT(LOperand* value) {
+ inputs_[0] = value;
+ }
+
+ DECLARE_CONCRETE_INSTRUCTION(NegT, "neg-t")
+};
+
+
class LAddI: public LTemplateInstruction<1, 2, 0> {
public:
LAddI(LOperand* left, LOperand* right) {

Powered by Google App Engine
This is Rietveld 408576698