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

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

Issue 10824079: Use a special EnumLength field to indicate number of valid enum cache values. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments Created 8 years, 3 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
« 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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 V(LoadFunctionPrototype) \ 119 V(LoadFunctionPrototype) \
120 V(LoadGlobalCell) \ 120 V(LoadGlobalCell) \
121 V(LoadGlobalGeneric) \ 121 V(LoadGlobalGeneric) \
122 V(LoadKeyedFastElement) \ 122 V(LoadKeyedFastElement) \
123 V(LoadKeyedFastDoubleElement) \ 123 V(LoadKeyedFastDoubleElement) \
124 V(LoadKeyedGeneric) \ 124 V(LoadKeyedGeneric) \
125 V(LoadKeyedSpecializedArrayElement) \ 125 V(LoadKeyedSpecializedArrayElement) \
126 V(LoadNamedField) \ 126 V(LoadNamedField) \
127 V(LoadNamedFieldPolymorphic) \ 127 V(LoadNamedFieldPolymorphic) \
128 V(LoadNamedGeneric) \ 128 V(LoadNamedGeneric) \
129 V(MapEnumLength) \
129 V(MathFloorOfDiv) \ 130 V(MathFloorOfDiv) \
130 V(MathMinMax) \ 131 V(MathMinMax) \
131 V(MathPowHalf) \ 132 V(MathPowHalf) \
132 V(ModI) \ 133 V(ModI) \
133 V(MulI) \ 134 V(MulI) \
134 V(NumberTagD) \ 135 V(NumberTagD) \
135 V(NumberTagI) \ 136 V(NumberTagI) \
136 V(NumberTagU) \ 137 V(NumberTagU) \
137 V(NumberUntagD) \ 138 V(NumberUntagD) \
138 V(ObjectLiteral) \ 139 V(ObjectLiteral) \
(...skipping 873 matching lines...) Expand 10 before | Expand all | Expand 10 after
1012 explicit LFixedArrayBaseLength(LOperand* value) { 1013 explicit LFixedArrayBaseLength(LOperand* value) {
1013 inputs_[0] = value; 1014 inputs_[0] = value;
1014 } 1015 }
1015 1016
1016 DECLARE_CONCRETE_INSTRUCTION(FixedArrayBaseLength, 1017 DECLARE_CONCRETE_INSTRUCTION(FixedArrayBaseLength,
1017 "fixed-array-base-length") 1018 "fixed-array-base-length")
1018 DECLARE_HYDROGEN_ACCESSOR(FixedArrayBaseLength) 1019 DECLARE_HYDROGEN_ACCESSOR(FixedArrayBaseLength)
1019 }; 1020 };
1020 1021
1021 1022
1023 class LMapEnumLength: public LTemplateInstruction<1, 1, 0> {
1024 public:
1025 explicit LMapEnumLength(LOperand* value) {
1026 inputs_[0] = value;
1027 }
1028
1029 DECLARE_CONCRETE_INSTRUCTION(MapEnumLength, "map-enum-length")
1030 };
1031
1032
1022 class LElementsKind: public LTemplateInstruction<1, 1, 0> { 1033 class LElementsKind: public LTemplateInstruction<1, 1, 0> {
1023 public: 1034 public:
1024 explicit LElementsKind(LOperand* value) { 1035 explicit LElementsKind(LOperand* value) {
1025 inputs_[0] = value; 1036 inputs_[0] = value;
1026 } 1037 }
1027 1038
1028 DECLARE_CONCRETE_INSTRUCTION(ElementsKind, "elements-kind") 1039 DECLARE_CONCRETE_INSTRUCTION(ElementsKind, "elements-kind")
1029 DECLARE_HYDROGEN_ACCESSOR(ElementsKind) 1040 DECLARE_HYDROGEN_ACCESSOR(ElementsKind)
1030 }; 1041 };
1031 1042
(...skipping 1515 matching lines...) Expand 10 before | Expand all | Expand 10 after
2547 2558
2548 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2559 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2549 }; 2560 };
2550 2561
2551 #undef DECLARE_HYDROGEN_ACCESSOR 2562 #undef DECLARE_HYDROGEN_ACCESSOR
2552 #undef DECLARE_CONCRETE_INSTRUCTION 2563 #undef DECLARE_CONCRETE_INSTRUCTION
2553 2564
2554 } } // namespace v8::internal 2565 } } // namespace v8::internal
2555 2566
2556 #endif // V8_IA32_LITHIUM_IA32_H_ 2567 #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