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

Side by Side Diff: src/crankshaft/x64/lithium-x64.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/x64/lithium-codegen-x64.cc ('k') | src/crankshaft/x64/lithium-x64.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_X64_LITHIUM_X64_H_ 5 #ifndef V8_CRANKSHAFT_X64_LITHIUM_X64_H_
6 #define V8_CRANKSHAFT_X64_LITHIUM_X64_H_ 6 #define V8_CRANKSHAFT_X64_LITHIUM_X64_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(CheckMaps) \ 41 V(CheckMaps) \
43 V(CheckMapValue) \ 42 V(CheckMapValue) \
44 V(CheckNonSmi) \ 43 V(CheckNonSmi) \
45 V(CheckSmi) \ 44 V(CheckSmi) \
46 V(CheckValue) \ 45 V(CheckValue) \
(...skipping 1825 matching lines...) Expand 10 before | Expand all | Expand 10 after
1872 LOperand* context() { return inputs_[0]; } 1871 LOperand* context() { return inputs_[0]; }
1873 LOperand* function() { return inputs_[1]; } 1872 LOperand* function() { return inputs_[1]; }
1874 LOperand* temp_slot() { return temps_[0]; } 1873 LOperand* temp_slot() { return temps_[0]; }
1875 LOperand* temp_vector() { return temps_[1]; } 1874 LOperand* temp_vector() { return temps_[1]; }
1876 int arity() const { return hydrogen()->argument_count() - 1; } 1875 int arity() const { return hydrogen()->argument_count() - 1; }
1877 1876
1878 void PrintDataTo(StringStream* stream) override; 1877 void PrintDataTo(StringStream* stream) override;
1879 }; 1878 };
1880 1879
1881 1880
1882 class LCallNew final : public LTemplateInstruction<1, 2, 0> {
1883 public:
1884 LCallNew(LOperand* context, LOperand* constructor) {
1885 inputs_[0] = context;
1886 inputs_[1] = constructor;
1887 }
1888
1889 LOperand* context() { return inputs_[0]; }
1890 LOperand* constructor() { return inputs_[1]; }
1891
1892 DECLARE_CONCRETE_INSTRUCTION(CallNew, "call-new")
1893 DECLARE_HYDROGEN_ACCESSOR(CallNew)
1894
1895 void PrintDataTo(StringStream* stream) override;
1896
1897 int arity() const { return hydrogen()->argument_count() - 1; }
1898 };
1899
1900
1901 class LCallNewArray final : public LTemplateInstruction<1, 2, 0> { 1881 class LCallNewArray final : public LTemplateInstruction<1, 2, 0> {
1902 public: 1882 public:
1903 LCallNewArray(LOperand* context, LOperand* constructor) { 1883 LCallNewArray(LOperand* context, LOperand* constructor) {
1904 inputs_[0] = context; 1884 inputs_[0] = context;
1905 inputs_[1] = constructor; 1885 inputs_[1] = constructor;
1906 } 1886 }
1907 1887
1908 LOperand* context() { return inputs_[0]; } 1888 LOperand* context() { return inputs_[0]; }
1909 LOperand* constructor() { return inputs_[1]; } 1889 LOperand* constructor() { return inputs_[1]; }
1910 1890
(...skipping 910 matching lines...) Expand 10 before | Expand all | Expand 10 after
2821 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2801 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2822 }; 2802 };
2823 2803
2824 #undef DECLARE_HYDROGEN_ACCESSOR 2804 #undef DECLARE_HYDROGEN_ACCESSOR
2825 #undef DECLARE_CONCRETE_INSTRUCTION 2805 #undef DECLARE_CONCRETE_INSTRUCTION
2826 2806
2827 } // namespace internal 2807 } // namespace internal
2828 } // namespace v8 2808 } // namespace v8
2829 2809
2830 #endif // V8_CRANKSHAFT_X64_LITHIUM_X64_H_ 2810 #endif // V8_CRANKSHAFT_X64_LITHIUM_X64_H_
OLDNEW
« no previous file with comments | « src/crankshaft/x64/lithium-codegen-x64.cc ('k') | src/crankshaft/x64/lithium-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698