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

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: 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 V(ConstantT) \ 83 V(ConstantT) \
84 V(Context) \ 84 V(Context) \
85 V(DeclareGlobals) \ 85 V(DeclareGlobals) \
86 V(DeleteProperty) \ 86 V(DeleteProperty) \
87 V(Deoptimize) \ 87 V(Deoptimize) \
88 V(DivI) \ 88 V(DivI) \
89 V(DoubleToI) \ 89 V(DoubleToI) \
90 V(ElementsKind) \ 90 V(ElementsKind) \
91 V(FastLiteral) \ 91 V(FastLiteral) \
92 V(FixedArrayBaseLength) \ 92 V(FixedArrayBaseLength) \
93 V(MapEnumLength) \
Michael Starzinger 2012/08/06 15:06:22 Alpha-sort!
Toon Verwaest 2012/08/07 10:49:47 Done.
93 V(FunctionLiteral) \ 94 V(FunctionLiteral) \
94 V(GetCachedArrayIndex) \ 95 V(GetCachedArrayIndex) \
95 V(GlobalObject) \ 96 V(GlobalObject) \
96 V(GlobalReceiver) \ 97 V(GlobalReceiver) \
97 V(Goto) \ 98 V(Goto) \
98 V(HasCachedArrayIndexAndBranch) \ 99 V(HasCachedArrayIndexAndBranch) \
99 V(HasInstanceTypeAndBranch) \ 100 V(HasInstanceTypeAndBranch) \
100 V(In) \ 101 V(In) \
101 V(InstanceOf) \ 102 V(InstanceOf) \
102 V(InstanceOfKnownGlobal) \ 103 V(InstanceOfKnownGlobal) \
(...skipping 901 matching lines...) Expand 10 before | Expand all | Expand 10 after
1004 explicit LFixedArrayBaseLength(LOperand* value) { 1005 explicit LFixedArrayBaseLength(LOperand* value) {
1005 inputs_[0] = value; 1006 inputs_[0] = value;
1006 } 1007 }
1007 1008
1008 DECLARE_CONCRETE_INSTRUCTION(FixedArrayBaseLength, 1009 DECLARE_CONCRETE_INSTRUCTION(FixedArrayBaseLength,
1009 "fixed-array-base-length") 1010 "fixed-array-base-length")
1010 DECLARE_HYDROGEN_ACCESSOR(FixedArrayBaseLength) 1011 DECLARE_HYDROGEN_ACCESSOR(FixedArrayBaseLength)
1011 }; 1012 };
1012 1013
1013 1014
1015 class LMapEnumLength: public LTemplateInstruction<1, 1, 0> {
1016 public:
1017 explicit LMapEnumLength(LOperand* value) {
1018 inputs_[0] = value;
1019 }
1020
1021 DECLARE_CONCRETE_INSTRUCTION(MapEnumLength,
1022 "map-enum-length")
1023 DECLARE_HYDROGEN_ACCESSOR(MapEnumLength)
1024 };
1025
1026
1014 class LElementsKind: public LTemplateInstruction<1, 1, 0> { 1027 class LElementsKind: public LTemplateInstruction<1, 1, 0> {
1015 public: 1028 public:
1016 explicit LElementsKind(LOperand* value) { 1029 explicit LElementsKind(LOperand* value) {
1017 inputs_[0] = value; 1030 inputs_[0] = value;
1018 } 1031 }
1019 1032
1020 DECLARE_CONCRETE_INSTRUCTION(ElementsKind, "elements-kind") 1033 DECLARE_CONCRETE_INSTRUCTION(ElementsKind, "elements-kind")
1021 DECLARE_HYDROGEN_ACCESSOR(ElementsKind) 1034 DECLARE_HYDROGEN_ACCESSOR(ElementsKind)
1022 }; 1035 };
1023 1036
(...skipping 1481 matching lines...) Expand 10 before | Expand all | Expand 10 after
2505 2518
2506 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2519 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2507 }; 2520 };
2508 2521
2509 #undef DECLARE_HYDROGEN_ACCESSOR 2522 #undef DECLARE_HYDROGEN_ACCESSOR
2510 #undef DECLARE_CONCRETE_INSTRUCTION 2523 #undef DECLARE_CONCRETE_INSTRUCTION
2511 2524
2512 } } // namespace v8::internal 2525 } } // namespace v8::internal
2513 2526
2514 #endif // V8_IA32_LITHIUM_IA32_H_ 2527 #endif // V8_IA32_LITHIUM_IA32_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698