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

Side by Side Diff: src/crankshaft/ia32/lithium-ia32.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
« no previous file with comments | « src/crankshaft/ia32/lithium-codegen-ia32.cc ('k') | src/crankshaft/ia32/lithium-ia32.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 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_IA32_LITHIUM_IA32_H_ 5 #ifndef V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_
6 #define V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ 6 #define V8_CRANKSHAFT_IA32_LITHIUM_IA32_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 19 matching lines...) Expand all
30 V(ArgumentsElements) \ 30 V(ArgumentsElements) \
31 V(ArgumentsLength) \ 31 V(ArgumentsLength) \
32 V(ArithmeticD) \ 32 V(ArithmeticD) \
33 V(ArithmeticT) \ 33 V(ArithmeticT) \
34 V(BitI) \ 34 V(BitI) \
35 V(BoundsCheck) \ 35 V(BoundsCheck) \
36 V(Branch) \ 36 V(Branch) \
37 V(CallJSFunction) \ 37 V(CallJSFunction) \
38 V(CallWithDescriptor) \ 38 V(CallWithDescriptor) \
39 V(CallFunction) \ 39 V(CallFunction) \
40 V(CallNew) \
41 V(CallNewArray) \ 40 V(CallNewArray) \
42 V(CallRuntime) \ 41 V(CallRuntime) \
43 V(CallStub) \ 42 V(CallStub) \
44 V(CheckArrayBufferNotNeutered) \ 43 V(CheckArrayBufferNotNeutered) \
45 V(CheckInstanceType) \ 44 V(CheckInstanceType) \
46 V(CheckMaps) \ 45 V(CheckMaps) \
47 V(CheckMapValue) \ 46 V(CheckMapValue) \
48 V(CheckNonSmi) \ 47 V(CheckNonSmi) \
49 V(CheckSmi) \ 48 V(CheckSmi) \
50 V(CheckValue) \ 49 V(CheckValue) \
(...skipping 1848 matching lines...) Expand 10 before | Expand all | Expand 10 after
1899 LOperand* temp_vector() { return temps_[1]; } 1898 LOperand* temp_vector() { return temps_[1]; }
1900 1899
1901 DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function") 1900 DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function")
1902 DECLARE_HYDROGEN_ACCESSOR(CallFunction) 1901 DECLARE_HYDROGEN_ACCESSOR(CallFunction)
1903 1902
1904 void PrintDataTo(StringStream* stream) override; 1903 void PrintDataTo(StringStream* stream) override;
1905 int arity() const { return hydrogen()->argument_count() - 1; } 1904 int arity() const { return hydrogen()->argument_count() - 1; }
1906 }; 1905 };
1907 1906
1908 1907
1909 class LCallNew final : public LTemplateInstruction<1, 2, 0> {
1910 public:
1911 LCallNew(LOperand* context, LOperand* constructor) {
1912 inputs_[0] = context;
1913 inputs_[1] = constructor;
1914 }
1915
1916 LOperand* context() { return inputs_[0]; }
1917 LOperand* constructor() { return inputs_[1]; }
1918
1919 DECLARE_CONCRETE_INSTRUCTION(CallNew, "call-new")
1920 DECLARE_HYDROGEN_ACCESSOR(CallNew)
1921
1922 void PrintDataTo(StringStream* stream) override;
1923
1924 int arity() const { return hydrogen()->argument_count() - 1; }
1925 };
1926
1927
1928 class LCallNewArray final : public LTemplateInstruction<1, 2, 0> { 1908 class LCallNewArray final : public LTemplateInstruction<1, 2, 0> {
1929 public: 1909 public:
1930 LCallNewArray(LOperand* context, LOperand* constructor) { 1910 LCallNewArray(LOperand* context, LOperand* constructor) {
1931 inputs_[0] = context; 1911 inputs_[0] = context;
1932 inputs_[1] = constructor; 1912 inputs_[1] = constructor;
1933 } 1913 }
1934 1914
1935 LOperand* context() { return inputs_[0]; } 1915 LOperand* context() { return inputs_[0]; }
1936 LOperand* constructor() { return inputs_[1]; } 1916 LOperand* constructor() { return inputs_[1]; }
1937 1917
(...skipping 904 matching lines...) Expand 10 before | Expand all | Expand 10 after
2842 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2822 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2843 }; 2823 };
2844 2824
2845 #undef DECLARE_HYDROGEN_ACCESSOR 2825 #undef DECLARE_HYDROGEN_ACCESSOR
2846 #undef DECLARE_CONCRETE_INSTRUCTION 2826 #undef DECLARE_CONCRETE_INSTRUCTION
2847 2827
2848 } // namespace internal 2828 } // namespace internal
2849 } // namespace v8 2829 } // namespace v8
2850 2830
2851 #endif // V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ 2831 #endif // V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_
OLDNEW
« no previous file with comments | « src/crankshaft/ia32/lithium-codegen-ia32.cc ('k') | src/crankshaft/ia32/lithium-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698