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

Side by Side Diff: src/ia32/lithium-ia32.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 | « src/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/lithium-ia32.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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 V(CheckMap) \ 66 V(CheckMap) \
67 V(CheckNonSmi) \ 67 V(CheckNonSmi) \
68 V(CheckPrototypeMaps) \ 68 V(CheckPrototypeMaps) \
69 V(CheckSmi) \ 69 V(CheckSmi) \
70 V(ClassOfTest) \ 70 V(ClassOfTest) \
71 V(ClassOfTestAndBranch) \ 71 V(ClassOfTestAndBranch) \
72 V(CmpID) \ 72 V(CmpID) \
73 V(CmpIDAndBranch) \ 73 V(CmpIDAndBranch) \
74 V(CmpJSObjectEq) \ 74 V(CmpJSObjectEq) \
75 V(CmpJSObjectEqAndBranch) \ 75 V(CmpJSObjectEqAndBranch) \
76 V(CmpSymbolEq) \
77 V(CmpSymbolEqAndBranch) \
76 V(CmpMapAndBranch) \ 78 V(CmpMapAndBranch) \
77 V(CmpT) \ 79 V(CmpT) \
78 V(CmpTAndBranch) \ 80 V(CmpTAndBranch) \
79 V(ConstantD) \ 81 V(ConstantD) \
80 V(ConstantI) \ 82 V(ConstantI) \
81 V(ConstantT) \ 83 V(ConstantT) \
82 V(Context) \ 84 V(Context) \
83 V(DeleteProperty) \ 85 V(DeleteProperty) \
84 V(Deoptimize) \ 86 V(Deoptimize) \
85 V(DivI) \ 87 V(DivI) \
(...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after
659 LCmpJSObjectEqAndBranch(LOperand* left, LOperand* right) { 661 LCmpJSObjectEqAndBranch(LOperand* left, LOperand* right) {
660 inputs_[0] = left; 662 inputs_[0] = left;
661 inputs_[1] = right; 663 inputs_[1] = right;
662 } 664 }
663 665
664 DECLARE_CONCRETE_INSTRUCTION(CmpJSObjectEqAndBranch, 666 DECLARE_CONCRETE_INSTRUCTION(CmpJSObjectEqAndBranch,
665 "cmp-jsobject-eq-and-branch") 667 "cmp-jsobject-eq-and-branch")
666 }; 668 };
667 669
668 670
671 class LCmpSymbolEq: public LTemplateInstruction<1, 2, 0> {
672 public:
673 LCmpSymbolEq(LOperand* left, LOperand* right) {
674 inputs_[0] = left;
675 inputs_[1] = right;
676 }
677
678 DECLARE_CONCRETE_INSTRUCTION(CmpSymbolEq, "cmp-symbol-eq")
679 };
680
681
682 class LCmpSymbolEqAndBranch: public LControlInstruction<2, 0> {
683 public:
684 LCmpSymbolEqAndBranch(LOperand* left, LOperand* right) {
685 inputs_[0] = left;
686 inputs_[1] = right;
687 }
688
689 DECLARE_CONCRETE_INSTRUCTION(CmpSymbolEqAndBranch, "cmp-symbol-eq-and-branch")
690 };
691
692
669 class LIsNull: public LTemplateInstruction<1, 1, 0> { 693 class LIsNull: public LTemplateInstruction<1, 1, 0> {
670 public: 694 public:
671 explicit LIsNull(LOperand* value) { 695 explicit LIsNull(LOperand* value) {
672 inputs_[0] = value; 696 inputs_[0] = value;
673 } 697 }
674 698
675 DECLARE_CONCRETE_INSTRUCTION(IsNull, "is-null") 699 DECLARE_CONCRETE_INSTRUCTION(IsNull, "is-null")
676 DECLARE_HYDROGEN_ACCESSOR(IsNull) 700 DECLARE_HYDROGEN_ACCESSOR(IsNull)
677 701
678 bool is_strict() const { return hydrogen()->is_strict(); } 702 bool is_strict() const { return hydrogen()->is_strict(); }
(...skipping 1619 matching lines...) Expand 10 before | Expand all | Expand 10 after
2298 2322
2299 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2323 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2300 }; 2324 };
2301 2325
2302 #undef DECLARE_HYDROGEN_ACCESSOR 2326 #undef DECLARE_HYDROGEN_ACCESSOR
2303 #undef DECLARE_CONCRETE_INSTRUCTION 2327 #undef DECLARE_CONCRETE_INSTRUCTION
2304 2328
2305 } } // namespace v8::internal 2329 } } // namespace v8::internal
2306 2330
2307 #endif // V8_IA32_LITHIUM_IA32_H_ 2331 #endif // V8_IA32_LITHIUM_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/lithium-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698