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

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

Issue 6611014: Add lithium support for %_GetCachedArrayIndex for IA32 and X64 (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 9 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 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 V(ConstantD) \ 82 V(ConstantD) \
83 V(ConstantI) \ 83 V(ConstantI) \
84 V(ConstantT) \ 84 V(ConstantT) \
85 V(Context) \ 85 V(Context) \
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(FunctionLiteral) \ 90 V(FunctionLiteral) \
91 V(Gap) \ 91 V(Gap) \
92 V(GetCachedArrayIndex) \
92 V(GlobalObject) \ 93 V(GlobalObject) \
93 V(GlobalReceiver) \ 94 V(GlobalReceiver) \
94 V(Goto) \ 95 V(Goto) \
95 V(FixedArrayLength) \ 96 V(FixedArrayLength) \
96 V(InstanceOf) \ 97 V(InstanceOf) \
97 V(InstanceOfAndBranch) \ 98 V(InstanceOfAndBranch) \
98 V(InstanceOfKnownGlobal) \ 99 V(InstanceOfKnownGlobal) \
99 V(Integer32ToDouble) \ 100 V(Integer32ToDouble) \
100 V(IsNull) \ 101 V(IsNull) \
101 V(IsNullAndBranch) \ 102 V(IsNullAndBranch) \
(...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after
723 } 724 }
724 725
725 DECLARE_CONCRETE_INSTRUCTION(HasInstanceTypeAndBranch, 726 DECLARE_CONCRETE_INSTRUCTION(HasInstanceTypeAndBranch,
726 "has-instance-type-and-branch") 727 "has-instance-type-and-branch")
727 DECLARE_HYDROGEN_ACCESSOR(HasInstanceType) 728 DECLARE_HYDROGEN_ACCESSOR(HasInstanceType)
728 729
729 virtual void PrintDataTo(StringStream* stream); 730 virtual void PrintDataTo(StringStream* stream);
730 }; 731 };
731 732
732 733
734 class LGetCachedArrayIndex: public LTemplateInstruction<1, 1, 0> {
735 public:
736 explicit LGetCachedArrayIndex(LOperand* value) {
737 inputs_[0] = value;
738 }
739
740 DECLARE_CONCRETE_INSTRUCTION(GetCachedArrayIndex, "get-cached-array-index")
741 DECLARE_HYDROGEN_ACCESSOR(GetCachedArrayIndex)
742 };
743
744
733 class LHasCachedArrayIndex: public LTemplateInstruction<1, 1, 0> { 745 class LHasCachedArrayIndex: public LTemplateInstruction<1, 1, 0> {
734 public: 746 public:
735 explicit LHasCachedArrayIndex(LOperand* value) { 747 explicit LHasCachedArrayIndex(LOperand* value) {
736 inputs_[0] = value; 748 inputs_[0] = value;
737 } 749 }
738 750
739 DECLARE_CONCRETE_INSTRUCTION(HasCachedArrayIndex, "has-cached-array-index") 751 DECLARE_CONCRETE_INSTRUCTION(HasCachedArrayIndex, "has-cached-array-index")
740 DECLARE_HYDROGEN_ACCESSOR(HasCachedArrayIndex) 752 DECLARE_HYDROGEN_ACCESSOR(HasCachedArrayIndex)
741 }; 753 };
742 754
(...skipping 1300 matching lines...) Expand 10 before | Expand all | Expand 10 after
2043 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2055 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2044 }; 2056 };
2045 2057
2046 #undef DECLARE_HYDROGEN_ACCESSOR 2058 #undef DECLARE_HYDROGEN_ACCESSOR
2047 #undef DECLARE_INSTRUCTION 2059 #undef DECLARE_INSTRUCTION
2048 #undef DECLARE_CONCRETE_INSTRUCTION 2060 #undef DECLARE_CONCRETE_INSTRUCTION
2049 2061
2050 } } // namespace v8::int 2062 } } // namespace v8::int
2051 2063
2052 #endif // V8_X64_LITHIUM_X64_H_ 2064 #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