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

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

Issue 308793010: Inline Array.shift() fast path instead of using a code stub. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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
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) \
32 V(BitI) \ 31 V(BitI) \
33 V(BitS) \ 32 V(BitS) \
34 V(BoundsCheck) \ 33 V(BoundsCheck) \
35 V(Branch) \ 34 V(Branch) \
36 V(CallFunction) \ 35 V(CallFunction) \
37 V(CallJSFunction) \ 36 V(CallJSFunction) \
38 V(CallNew) \ 37 V(CallNew) \
39 V(CallNewArray) \ 38 V(CallNewArray) \
40 V(CallRuntime) \ 39 V(CallRuntime) \
41 V(CallStub) \ 40 V(CallStub) \
(...skipping 2839 matching lines...) Expand 10 before | Expand all | Expand 10 after
2881 2880
2882 Handle<Map> original_map() { return hydrogen()->original_map().handle(); } 2881 Handle<Map> original_map() { return hydrogen()->original_map().handle(); }
2883 Handle<Map> transitioned_map() { 2882 Handle<Map> transitioned_map() {
2884 return hydrogen()->transitioned_map().handle(); 2883 return hydrogen()->transitioned_map().handle();
2885 } 2884 }
2886 ElementsKind from_kind() const { return hydrogen()->from_kind(); } 2885 ElementsKind from_kind() const { return hydrogen()->from_kind(); }
2887 ElementsKind to_kind() const { return hydrogen()->to_kind(); } 2886 ElementsKind to_kind() const { return hydrogen()->to_kind(); }
2888 }; 2887 };
2889 2888
2890 2889
2891 class LArrayShift V8_FINAL : public LTemplateInstruction<1, 2, 0> {
2892 public:
2893 LArrayShift(LOperand* context, LOperand* object) {
2894 inputs_[0] = context;
2895 inputs_[1] = object;
2896 }
2897
2898 LOperand* context() const { return inputs_[0]; }
2899 LOperand* object() const { return inputs_[1]; }
2900
2901 DECLARE_CONCRETE_INSTRUCTION(ArrayShift, "array-shift")
2902 DECLARE_HYDROGEN_ACCESSOR(ArrayShift)
2903 };
2904
2905
2906 class LTrapAllocationMemento V8_FINAL : public LTemplateInstruction<0, 1, 2> { 2890 class LTrapAllocationMemento V8_FINAL : public LTemplateInstruction<0, 1, 2> {
2907 public: 2891 public:
2908 LTrapAllocationMemento(LOperand* object, LOperand* temp1, LOperand* temp2) { 2892 LTrapAllocationMemento(LOperand* object, LOperand* temp1, LOperand* temp2) {
2909 inputs_[0] = object; 2893 inputs_[0] = object;
2910 temps_[0] = temp1; 2894 temps_[0] = temp1;
2911 temps_[1] = temp2; 2895 temps_[1] = temp2;
2912 } 2896 }
2913 2897
2914 LOperand* object() { return inputs_[0]; } 2898 LOperand* object() { return inputs_[0]; }
2915 LOperand* temp1() { return temps_[0]; } 2899 LOperand* temp1() { return temps_[0]; }
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
3226 3210
3227 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 3211 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
3228 }; 3212 };
3229 3213
3230 #undef DECLARE_HYDROGEN_ACCESSOR 3214 #undef DECLARE_HYDROGEN_ACCESSOR
3231 #undef DECLARE_CONCRETE_INSTRUCTION 3215 #undef DECLARE_CONCRETE_INSTRUCTION
3232 3216
3233 } } // namespace v8::internal 3217 } } // namespace v8::internal
3234 3218
3235 #endif // V8_ARM64_LITHIUM_ARM64_H_ 3219 #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') | src/hydrogen.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698