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

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

Issue 279743002: Improve Array.shift() performance for small arrays. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Cosmetic fix Created 6 years, 7 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/arm64/code-stubs-arm64.cc ('k') | src/arm64/lithium-arm64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_ARM64_LITHIUM_ARM64_H_ 5 #ifndef V8_ARM64_LITHIUM_ARM64_H_
6 #define V8_ARM64_LITHIUM_ARM64_H_ 6 #define V8_ARM64_LITHIUM_ARM64_H_
7 7
8 #include "hydrogen.h" 8 #include "hydrogen.h"
9 #include "lithium-allocator.h" 9 #include "lithium-allocator.h"
10 #include "lithium.h" 10 #include "lithium.h"
(...skipping 10 matching lines...) Expand all
21 V(AccessArgumentsAt) \ 21 V(AccessArgumentsAt) \
22 V(AddE) \ 22 V(AddE) \
23 V(AddI) \ 23 V(AddI) \
24 V(AddS) \ 24 V(AddS) \
25 V(Allocate) \ 25 V(Allocate) \
26 V(ApplyArguments) \ 26 V(ApplyArguments) \
27 V(ArgumentsElements) \ 27 V(ArgumentsElements) \
28 V(ArgumentsLength) \ 28 V(ArgumentsLength) \
29 V(ArithmeticD) \ 29 V(ArithmeticD) \
30 V(ArithmeticT) \ 30 V(ArithmeticT) \
31 V(ArrayShift) \
31 V(BitI) \ 32 V(BitI) \
32 V(BitS) \ 33 V(BitS) \
33 V(BoundsCheck) \ 34 V(BoundsCheck) \
34 V(Branch) \ 35 V(Branch) \
35 V(CallFunction) \ 36 V(CallFunction) \
36 V(CallJSFunction) \ 37 V(CallJSFunction) \
37 V(CallNew) \ 38 V(CallNew) \
38 V(CallNewArray) \ 39 V(CallNewArray) \
39 V(CallRuntime) \ 40 V(CallRuntime) \
40 V(CallStub) \ 41 V(CallStub) \
(...skipping 2804 matching lines...) Expand 10 before | Expand all | Expand 10 after
2845 2846
2846 Handle<Map> original_map() { return hydrogen()->original_map().handle(); } 2847 Handle<Map> original_map() { return hydrogen()->original_map().handle(); }
2847 Handle<Map> transitioned_map() { 2848 Handle<Map> transitioned_map() {
2848 return hydrogen()->transitioned_map().handle(); 2849 return hydrogen()->transitioned_map().handle();
2849 } 2850 }
2850 ElementsKind from_kind() const { return hydrogen()->from_kind(); } 2851 ElementsKind from_kind() const { return hydrogen()->from_kind(); }
2851 ElementsKind to_kind() const { return hydrogen()->to_kind(); } 2852 ElementsKind to_kind() const { return hydrogen()->to_kind(); }
2852 }; 2853 };
2853 2854
2854 2855
2856 class LArrayShift V8_FINAL : public LTemplateInstruction<1, 2, 0> {
2857 public:
2858 LArrayShift(LOperand* context, LOperand* object) {
2859 inputs_[0] = context;
2860 inputs_[1] = object;
2861 }
2862
2863 LOperand* context() const { return inputs_[0]; }
2864 LOperand* object() const { return inputs_[1]; }
2865
2866 DECLARE_CONCRETE_INSTRUCTION(ArrayShift, "array-shift")
2867 DECLARE_HYDROGEN_ACCESSOR(ArrayShift)
2868 };
2869
2870
2855 class LTrapAllocationMemento V8_FINAL : public LTemplateInstruction<0, 1, 2> { 2871 class LTrapAllocationMemento V8_FINAL : public LTemplateInstruction<0, 1, 2> {
2856 public: 2872 public:
2857 LTrapAllocationMemento(LOperand* object, LOperand* temp1, LOperand* temp2) { 2873 LTrapAllocationMemento(LOperand* object, LOperand* temp1, LOperand* temp2) {
2858 inputs_[0] = object; 2874 inputs_[0] = object;
2859 temps_[0] = temp1; 2875 temps_[0] = temp1;
2860 temps_[1] = temp2; 2876 temps_[1] = temp2;
2861 } 2877 }
2862 2878
2863 LOperand* object() { return inputs_[0]; } 2879 LOperand* object() { return inputs_[0]; }
2864 LOperand* temp1() { return temps_[0]; } 2880 LOperand* temp1() { return temps_[0]; }
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
3174 3190
3175 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 3191 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
3176 }; 3192 };
3177 3193
3178 #undef DECLARE_HYDROGEN_ACCESSOR 3194 #undef DECLARE_HYDROGEN_ACCESSOR
3179 #undef DECLARE_CONCRETE_INSTRUCTION 3195 #undef DECLARE_CONCRETE_INSTRUCTION
3180 3196
3181 } } // namespace v8::internal 3197 } } // namespace v8::internal
3182 3198
3183 #endif // V8_ARM64_LITHIUM_ARM64_H_ 3199 #endif // V8_ARM64_LITHIUM_ARM64_H_
OLDNEW
« no previous file with comments | « src/arm64/code-stubs-arm64.cc ('k') | src/arm64/lithium-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698