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

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

Issue 12491023: Remove (H|L)JSArrayLength instructions (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Cleanup Created 7 years, 8 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 V(InstructionGap) \ 114 V(InstructionGap) \
115 V(Integer32ToDouble) \ 115 V(Integer32ToDouble) \
116 V(Uint32ToDouble) \ 116 V(Uint32ToDouble) \
117 V(InvokeFunction) \ 117 V(InvokeFunction) \
118 V(IsConstructCallAndBranch) \ 118 V(IsConstructCallAndBranch) \
119 V(IsNilAndBranch) \ 119 V(IsNilAndBranch) \
120 V(IsObjectAndBranch) \ 120 V(IsObjectAndBranch) \
121 V(IsStringAndBranch) \ 121 V(IsStringAndBranch) \
122 V(IsSmiAndBranch) \ 122 V(IsSmiAndBranch) \
123 V(IsUndetectableAndBranch) \ 123 V(IsUndetectableAndBranch) \
124 V(JSArrayLength) \
125 V(Label) \ 124 V(Label) \
126 V(LazyBailout) \ 125 V(LazyBailout) \
127 V(LoadContextSlot) \ 126 V(LoadContextSlot) \
128 V(LoadElements) \ 127 V(LoadElements) \
129 V(LoadExternalArrayPointer) \ 128 V(LoadExternalArrayPointer) \
130 V(LoadFunctionPrototype) \ 129 V(LoadFunctionPrototype) \
131 V(LoadGlobalCell) \ 130 V(LoadGlobalCell) \
132 V(LoadGlobalGeneric) \ 131 V(LoadGlobalGeneric) \
133 V(LoadKeyed) \ 132 V(LoadKeyed) \
134 V(LoadKeyedGeneric) \ 133 V(LoadKeyedGeneric) \
(...skipping 967 matching lines...) Expand 10 before | Expand all | Expand 10 after
1102 Handle<Map> map() const { return hydrogen()->map(); } 1101 Handle<Map> map() const { return hydrogen()->map(); }
1103 int true_block_id() const { 1102 int true_block_id() const {
1104 return hydrogen()->FirstSuccessor()->block_id(); 1103 return hydrogen()->FirstSuccessor()->block_id();
1105 } 1104 }
1106 int false_block_id() const { 1105 int false_block_id() const {
1107 return hydrogen()->SecondSuccessor()->block_id(); 1106 return hydrogen()->SecondSuccessor()->block_id();
1108 } 1107 }
1109 }; 1108 };
1110 1109
1111 1110
1112 class LJSArrayLength: public LTemplateInstruction<1, 1, 0> {
1113 public:
1114 explicit LJSArrayLength(LOperand* value) {
1115 inputs_[0] = value;
1116 }
1117
1118 LOperand* value() { return inputs_[0]; }
1119
1120 DECLARE_CONCRETE_INSTRUCTION(JSArrayLength, "js-array-length")
1121 DECLARE_HYDROGEN_ACCESSOR(JSArrayLength)
1122 };
1123
1124
1125 class LFixedArrayBaseLength: public LTemplateInstruction<1, 1, 0> { 1111 class LFixedArrayBaseLength: public LTemplateInstruction<1, 1, 0> {
1126 public: 1112 public:
1127 explicit LFixedArrayBaseLength(LOperand* value) { 1113 explicit LFixedArrayBaseLength(LOperand* value) {
1128 inputs_[0] = value; 1114 inputs_[0] = value;
1129 } 1115 }
1130 1116
1131 LOperand* value() { return inputs_[0]; } 1117 LOperand* value() { return inputs_[0]; }
1132 1118
1133 DECLARE_CONCRETE_INSTRUCTION(FixedArrayBaseLength, 1119 DECLARE_CONCRETE_INSTRUCTION(FixedArrayBaseLength,
1134 "fixed-array-base-length") 1120 "fixed-array-base-length")
(...skipping 1512 matching lines...) Expand 10 before | Expand all | Expand 10 after
2647 2633
2648 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2634 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2649 }; 2635 };
2650 2636
2651 #undef DECLARE_HYDROGEN_ACCESSOR 2637 #undef DECLARE_HYDROGEN_ACCESSOR
2652 #undef DECLARE_CONCRETE_INSTRUCTION 2638 #undef DECLARE_CONCRETE_INSTRUCTION
2653 2639
2654 } } // namespace v8::int 2640 } } // namespace v8::int
2655 2641
2656 #endif // V8_X64_LITHIUM_X64_H_ 2642 #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