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

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

Issue 145693002: A64: Implement HRandom. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Next try Created 6 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 | « 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 V(MulConstI) \ 151 V(MulConstI) \
152 V(MulI) \ 152 V(MulI) \
153 V(NumberTagD) \ 153 V(NumberTagD) \
154 V(NumberTagU) \ 154 V(NumberTagU) \
155 V(NumberUntagD) \ 155 V(NumberUntagD) \
156 V(OsrEntry) \ 156 V(OsrEntry) \
157 V(OuterContext) \ 157 V(OuterContext) \
158 V(Parameter) \ 158 V(Parameter) \
159 V(Power) \ 159 V(Power) \
160 V(PushArgument) \ 160 V(PushArgument) \
161 V(Random) \
161 V(RegExpLiteral) \ 162 V(RegExpLiteral) \
162 V(Return) \ 163 V(Return) \
163 V(SeqStringSetChar) \ 164 V(SeqStringSetChar) \
164 V(ShiftI) \ 165 V(ShiftI) \
165 V(SmiTag) \ 166 V(SmiTag) \
166 V(SmiUntag) \ 167 V(SmiUntag) \
167 V(StackCheck) \ 168 V(StackCheck) \
168 V(StoreContextSlot) \ 169 V(StoreContextSlot) \
169 V(StoreGlobalCell) \ 170 V(StoreGlobalCell) \
170 V(StoreGlobalGeneric) \ 171 V(StoreGlobalGeneric) \
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
605 606
606 LOperand* size() { return inputs_[0]; } 607 LOperand* size() { return inputs_[0]; }
607 LOperand* temp1() { return temps_[0]; } 608 LOperand* temp1() { return temps_[0]; }
608 LOperand* temp2() { return temps_[1]; } 609 LOperand* temp2() { return temps_[1]; }
609 610
610 DECLARE_CONCRETE_INSTRUCTION(Allocate, "allocate") 611 DECLARE_CONCRETE_INSTRUCTION(Allocate, "allocate")
611 DECLARE_HYDROGEN_ACCESSOR(Allocate) 612 DECLARE_HYDROGEN_ACCESSOR(Allocate)
612 }; 613 };
613 614
614 615
616 class LRandom: public LTemplateInstruction<1, 1, 0> {
617 public:
618 explicit LRandom(LOperand* global_object) {
619 inputs_[0] = global_object;
620 }
621
622 LOperand* global_object() { return inputs_[0]; }
623
624 DECLARE_CONCRETE_INSTRUCTION(Random, "random")
625 DECLARE_HYDROGEN_ACCESSOR(Random)
626 };
627
628
615 class LRegExpLiteral: public LTemplateInstruction<1, 0, 0> { 629 class LRegExpLiteral: public LTemplateInstruction<1, 0, 0> {
616 public: 630 public:
617 DECLARE_CONCRETE_INSTRUCTION(RegExpLiteral, "regexp-literal") 631 DECLARE_CONCRETE_INSTRUCTION(RegExpLiteral, "regexp-literal")
618 DECLARE_HYDROGEN_ACCESSOR(RegExpLiteral) 632 DECLARE_HYDROGEN_ACCESSOR(RegExpLiteral)
619 }; 633 };
620 634
621 635
622 class LApplyArguments: public LTemplateInstruction<1, 4, 0> { 636 class LApplyArguments: public LTemplateInstruction<1, 4, 0> {
623 public: 637 public:
624 LApplyArguments(LOperand* function, 638 LApplyArguments(LOperand* function,
(...skipping 2202 matching lines...) Expand 10 before | Expand all | Expand 10 after
2827 2841
2828 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2842 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2829 }; 2843 };
2830 2844
2831 #undef DECLARE_HYDROGEN_ACCESSOR 2845 #undef DECLARE_HYDROGEN_ACCESSOR
2832 #undef DECLARE_CONCRETE_INSTRUCTION 2846 #undef DECLARE_CONCRETE_INSTRUCTION
2833 2847
2834 } } // namespace v8::internal 2848 } } // namespace v8::internal
2835 2849
2836 #endif // V8_A64_LITHIUM_A64_H_ 2850 #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