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

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

Issue 7170012: Crankshaft support for polymorphic array handling (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: address comments; add implemention for ARM and x64 Created 9 years, 6 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
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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 V(CheckInstanceType) \ 72 V(CheckInstanceType) \
73 V(CheckMap) \ 73 V(CheckMap) \
74 V(CheckNonSmi) \ 74 V(CheckNonSmi) \
75 V(CheckPrototypeMaps) \ 75 V(CheckPrototypeMaps) \
76 V(CheckSmi) \ 76 V(CheckSmi) \
77 V(ClampDToUint8) \ 77 V(ClampDToUint8) \
78 V(ClampIToUint8) \ 78 V(ClampIToUint8) \
79 V(ClampTToUint8) \ 79 V(ClampTToUint8) \
80 V(ClassOfTest) \ 80 V(ClassOfTest) \
81 V(ClassOfTestAndBranch) \ 81 V(ClassOfTestAndBranch) \
82 V(CmpConstantEq) \
83 V(CmpConstantEqAndBranch) \
82 V(CmpID) \ 84 V(CmpID) \
83 V(CmpIDAndBranch) \ 85 V(CmpIDAndBranch) \
84 V(CmpJSObjectEq) \ 86 V(CmpJSObjectEq) \
85 V(CmpJSObjectEqAndBranch) \ 87 V(CmpJSObjectEqAndBranch) \
86 V(CmpMapAndBranch) \ 88 V(CmpMapAndBranch) \
87 V(CmpSymbolEq) \ 89 V(CmpSymbolEq) \
88 V(CmpSymbolEqAndBranch) \ 90 V(CmpSymbolEqAndBranch) \
89 V(CmpT) \ 91 V(CmpT) \
90 V(ConstantD) \ 92 V(ConstantD) \
91 V(ConstantI) \ 93 V(ConstantI) \
92 V(ConstantT) \ 94 V(ConstantT) \
93 V(Context) \ 95 V(Context) \
94 V(DeleteProperty) \ 96 V(DeleteProperty) \
95 V(Deoptimize) \ 97 V(Deoptimize) \
96 V(DivI) \ 98 V(DivI) \
97 V(DoubleToI) \ 99 V(DoubleToI) \
100 V(ElementsKind) \
98 V(ExternalArrayLength) \ 101 V(ExternalArrayLength) \
99 V(FixedArrayLength) \ 102 V(FixedArrayLength) \
100 V(FunctionLiteral) \ 103 V(FunctionLiteral) \
101 V(GetCachedArrayIndex) \ 104 V(GetCachedArrayIndex) \
102 V(GlobalObject) \ 105 V(GlobalObject) \
103 V(GlobalReceiver) \ 106 V(GlobalReceiver) \
104 V(Goto) \ 107 V(Goto) \
105 V(HasCachedArrayIndex) \ 108 V(HasCachedArrayIndex) \
106 V(HasCachedArrayIndexAndBranch) \ 109 V(HasCachedArrayIndexAndBranch) \
107 V(HasInstanceType) \ 110 V(HasInstanceType) \
(...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after
655 public: 658 public:
656 LCmpSymbolEqAndBranch(LOperand* left, LOperand* right) { 659 LCmpSymbolEqAndBranch(LOperand* left, LOperand* right) {
657 inputs_[0] = left; 660 inputs_[0] = left;
658 inputs_[1] = right; 661 inputs_[1] = right;
659 } 662 }
660 663
661 DECLARE_CONCRETE_INSTRUCTION(CmpSymbolEqAndBranch, "cmp-symbol-eq-and-branch") 664 DECLARE_CONCRETE_INSTRUCTION(CmpSymbolEqAndBranch, "cmp-symbol-eq-and-branch")
662 }; 665 };
663 666
664 667
668 class LCmpConstantEq: public LTemplateInstruction<1, 1, 0> {
669 public:
670 explicit LCmpConstantEq(LOperand* left) {
671 inputs_[0] = left;
672 }
673
674 DECLARE_CONCRETE_INSTRUCTION(CmpConstantEq, "cmp-constant-eq")
675 DECLARE_HYDROGEN_ACCESSOR(CompareConstantEq)
676 };
677
678
679 class LCmpConstantEqAndBranch: public LControlInstruction<1, 0> {
680 public:
681 explicit LCmpConstantEqAndBranch(LOperand* left) {
682 inputs_[0] = left;
683 }
684
685 DECLARE_CONCRETE_INSTRUCTION(CmpConstantEqAndBranch,
686 "cmp-constant-eq-and-branch")
687 DECLARE_HYDROGEN_ACCESSOR(CompareConstantEq)
688 };
689
690
665 class LIsNull: public LTemplateInstruction<1, 1, 0> { 691 class LIsNull: public LTemplateInstruction<1, 1, 0> {
666 public: 692 public:
667 explicit LIsNull(LOperand* value) { 693 explicit LIsNull(LOperand* value) {
668 inputs_[0] = value; 694 inputs_[0] = value;
669 } 695 }
670 696
671 DECLARE_CONCRETE_INSTRUCTION(IsNull, "is-null") 697 DECLARE_CONCRETE_INSTRUCTION(IsNull, "is-null")
672 DECLARE_HYDROGEN_ACCESSOR(IsNull) 698 DECLARE_HYDROGEN_ACCESSOR(IsNull)
673 699
674 bool is_strict() const { return hydrogen()->is_strict(); } 700 bool is_strict() const { return hydrogen()->is_strict(); }
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
1056 public: 1082 public:
1057 explicit LFixedArrayLength(LOperand* value) { 1083 explicit LFixedArrayLength(LOperand* value) {
1058 inputs_[0] = value; 1084 inputs_[0] = value;
1059 } 1085 }
1060 1086
1061 DECLARE_CONCRETE_INSTRUCTION(FixedArrayLength, "fixed-array-length") 1087 DECLARE_CONCRETE_INSTRUCTION(FixedArrayLength, "fixed-array-length")
1062 DECLARE_HYDROGEN_ACCESSOR(FixedArrayLength) 1088 DECLARE_HYDROGEN_ACCESSOR(FixedArrayLength)
1063 }; 1089 };
1064 1090
1065 1091
1092 class LElementsKind: public LTemplateInstruction<1, 1, 0> {
1093 public:
1094 explicit LElementsKind(LOperand* value) {
1095 inputs_[0] = value;
1096 }
1097
1098 DECLARE_CONCRETE_INSTRUCTION(ElementsKind, "elements-kind")
1099 DECLARE_HYDROGEN_ACCESSOR(ElementsKind)
1100 };
1101
1102
1066 class LValueOf: public LTemplateInstruction<1, 1, 0> { 1103 class LValueOf: public LTemplateInstruction<1, 1, 0> {
1067 public: 1104 public:
1068 explicit LValueOf(LOperand* value) { 1105 explicit LValueOf(LOperand* value) {
1069 inputs_[0] = value; 1106 inputs_[0] = value;
1070 } 1107 }
1071 1108
1072 DECLARE_CONCRETE_INSTRUCTION(ValueOf, "value-of") 1109 DECLARE_CONCRETE_INSTRUCTION(ValueOf, "value-of")
1073 DECLARE_HYDROGEN_ACCESSOR(ValueOf) 1110 DECLARE_HYDROGEN_ACCESSOR(ValueOf)
1074 }; 1111 };
1075 1112
(...skipping 1198 matching lines...) Expand 10 before | Expand all | Expand 10 after
2274 2311
2275 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2312 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2276 }; 2313 };
2277 2314
2278 #undef DECLARE_HYDROGEN_ACCESSOR 2315 #undef DECLARE_HYDROGEN_ACCESSOR
2279 #undef DECLARE_CONCRETE_INSTRUCTION 2316 #undef DECLARE_CONCRETE_INSTRUCTION
2280 2317
2281 } } // namespace v8::int 2318 } } // namespace v8::int
2282 2319
2283 #endif // V8_X64_LITHIUM_X64_H_ 2320 #endif // V8_X64_LITHIUM_X64_H_
OLDNEW
« src/objects-inl.h ('K') | « 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