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

Side by Side Diff: src/x64/lithium-x64.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: u Created 8 years, 4 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 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 V(ConstantT) \ 89 V(ConstantT) \
90 V(Context) \ 90 V(Context) \
91 V(DeclareGlobals) \ 91 V(DeclareGlobals) \
92 V(DeleteProperty) \ 92 V(DeleteProperty) \
93 V(Deoptimize) \ 93 V(Deoptimize) \
94 V(DivI) \ 94 V(DivI) \
95 V(DoubleToI) \ 95 V(DoubleToI) \
96 V(ElementsKind) \ 96 V(ElementsKind) \
97 V(FastLiteral) \ 97 V(FastLiteral) \
98 V(FixedArrayBaseLength) \ 98 V(FixedArrayBaseLength) \
99 V(MapEnumLength) \
99 V(FunctionLiteral) \ 100 V(FunctionLiteral) \
100 V(GetCachedArrayIndex) \ 101 V(GetCachedArrayIndex) \
101 V(GlobalObject) \ 102 V(GlobalObject) \
102 V(GlobalReceiver) \ 103 V(GlobalReceiver) \
103 V(Goto) \ 104 V(Goto) \
104 V(HasCachedArrayIndexAndBranch) \ 105 V(HasCachedArrayIndexAndBranch) \
105 V(HasInstanceTypeAndBranch) \ 106 V(HasInstanceTypeAndBranch) \
106 V(In) \ 107 V(In) \
107 V(InstanceOf) \ 108 V(InstanceOf) \
108 V(InstanceOfKnownGlobal) \ 109 V(InstanceOfKnownGlobal) \
(...skipping 878 matching lines...) Expand 10 before | Expand all | Expand 10 after
987 explicit LFixedArrayBaseLength(LOperand* value) { 988 explicit LFixedArrayBaseLength(LOperand* value) {
988 inputs_[0] = value; 989 inputs_[0] = value;
989 } 990 }
990 991
991 DECLARE_CONCRETE_INSTRUCTION(FixedArrayBaseLength, 992 DECLARE_CONCRETE_INSTRUCTION(FixedArrayBaseLength,
992 "fixed-array-base-length") 993 "fixed-array-base-length")
993 DECLARE_HYDROGEN_ACCESSOR(FixedArrayBaseLength) 994 DECLARE_HYDROGEN_ACCESSOR(FixedArrayBaseLength)
994 }; 995 };
995 996
996 997
998 class LMapEnumLength: public LTemplateInstruction<1, 1, 0> {
999 public:
1000 explicit LMapEnumLength(LOperand* value) {
1001 inputs_[0] = value;
1002 }
1003
1004 DECLARE_CONCRETE_INSTRUCTION(MapEnumLength,
1005 "map-enum-length")
1006 DECLARE_HYDROGEN_ACCESSOR(MapEnumLength)
1007 };
1008
1009
997 class LElementsKind: public LTemplateInstruction<1, 1, 0> { 1010 class LElementsKind: public LTemplateInstruction<1, 1, 0> {
998 public: 1011 public:
999 explicit LElementsKind(LOperand* value) { 1012 explicit LElementsKind(LOperand* value) {
1000 inputs_[0] = value; 1013 inputs_[0] = value;
1001 } 1014 }
1002 1015
1003 DECLARE_CONCRETE_INSTRUCTION(ElementsKind, "elements-kind") 1016 DECLARE_CONCRETE_INSTRUCTION(ElementsKind, "elements-kind")
1004 DECLARE_HYDROGEN_ACCESSOR(ElementsKind) 1017 DECLARE_HYDROGEN_ACCESSOR(ElementsKind)
1005 }; 1018 };
1006 1019
(...skipping 1338 matching lines...) Expand 10 before | Expand all | Expand 10 after
2345 2358
2346 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2359 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2347 }; 2360 };
2348 2361
2349 #undef DECLARE_HYDROGEN_ACCESSOR 2362 #undef DECLARE_HYDROGEN_ACCESSOR
2350 #undef DECLARE_CONCRETE_INSTRUCTION 2363 #undef DECLARE_CONCRETE_INSTRUCTION
2351 2364
2352 } } // namespace v8::int 2365 } } // namespace v8::int
2353 2366
2354 #endif // V8_X64_LITHIUM_X64_H_ 2367 #endif // V8_X64_LITHIUM_X64_H_
OLDNEW
« src/objects.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