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

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

Issue 7000021: Support symbol comparison in crankshaft. (Closed)
Patch Set: Review fixes Created 9 years, 7 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
« no previous file with comments | « no previous file | 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 V(CheckMap) \ 73 V(CheckMap) \
74 V(CheckPrototypeMaps) \ 74 V(CheckPrototypeMaps) \
75 V(CheckSmi) \ 75 V(CheckSmi) \
76 V(ClassOfTest) \ 76 V(ClassOfTest) \
77 V(ClassOfTestAndBranch) \ 77 V(ClassOfTestAndBranch) \
78 V(CmpID) \ 78 V(CmpID) \
79 V(CmpIDAndBranch) \ 79 V(CmpIDAndBranch) \
80 V(CmpJSObjectEq) \ 80 V(CmpJSObjectEq) \
81 V(CmpJSObjectEqAndBranch) \ 81 V(CmpJSObjectEqAndBranch) \
82 V(CmpMapAndBranch) \ 82 V(CmpMapAndBranch) \
83 V(CmpSymbolEq) \
84 V(CmpSymbolEqAndBranch) \
83 V(CmpT) \ 85 V(CmpT) \
84 V(CmpTAndBranch) \ 86 V(CmpTAndBranch) \
85 V(ConstantD) \ 87 V(ConstantD) \
86 V(ConstantI) \ 88 V(ConstantI) \
87 V(ConstantT) \ 89 V(ConstantT) \
88 V(Context) \ 90 V(Context) \
89 V(DeleteProperty) \ 91 V(DeleteProperty) \
90 V(Deoptimize) \ 92 V(Deoptimize) \
91 V(DivI) \ 93 V(DivI) \
92 V(DoubleToI) \ 94 V(DoubleToI) \
(...skipping 581 matching lines...) Expand 10 before | Expand all | Expand 10 after
674 LCmpJSObjectEqAndBranch(LOperand* left, LOperand* right) { 676 LCmpJSObjectEqAndBranch(LOperand* left, LOperand* right) {
675 inputs_[0] = left; 677 inputs_[0] = left;
676 inputs_[1] = right; 678 inputs_[1] = right;
677 } 679 }
678 680
679 DECLARE_CONCRETE_INSTRUCTION(CmpJSObjectEqAndBranch, 681 DECLARE_CONCRETE_INSTRUCTION(CmpJSObjectEqAndBranch,
680 "cmp-jsobject-eq-and-branch") 682 "cmp-jsobject-eq-and-branch")
681 }; 683 };
682 684
683 685
686 class LCmpSymbolEq: public LTemplateInstruction<1, 2, 0> {
687 public:
688 LCmpSymbolEq(LOperand* left, LOperand* right) {
689 inputs_[0] = left;
690 inputs_[1] = right;
691 }
692
693 DECLARE_CONCRETE_INSTRUCTION(CmpSymbolEq, "cmp-symbol-eq")
694 };
695
696
697 class LCmpSymbolEqAndBranch: public LControlInstruction<2, 0> {
698 public:
699 LCmpSymbolEqAndBranch(LOperand* left, LOperand* right) {
700 inputs_[0] = left;
701 inputs_[1] = right;
702 }
703
704 DECLARE_CONCRETE_INSTRUCTION(CmpSymbolEqAndBranch, "cmp-symbol-eq-and-branch")
705 };
706
707
684 class LIsNull: public LTemplateInstruction<1, 1, 0> { 708 class LIsNull: public LTemplateInstruction<1, 1, 0> {
685 public: 709 public:
686 explicit LIsNull(LOperand* value) { 710 explicit LIsNull(LOperand* value) {
687 inputs_[0] = value; 711 inputs_[0] = value;
688 } 712 }
689 713
690 DECLARE_CONCRETE_INSTRUCTION(IsNull, "is-null") 714 DECLARE_CONCRETE_INSTRUCTION(IsNull, "is-null")
691 DECLARE_HYDROGEN_ACCESSOR(IsNull) 715 DECLARE_HYDROGEN_ACCESSOR(IsNull)
692 716
693 bool is_strict() const { return hydrogen()->is_strict(); } 717 bool is_strict() const { return hydrogen()->is_strict(); }
(...skipping 1553 matching lines...) Expand 10 before | Expand all | Expand 10 after
2247 2271
2248 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2272 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2249 }; 2273 };
2250 2274
2251 #undef DECLARE_HYDROGEN_ACCESSOR 2275 #undef DECLARE_HYDROGEN_ACCESSOR
2252 #undef DECLARE_CONCRETE_INSTRUCTION 2276 #undef DECLARE_CONCRETE_INSTRUCTION
2253 2277
2254 } } // namespace v8::internal 2278 } } // namespace v8::internal
2255 2279
2256 #endif // V8_ARM_LITHIUM_ARM_H_ 2280 #endif // V8_ARM_LITHIUM_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/arm/lithium-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698