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

Side by Side Diff: src/x64/lithium-x64.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/x64/lithium-codegen-x64.cc ('k') | src/x64/lithium-x64.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 509 matching lines...) Expand 10 before | Expand all | Expand 10 after
633 inputs_[0] = value; 635 inputs_[0] = value;
634 } 636 }
635 637
636 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch") 638 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch")
637 DECLARE_HYDROGEN_ACCESSOR(IsObjectAndBranch) 639 DECLARE_HYDROGEN_ACCESSOR(IsObjectAndBranch)
638 640
639 virtual void PrintDataTo(StringStream* stream); 641 virtual void PrintDataTo(StringStream* stream);
640 }; 642 };
641 643
642 644
645 class LIsStringAndBranch: public LControlInstruction<1, 1> {
646 public:
647 explicit LIsStringAndBranch(LOperand* value, LOperand* temp) {
648 inputs_[0] = value;
649 temps_[0] = temp;
650 }
651
652 DECLARE_CONCRETE_INSTRUCTION(IsStringAndBranch, "is-string-and-branch")
653 DECLARE_HYDROGEN_ACCESSOR(IsStringAndBranch)
654
655 virtual void PrintDataTo(StringStream* stream);
656 };
657
658
643 class LIsSmiAndBranch: public LControlInstruction<1, 0> { 659 class LIsSmiAndBranch: public LControlInstruction<1, 0> {
644 public: 660 public:
645 explicit LIsSmiAndBranch(LOperand* value) { 661 explicit LIsSmiAndBranch(LOperand* value) {
646 inputs_[0] = value; 662 inputs_[0] = value;
647 } 663 }
648 664
649 DECLARE_CONCRETE_INSTRUCTION(IsSmiAndBranch, "is-smi-and-branch") 665 DECLARE_CONCRETE_INSTRUCTION(IsSmiAndBranch, "is-smi-and-branch")
650 DECLARE_HYDROGEN_ACCESSOR(IsSmiAndBranch) 666 DECLARE_HYDROGEN_ACCESSOR(IsSmiAndBranch)
651 667
652 virtual void PrintDataTo(StringStream* stream); 668 virtual void PrintDataTo(StringStream* stream);
653 }; 669 };
654 670
655 671
656 class LIsUndetectableAndBranch: public LControlInstruction<1, 1> { 672 class LIsUndetectableAndBranch: public LControlInstruction<1, 1> {
657 public: 673 public:
658 explicit LIsUndetectableAndBranch(LOperand* value, LOperand* temp) { 674 explicit LIsUndetectableAndBranch(LOperand* value, LOperand* temp) {
659 inputs_[0] = value; 675 inputs_[0] = value;
660 temps_[0] = temp; 676 temps_[0] = temp;
661 } 677 }
662 678
663 DECLARE_CONCRETE_INSTRUCTION(IsUndetectableAndBranch, 679 DECLARE_CONCRETE_INSTRUCTION(IsUndetectableAndBranch,
664 "is-undetectable-and-branch") 680 "is-undetectable-and-branch")
665 DECLARE_HYDROGEN_ACCESSOR(IsUndetectableAndBranch) 681 DECLARE_HYDROGEN_ACCESSOR(IsUndetectableAndBranch)
666 682
667 virtual void PrintDataTo(StringStream* stream); 683 virtual void PrintDataTo(StringStream* stream);
668 }; 684 };
669 685
670 686
687 class LStringCompareAndBranch: public LControlInstruction<2, 0> {
688 public:
689 explicit LStringCompareAndBranch(LOperand* left, LOperand* right) {
690 inputs_[0] = left;
691 inputs_[1] = right;
692 }
693
694 DECLARE_CONCRETE_INSTRUCTION(StringCompareAndBranch,
695 "string-compare-and-branch")
696 DECLARE_HYDROGEN_ACCESSOR(StringCompareAndBranch)
697
698 virtual void PrintDataTo(StringStream* stream);
699
700 Token::Value op() const { return hydrogen()->token(); }
701 };
702
703
671 class LHasInstanceTypeAndBranch: public LControlInstruction<1, 0> { 704 class LHasInstanceTypeAndBranch: public LControlInstruction<1, 0> {
672 public: 705 public:
673 explicit LHasInstanceTypeAndBranch(LOperand* value) { 706 explicit LHasInstanceTypeAndBranch(LOperand* value) {
674 inputs_[0] = value; 707 inputs_[0] = value;
675 } 708 }
676 709
677 DECLARE_CONCRETE_INSTRUCTION(HasInstanceTypeAndBranch, 710 DECLARE_CONCRETE_INSTRUCTION(HasInstanceTypeAndBranch,
678 "has-instance-type-and-branch") 711 "has-instance-type-and-branch")
679 DECLARE_HYDROGEN_ACCESSOR(HasInstanceTypeAndBranch) 712 DECLARE_HYDROGEN_ACCESSOR(HasInstanceTypeAndBranch)
680 713
(...skipping 1521 matching lines...) Expand 10 before | Expand all | Expand 10 after
2202 2235
2203 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2236 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2204 }; 2237 };
2205 2238
2206 #undef DECLARE_HYDROGEN_ACCESSOR 2239 #undef DECLARE_HYDROGEN_ACCESSOR
2207 #undef DECLARE_CONCRETE_INSTRUCTION 2240 #undef DECLARE_CONCRETE_INSTRUCTION
2208 2241
2209 } } // namespace v8::int 2242 } } // namespace v8::int
2210 2243
2211 #endif // V8_X64_LITHIUM_X64_H_ 2244 #endif // V8_X64_LITHIUM_X64_H_
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | src/x64/lithium-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698