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

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

Issue 142323009: A64: Add LSubS instruction. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 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
« no previous file with comments | « no previous file | src/a64/lithium-a64.cc » ('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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 V(StoreKeyedFixed) \ 172 V(StoreKeyedFixed) \
173 V(StoreKeyedFixedDouble) \ 173 V(StoreKeyedFixedDouble) \
174 V(StoreKeyedGeneric) \ 174 V(StoreKeyedGeneric) \
175 V(StoreNamedField) \ 175 V(StoreNamedField) \
176 V(StoreNamedGeneric) \ 176 V(StoreNamedGeneric) \
177 V(StringAdd) \ 177 V(StringAdd) \
178 V(StringCharCodeAt) \ 178 V(StringCharCodeAt) \
179 V(StringCharFromCode) \ 179 V(StringCharFromCode) \
180 V(StringCompareAndBranch) \ 180 V(StringCompareAndBranch) \
181 V(SubI) \ 181 V(SubI) \
182 V(SubS) \
182 V(TaggedToI) \ 183 V(TaggedToI) \
183 V(ThisFunction) \ 184 V(ThisFunction) \
184 V(Throw) \ 185 V(Throw) \
185 V(ToFastProperties) \ 186 V(ToFastProperties) \
186 V(TransitionElementsKind) \ 187 V(TransitionElementsKind) \
187 V(TrapAllocationMemento) \ 188 V(TrapAllocationMemento) \
188 V(TruncateDoubleToIntOrSmi) \ 189 V(TruncateDoubleToIntOrSmi) \
189 V(Typeof) \ 190 V(Typeof) \
190 V(TypeofIsAndBranch) \ 191 V(TypeofIsAndBranch) \
191 V(Uint32ToDouble) \ 192 V(Uint32ToDouble) \
(...skipping 2317 matching lines...) Expand 10 before | Expand all | Expand 10 after
2509 } 2510 }
2510 2511
2511 LOperand* left() { return inputs_[0]; } 2512 LOperand* left() { return inputs_[0]; }
2512 LOperand* right() { return inputs_[1]; } 2513 LOperand* right() { return inputs_[1]; }
2513 2514
2514 DECLARE_CONCRETE_INSTRUCTION(SubI, "sub-i") 2515 DECLARE_CONCRETE_INSTRUCTION(SubI, "sub-i")
2515 DECLARE_HYDROGEN_ACCESSOR(Sub) 2516 DECLARE_HYDROGEN_ACCESSOR(Sub)
2516 }; 2517 };
2517 2518
2518 2519
2520 class LSubS: public LTemplateInstruction<1, 2, 0> {
2521 public:
2522 LSubS(LOperand* left, LOperand* right) {
2523 inputs_[0] = left;
2524 inputs_[1] = right;
2525 }
2526
2527 LOperand* left() { return inputs_[0]; }
2528 LOperand* right() { return inputs_[1]; }
2529
2530 DECLARE_CONCRETE_INSTRUCTION(SubS, "sub-s")
2531 DECLARE_HYDROGEN_ACCESSOR(Sub)
2532 };
2533
2534
2519 class LThisFunction: public LTemplateInstruction<1, 0, 0> { 2535 class LThisFunction: public LTemplateInstruction<1, 0, 0> {
2520 public: 2536 public:
2521 DECLARE_CONCRETE_INSTRUCTION(ThisFunction, "this-function") 2537 DECLARE_CONCRETE_INSTRUCTION(ThisFunction, "this-function")
2522 DECLARE_HYDROGEN_ACCESSOR(ThisFunction) 2538 DECLARE_HYDROGEN_ACCESSOR(ThisFunction)
2523 }; 2539 };
2524 2540
2525 2541
2526 class LThrow: public LTemplateInstruction<0, 1, 0> { 2542 class LThrow: public LTemplateInstruction<0, 1, 0> {
2527 public: 2543 public:
2528 explicit LThrow(LOperand* value) { 2544 explicit LThrow(LOperand* value) {
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
2888 2904
2889 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2905 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2890 }; 2906 };
2891 2907
2892 #undef DECLARE_HYDROGEN_ACCESSOR 2908 #undef DECLARE_HYDROGEN_ACCESSOR
2893 #undef DECLARE_CONCRETE_INSTRUCTION 2909 #undef DECLARE_CONCRETE_INSTRUCTION
2894 2910
2895 } } // namespace v8::internal 2911 } } // namespace v8::internal
2896 2912
2897 #endif // V8_A64_LITHIUM_A64_H_ 2913 #endif // V8_A64_LITHIUM_A64_H_
OLDNEW
« no previous file with comments | « no previous file | src/a64/lithium-a64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698