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

Side by Side Diff: src/mips/lithium-mips.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/mips/lithium-codegen-mips.cc ('k') | src/mips/lithium-mips.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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 V(InstructionGap) \ 113 V(InstructionGap) \
114 V(Integer32ToDouble) \ 114 V(Integer32ToDouble) \
115 V(Uint32ToDouble) \ 115 V(Uint32ToDouble) \
116 V(InvokeFunction) \ 116 V(InvokeFunction) \
117 V(IsConstructCallAndBranch) \ 117 V(IsConstructCallAndBranch) \
118 V(IsNilAndBranch) \ 118 V(IsNilAndBranch) \
119 V(IsObjectAndBranch) \ 119 V(IsObjectAndBranch) \
120 V(IsStringAndBranch) \ 120 V(IsStringAndBranch) \
121 V(IsSmiAndBranch) \ 121 V(IsSmiAndBranch) \
122 V(IsUndetectableAndBranch) \ 122 V(IsUndetectableAndBranch) \
123 V(JSArrayLength) \
124 V(Label) \ 123 V(Label) \
125 V(LazyBailout) \ 124 V(LazyBailout) \
126 V(LoadContextSlot) \ 125 V(LoadContextSlot) \
127 V(LoadElements) \ 126 V(LoadElements) \
128 V(LoadExternalArrayPointer) \ 127 V(LoadExternalArrayPointer) \
129 V(LoadFunctionPrototype) \ 128 V(LoadFunctionPrototype) \
130 V(LoadGlobalCell) \ 129 V(LoadGlobalCell) \
131 V(LoadGlobalGeneric) \ 130 V(LoadGlobalGeneric) \
132 V(LoadKeyed) \ 131 V(LoadKeyed) \
133 V(LoadKeyedGeneric) \ 132 V(LoadKeyedGeneric) \
(...skipping 970 matching lines...) Expand 10 before | Expand all | Expand 10 after
1104 Handle<Map> map() const { return hydrogen()->map(); } 1103 Handle<Map> map() const { return hydrogen()->map(); }
1105 int true_block_id() const { 1104 int true_block_id() const {
1106 return hydrogen()->FirstSuccessor()->block_id(); 1105 return hydrogen()->FirstSuccessor()->block_id();
1107 } 1106 }
1108 int false_block_id() const { 1107 int false_block_id() const {
1109 return hydrogen()->SecondSuccessor()->block_id(); 1108 return hydrogen()->SecondSuccessor()->block_id();
1110 } 1109 }
1111 }; 1110 };
1112 1111
1113 1112
1114 class LJSArrayLength: public LTemplateInstruction<1, 1, 0> {
1115 public:
1116 explicit LJSArrayLength(LOperand* value) {
1117 inputs_[0] = value;
1118 }
1119
1120 LOperand* value() { return inputs_[0]; }
1121
1122 DECLARE_CONCRETE_INSTRUCTION(JSArrayLength, "js-array-length")
1123 DECLARE_HYDROGEN_ACCESSOR(JSArrayLength)
1124 };
1125
1126
1127 class LFixedArrayBaseLength: public LTemplateInstruction<1, 1, 0> { 1113 class LFixedArrayBaseLength: public LTemplateInstruction<1, 1, 0> {
1128 public: 1114 public:
1129 explicit LFixedArrayBaseLength(LOperand* value) { 1115 explicit LFixedArrayBaseLength(LOperand* value) {
1130 inputs_[0] = value; 1116 inputs_[0] = value;
1131 } 1117 }
1132 1118
1133 LOperand* value() { return inputs_[0]; } 1119 LOperand* value() { return inputs_[0]; }
1134 1120
1135 DECLARE_CONCRETE_INSTRUCTION(FixedArrayBaseLength, 1121 DECLARE_CONCRETE_INSTRUCTION(FixedArrayBaseLength,
1136 "fixed-array-base-length") 1122 "fixed-array-base-length")
(...skipping 1553 matching lines...) Expand 10 before | Expand all | Expand 10 after
2690 2676
2691 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2677 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2692 }; 2678 };
2693 2679
2694 #undef DECLARE_HYDROGEN_ACCESSOR 2680 #undef DECLARE_HYDROGEN_ACCESSOR
2695 #undef DECLARE_CONCRETE_INSTRUCTION 2681 #undef DECLARE_CONCRETE_INSTRUCTION
2696 2682
2697 } } // namespace v8::internal 2683 } } // namespace v8::internal
2698 2684
2699 #endif // V8_MIPS_LITHIUM_MIPS_H_ 2685 #endif // V8_MIPS_LITHIUM_MIPS_H_
OLDNEW
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | src/mips/lithium-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698