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

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

Issue 1471623005: PPC: [builtins] Sanitize the machinery around Construct calls. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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/ppc/lithium-codegen-ppc.cc ('k') | src/crankshaft/ppc/lithium-ppc.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_PPC_LITHIUM_PPC_H_ 5 #ifndef V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_
6 #define V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ 6 #define V8_CRANKSHAFT_PPC_LITHIUM_PPC_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 15 matching lines...) Expand all
26 V(ArgumentsElements) \ 26 V(ArgumentsElements) \
27 V(ArgumentsLength) \ 27 V(ArgumentsLength) \
28 V(ArithmeticD) \ 28 V(ArithmeticD) \
29 V(ArithmeticT) \ 29 V(ArithmeticT) \
30 V(BitI) \ 30 V(BitI) \
31 V(BoundsCheck) \ 31 V(BoundsCheck) \
32 V(Branch) \ 32 V(Branch) \
33 V(CallJSFunction) \ 33 V(CallJSFunction) \
34 V(CallWithDescriptor) \ 34 V(CallWithDescriptor) \
35 V(CallFunction) \ 35 V(CallFunction) \
36 V(CallNew) \
37 V(CallNewArray) \ 36 V(CallNewArray) \
38 V(CallRuntime) \ 37 V(CallRuntime) \
39 V(CallStub) \ 38 V(CallStub) \
40 V(CheckArrayBufferNotNeutered) \ 39 V(CheckArrayBufferNotNeutered) \
41 V(CheckInstanceType) \ 40 V(CheckInstanceType) \
42 V(CheckNonSmi) \ 41 V(CheckNonSmi) \
43 V(CheckMaps) \ 42 V(CheckMaps) \
44 V(CheckMapValue) \ 43 V(CheckMapValue) \
45 V(CheckSmi) \ 44 V(CheckSmi) \
46 V(CheckValue) \ 45 V(CheckValue) \
(...skipping 1771 matching lines...) Expand 10 before | Expand all | Expand 10 after
1818 LOperand* temp_vector() { return temps_[1]; } 1817 LOperand* temp_vector() { return temps_[1]; }
1819 1818
1820 DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function") 1819 DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function")
1821 DECLARE_HYDROGEN_ACCESSOR(CallFunction) 1820 DECLARE_HYDROGEN_ACCESSOR(CallFunction)
1822 1821
1823 int arity() const { return hydrogen()->argument_count() - 1; } 1822 int arity() const { return hydrogen()->argument_count() - 1; }
1824 void PrintDataTo(StringStream* stream) override; 1823 void PrintDataTo(StringStream* stream) override;
1825 }; 1824 };
1826 1825
1827 1826
1828 class LCallNew final : public LTemplateInstruction<1, 2, 0> {
1829 public:
1830 LCallNew(LOperand* context, LOperand* constructor) {
1831 inputs_[0] = context;
1832 inputs_[1] = constructor;
1833 }
1834
1835 LOperand* context() { return inputs_[0]; }
1836 LOperand* constructor() { return inputs_[1]; }
1837
1838 DECLARE_CONCRETE_INSTRUCTION(CallNew, "call-new")
1839 DECLARE_HYDROGEN_ACCESSOR(CallNew)
1840
1841 void PrintDataTo(StringStream* stream) override;
1842
1843 int arity() const { return hydrogen()->argument_count() - 1; }
1844 };
1845
1846
1847 class LCallNewArray final : public LTemplateInstruction<1, 2, 0> { 1827 class LCallNewArray final : public LTemplateInstruction<1, 2, 0> {
1848 public: 1828 public:
1849 LCallNewArray(LOperand* context, LOperand* constructor) { 1829 LCallNewArray(LOperand* context, LOperand* constructor) {
1850 inputs_[0] = context; 1830 inputs_[0] = context;
1851 inputs_[1] = constructor; 1831 inputs_[1] = constructor;
1852 } 1832 }
1853 1833
1854 LOperand* context() { return inputs_[0]; } 1834 LOperand* context() { return inputs_[0]; }
1855 LOperand* constructor() { return inputs_[1]; } 1835 LOperand* constructor() { return inputs_[1]; }
1856 1836
(...skipping 860 matching lines...) Expand 10 before | Expand all | Expand 10 after
2717 2697
2718 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2698 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2719 }; 2699 };
2720 2700
2721 #undef DECLARE_HYDROGEN_ACCESSOR 2701 #undef DECLARE_HYDROGEN_ACCESSOR
2722 #undef DECLARE_CONCRETE_INSTRUCTION 2702 #undef DECLARE_CONCRETE_INSTRUCTION
2723 } // namespace internal 2703 } // namespace internal
2724 } // namespace v8 2704 } // namespace v8
2725 2705
2726 #endif // V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ 2706 #endif // V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_
OLDNEW
« no previous file with comments | « src/crankshaft/ppc/lithium-codegen-ppc.cc ('k') | src/crankshaft/ppc/lithium-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698