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

Side by Side Diff: src/crankshaft/mips64/lithium-mips64.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, 1 month 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_MIPS64_LITHIUM_MIPS_H_ 5 #ifndef V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_
6 #define V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ 6 #define V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_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(BoundsCheck) \ 33 V(BoundsCheck) \
34 V(Branch) \ 34 V(Branch) \
35 V(CallJSFunction) \ 35 V(CallJSFunction) \
36 V(CallWithDescriptor) \ 36 V(CallWithDescriptor) \
37 V(CallFunction) \ 37 V(CallFunction) \
38 V(CallNew) \
39 V(CallNewArray) \ 38 V(CallNewArray) \
40 V(CallRuntime) \ 39 V(CallRuntime) \
41 V(CallStub) \ 40 V(CallStub) \
42 V(CheckArrayBufferNotNeutered) \ 41 V(CheckArrayBufferNotNeutered) \
43 V(CheckInstanceType) \ 42 V(CheckInstanceType) \
44 V(CheckMaps) \ 43 V(CheckMaps) \
45 V(CheckMapValue) \ 44 V(CheckMapValue) \
46 V(CheckNonSmi) \ 45 V(CheckNonSmi) \
47 V(CheckSmi) \ 46 V(CheckSmi) \
48 V(CheckValue) \ 47 V(CheckValue) \
(...skipping 1862 matching lines...) Expand 10 before | Expand all | Expand 10 after
1911 LOperand* temp_vector() { return temps_[1]; } 1910 LOperand* temp_vector() { return temps_[1]; }
1912 1911
1913 DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function") 1912 DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function")
1914 DECLARE_HYDROGEN_ACCESSOR(CallFunction) 1913 DECLARE_HYDROGEN_ACCESSOR(CallFunction)
1915 1914
1916 int arity() const { return hydrogen()->argument_count() - 1; } 1915 int arity() const { return hydrogen()->argument_count() - 1; }
1917 void PrintDataTo(StringStream* stream) override; 1916 void PrintDataTo(StringStream* stream) override;
1918 }; 1917 };
1919 1918
1920 1919
1921 class LCallNew final : public LTemplateInstruction<1, 2, 0> {
1922 public:
1923 LCallNew(LOperand* context, LOperand* constructor) {
1924 inputs_[0] = context;
1925 inputs_[1] = constructor;
1926 }
1927
1928 LOperand* context() { return inputs_[0]; }
1929 LOperand* constructor() { return inputs_[1]; }
1930
1931 DECLARE_CONCRETE_INSTRUCTION(CallNew, "call-new")
1932 DECLARE_HYDROGEN_ACCESSOR(CallNew)
1933
1934 void PrintDataTo(StringStream* stream) override;
1935
1936 int arity() const { return hydrogen()->argument_count() - 1; }
1937 };
1938
1939
1940 class LCallNewArray final : public LTemplateInstruction<1, 2, 0> { 1920 class LCallNewArray final : public LTemplateInstruction<1, 2, 0> {
1941 public: 1921 public:
1942 LCallNewArray(LOperand* context, LOperand* constructor) { 1922 LCallNewArray(LOperand* context, LOperand* constructor) {
1943 inputs_[0] = context; 1923 inputs_[0] = context;
1944 inputs_[1] = constructor; 1924 inputs_[1] = constructor;
1945 } 1925 }
1946 1926
1947 LOperand* context() { return inputs_[0]; } 1927 LOperand* context() { return inputs_[0]; }
1948 LOperand* constructor() { return inputs_[1]; } 1928 LOperand* constructor() { return inputs_[1]; }
1949 1929
(...skipping 896 matching lines...) Expand 10 before | Expand all | Expand 10 after
2846 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2826 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2847 }; 2827 };
2848 2828
2849 #undef DECLARE_HYDROGEN_ACCESSOR 2829 #undef DECLARE_HYDROGEN_ACCESSOR
2850 #undef DECLARE_CONCRETE_INSTRUCTION 2830 #undef DECLARE_CONCRETE_INSTRUCTION
2851 2831
2852 } // namespace internal 2832 } // namespace internal
2853 } // namespace v8 2833 } // namespace v8
2854 2834
2855 #endif // V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ 2835 #endif // V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_
OLDNEW
« no previous file with comments | « src/crankshaft/mips64/lithium-codegen-mips64.cc ('k') | src/crankshaft/mips64/lithium-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698