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

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

Issue 1469793002: [builtins] Sanitize the machinery around Construct calls. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: mips64 fix. Created 5 years 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
« no previous file with comments | « src/crankshaft/arm/lithium-codegen-arm.cc ('k') | src/crankshaft/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_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ 5 #ifndef V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_
6 #define V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ 6 #define V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_
7 7
8 #include "src/crankshaft/hydrogen.h" 8 #include "src/crankshaft/hydrogen.h"
9 #include "src/crankshaft/lithium.h" 9 #include "src/crankshaft/lithium.h"
10 #include "src/crankshaft/lithium-allocator.h" 10 #include "src/crankshaft/lithium-allocator.h"
(...skipping 17 matching lines...) Expand all
28 V(ArgumentsElements) \ 28 V(ArgumentsElements) \
29 V(ArgumentsLength) \ 29 V(ArgumentsLength) \
30 V(ArithmeticD) \ 30 V(ArithmeticD) \
31 V(ArithmeticT) \ 31 V(ArithmeticT) \
32 V(BitI) \ 32 V(BitI) \
33 V(BitS) \ 33 V(BitS) \
34 V(BoundsCheck) \ 34 V(BoundsCheck) \
35 V(Branch) \ 35 V(Branch) \
36 V(CallFunction) \ 36 V(CallFunction) \
37 V(CallJSFunction) \ 37 V(CallJSFunction) \
38 V(CallNew) \
39 V(CallNewArray) \ 38 V(CallNewArray) \
40 V(CallRuntime) \ 39 V(CallRuntime) \
41 V(CallStub) \ 40 V(CallStub) \
42 V(CallWithDescriptor) \ 41 V(CallWithDescriptor) \
43 V(CheckArrayBufferNotNeutered) \ 42 V(CheckArrayBufferNotNeutered) \
44 V(CheckInstanceType) \ 43 V(CheckInstanceType) \
45 V(CheckMapValue) \ 44 V(CheckMapValue) \
46 V(CheckMaps) \ 45 V(CheckMaps) \
47 V(CheckNonSmi) \ 46 V(CheckNonSmi) \
48 V(CheckSmi) \ 47 V(CheckSmi) \
(...skipping 795 matching lines...) Expand 10 before | Expand all | Expand 10 after
844 LOperand* temp_vector() { return temps_[1]; } 843 LOperand* temp_vector() { return temps_[1]; }
845 844
846 DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function") 845 DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function")
847 DECLARE_HYDROGEN_ACCESSOR(CallFunction) 846 DECLARE_HYDROGEN_ACCESSOR(CallFunction)
848 847
849 int arity() const { return hydrogen()->argument_count() - 1; } 848 int arity() const { return hydrogen()->argument_count() - 1; }
850 void PrintDataTo(StringStream* stream) override; 849 void PrintDataTo(StringStream* stream) override;
851 }; 850 };
852 851
853 852
854 class LCallNew final : public LTemplateInstruction<1, 2, 0> {
855 public:
856 LCallNew(LOperand* context, LOperand* constructor) {
857 inputs_[0] = context;
858 inputs_[1] = constructor;
859 }
860
861 LOperand* context() { return inputs_[0]; }
862 LOperand* constructor() { return inputs_[1]; }
863
864 DECLARE_CONCRETE_INSTRUCTION(CallNew, "call-new")
865 DECLARE_HYDROGEN_ACCESSOR(CallNew)
866
867 void PrintDataTo(StringStream* stream) override;
868
869 int arity() const { return hydrogen()->argument_count() - 1; }
870 };
871
872
873 class LCallNewArray final : public LTemplateInstruction<1, 2, 0> { 853 class LCallNewArray final : public LTemplateInstruction<1, 2, 0> {
874 public: 854 public:
875 LCallNewArray(LOperand* context, LOperand* constructor) { 855 LCallNewArray(LOperand* context, LOperand* constructor) {
876 inputs_[0] = context; 856 inputs_[0] = context;
877 inputs_[1] = constructor; 857 inputs_[1] = constructor;
878 } 858 }
879 859
880 LOperand* context() { return inputs_[0]; } 860 LOperand* context() { return inputs_[0]; }
881 LOperand* constructor() { return inputs_[1]; } 861 LOperand* constructor() { return inputs_[1]; }
882 862
(...skipping 2328 matching lines...) Expand 10 before | Expand all | Expand 10 after
3211 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 3191 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
3212 }; 3192 };
3213 3193
3214 #undef DECLARE_HYDROGEN_ACCESSOR 3194 #undef DECLARE_HYDROGEN_ACCESSOR
3215 #undef DECLARE_CONCRETE_INSTRUCTION 3195 #undef DECLARE_CONCRETE_INSTRUCTION
3216 3196
3217 } // namespace internal 3197 } // namespace internal
3218 } // namespace v8 3198 } // namespace v8
3219 3199
3220 #endif // V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ 3200 #endif // V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_
OLDNEW
« no previous file with comments | « src/crankshaft/arm/lithium-codegen-arm.cc ('k') | src/crankshaft/arm64/lithium-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698