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

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

Issue 8551006: Version 3.7.9. (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 9 years, 1 month 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/arm/code-stubs-arm.cc ('k') | src/arm/lithium-arm.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 V(HasInstanceTypeAndBranch) \ 102 V(HasInstanceTypeAndBranch) \
103 V(In) \ 103 V(In) \
104 V(InstanceOf) \ 104 V(InstanceOf) \
105 V(InstanceOfKnownGlobal) \ 105 V(InstanceOfKnownGlobal) \
106 V(InstructionGap) \ 106 V(InstructionGap) \
107 V(Integer32ToDouble) \ 107 V(Integer32ToDouble) \
108 V(InvokeFunction) \ 108 V(InvokeFunction) \
109 V(IsConstructCallAndBranch) \ 109 V(IsConstructCallAndBranch) \
110 V(IsNilAndBranch) \ 110 V(IsNilAndBranch) \
111 V(IsObjectAndBranch) \ 111 V(IsObjectAndBranch) \
112 V(IsStringAndBranch) \
112 V(IsSmiAndBranch) \ 113 V(IsSmiAndBranch) \
113 V(IsUndetectableAndBranch) \ 114 V(IsUndetectableAndBranch) \
115 V(StringCompareAndBranch) \
114 V(JSArrayLength) \ 116 V(JSArrayLength) \
115 V(Label) \ 117 V(Label) \
116 V(LazyBailout) \ 118 V(LazyBailout) \
117 V(LoadContextSlot) \ 119 V(LoadContextSlot) \
118 V(LoadElements) \ 120 V(LoadElements) \
119 V(LoadExternalArrayPointer) \ 121 V(LoadExternalArrayPointer) \
120 V(LoadFunctionPrototype) \ 122 V(LoadFunctionPrototype) \
121 V(LoadGlobalCell) \ 123 V(LoadGlobalCell) \
122 V(LoadGlobalGeneric) \ 124 V(LoadGlobalGeneric) \
123 V(LoadKeyedFastDoubleElement) \ 125 V(LoadKeyedFastDoubleElement) \
(...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after
651 temps_[0] = temp; 653 temps_[0] = temp;
652 } 654 }
653 655
654 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch") 656 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch")
655 DECLARE_HYDROGEN_ACCESSOR(IsObjectAndBranch) 657 DECLARE_HYDROGEN_ACCESSOR(IsObjectAndBranch)
656 658
657 virtual void PrintDataTo(StringStream* stream); 659 virtual void PrintDataTo(StringStream* stream);
658 }; 660 };
659 661
660 662
663 class LIsStringAndBranch: public LControlInstruction<1, 1> {
664 public:
665 LIsStringAndBranch(LOperand* value, LOperand* temp) {
666 inputs_[0] = value;
667 temps_[0] = temp;
668 }
669
670 DECLARE_CONCRETE_INSTRUCTION(IsStringAndBranch, "is-string-and-branch")
671 DECLARE_HYDROGEN_ACCESSOR(IsStringAndBranch)
672
673 virtual void PrintDataTo(StringStream* stream);
674 };
675
676
661 class LIsSmiAndBranch: public LControlInstruction<1, 0> { 677 class LIsSmiAndBranch: public LControlInstruction<1, 0> {
662 public: 678 public:
663 explicit LIsSmiAndBranch(LOperand* value) { 679 explicit LIsSmiAndBranch(LOperand* value) {
664 inputs_[0] = value; 680 inputs_[0] = value;
665 } 681 }
666 682
667 DECLARE_CONCRETE_INSTRUCTION(IsSmiAndBranch, "is-smi-and-branch") 683 DECLARE_CONCRETE_INSTRUCTION(IsSmiAndBranch, "is-smi-and-branch")
668 DECLARE_HYDROGEN_ACCESSOR(IsSmiAndBranch) 684 DECLARE_HYDROGEN_ACCESSOR(IsSmiAndBranch)
669 685
670 virtual void PrintDataTo(StringStream* stream); 686 virtual void PrintDataTo(StringStream* stream);
671 }; 687 };
672 688
673 689
674 class LIsUndetectableAndBranch: public LControlInstruction<1, 1> { 690 class LIsUndetectableAndBranch: public LControlInstruction<1, 1> {
675 public: 691 public:
676 explicit LIsUndetectableAndBranch(LOperand* value, LOperand* temp) { 692 explicit LIsUndetectableAndBranch(LOperand* value, LOperand* temp) {
677 inputs_[0] = value; 693 inputs_[0] = value;
678 temps_[0] = temp; 694 temps_[0] = temp;
679 } 695 }
680 696
681 DECLARE_CONCRETE_INSTRUCTION(IsUndetectableAndBranch, 697 DECLARE_CONCRETE_INSTRUCTION(IsUndetectableAndBranch,
682 "is-undetectable-and-branch") 698 "is-undetectable-and-branch")
683 DECLARE_HYDROGEN_ACCESSOR(IsUndetectableAndBranch) 699 DECLARE_HYDROGEN_ACCESSOR(IsUndetectableAndBranch)
684 700
685 virtual void PrintDataTo(StringStream* stream); 701 virtual void PrintDataTo(StringStream* stream);
686 }; 702 };
687 703
688 704
705 class LStringCompareAndBranch: public LControlInstruction<2, 0> {
706 public:
707 LStringCompareAndBranch(LOperand* left, LOperand* right) {
708 inputs_[0] = left;
709 inputs_[1] = right;
710 }
711
712 DECLARE_CONCRETE_INSTRUCTION(StringCompareAndBranch,
713 "string-compare-and-branch")
714 DECLARE_HYDROGEN_ACCESSOR(StringCompareAndBranch)
715
716 Token::Value op() const { return hydrogen()->token(); }
717
718 virtual void PrintDataTo(StringStream* stream);
719 };
720
721
689 class LHasInstanceTypeAndBranch: public LControlInstruction<1, 0> { 722 class LHasInstanceTypeAndBranch: public LControlInstruction<1, 0> {
690 public: 723 public:
691 explicit LHasInstanceTypeAndBranch(LOperand* value) { 724 explicit LHasInstanceTypeAndBranch(LOperand* value) {
692 inputs_[0] = value; 725 inputs_[0] = value;
693 } 726 }
694 727
695 DECLARE_CONCRETE_INSTRUCTION(HasInstanceTypeAndBranch, 728 DECLARE_CONCRETE_INSTRUCTION(HasInstanceTypeAndBranch,
696 "has-instance-type-and-branch") 729 "has-instance-type-and-branch")
697 DECLARE_HYDROGEN_ACCESSOR(HasInstanceTypeAndBranch) 730 DECLARE_HYDROGEN_ACCESSOR(HasInstanceTypeAndBranch)
698 731
(...skipping 1516 matching lines...) Expand 10 before | Expand all | Expand 10 after
2215 2248
2216 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2249 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2217 }; 2250 };
2218 2251
2219 #undef DECLARE_HYDROGEN_ACCESSOR 2252 #undef DECLARE_HYDROGEN_ACCESSOR
2220 #undef DECLARE_CONCRETE_INSTRUCTION 2253 #undef DECLARE_CONCRETE_INSTRUCTION
2221 2254
2222 } } // namespace v8::internal 2255 } } // namespace v8::internal
2223 2256
2224 #endif // V8_ARM_LITHIUM_ARM_H_ 2257 #endif // V8_ARM_LITHIUM_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/arm/lithium-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698