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

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: 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/x64/lithium-codegen-x64.cc ('k') | src/x64/lithium-x64.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 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 886 matching lines...) Expand 10 before | Expand all | Expand 10 after
995 explicit LFixedArrayBaseLength(LOperand* value) { 996 explicit LFixedArrayBaseLength(LOperand* value) {
996 inputs_[0] = value; 997 inputs_[0] = value;
997 } 998 }
998 999
999 DECLARE_CONCRETE_INSTRUCTION(FixedArrayBaseLength, 1000 DECLARE_CONCRETE_INSTRUCTION(FixedArrayBaseLength,
1000 "fixed-array-base-length") 1001 "fixed-array-base-length")
1001 DECLARE_HYDROGEN_ACCESSOR(FixedArrayBaseLength) 1002 DECLARE_HYDROGEN_ACCESSOR(FixedArrayBaseLength)
1002 }; 1003 };
1003 1004
1004 1005
1006 class LMapEnumLength: public LTemplateInstruction<1, 1, 0> {
1007 public:
1008 explicit LMapEnumLength(LOperand* value) {
1009 inputs_[0] = value;
1010 }
1011
1012 DECLARE_CONCRETE_INSTRUCTION(MapEnumLength, "map-enum-length")
1013 };
1014
1015
1005 class LElementsKind: public LTemplateInstruction<1, 1, 0> { 1016 class LElementsKind: public LTemplateInstruction<1, 1, 0> {
1006 public: 1017 public:
1007 explicit LElementsKind(LOperand* value) { 1018 explicit LElementsKind(LOperand* value) {
1008 inputs_[0] = value; 1019 inputs_[0] = value;
1009 } 1020 }
1010 1021
1011 DECLARE_CONCRETE_INSTRUCTION(ElementsKind, "elements-kind") 1022 DECLARE_CONCRETE_INSTRUCTION(ElementsKind, "elements-kind")
1012 DECLARE_HYDROGEN_ACCESSOR(ElementsKind) 1023 DECLARE_HYDROGEN_ACCESSOR(ElementsKind)
1013 }; 1024 };
1014 1025
(...skipping 1372 matching lines...) Expand 10 before | Expand all | Expand 10 after
2387 2398
2388 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2399 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2389 }; 2400 };
2390 2401
2391 #undef DECLARE_HYDROGEN_ACCESSOR 2402 #undef DECLARE_HYDROGEN_ACCESSOR
2392 #undef DECLARE_CONCRETE_INSTRUCTION 2403 #undef DECLARE_CONCRETE_INSTRUCTION
2393 2404
2394 } } // namespace v8::int 2405 } } // namespace v8::int
2395 2406
2396 #endif // V8_X64_LITHIUM_X64_H_ 2407 #endif // V8_X64_LITHIUM_X64_H_
OLDNEW
« no previous file with comments | « 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