OLD | NEW |
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_X64_LITHIUM_X64_H_ | 5 #ifndef V8_X64_LITHIUM_X64_H_ |
6 #define V8_X64_LITHIUM_X64_H_ | 6 #define V8_X64_LITHIUM_X64_H_ |
7 | 7 |
8 #include "src/hydrogen.h" | 8 #include "src/hydrogen.h" |
9 #include "src/lithium.h" | 9 #include "src/lithium.h" |
10 #include "src/lithium-allocator.h" | 10 #include "src/lithium-allocator.h" |
(...skipping 19 matching lines...) Expand all Loading... |
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) \ | 36 V(CallNew) \ |
37 V(CallNewArray) \ | 37 V(CallNewArray) \ |
38 V(CallRuntime) \ | 38 V(CallRuntime) \ |
39 V(CallStub) \ | 39 V(CallStub) \ |
| 40 V(CheckArrayBufferNotNeutered) \ |
40 V(CheckInstanceType) \ | 41 V(CheckInstanceType) \ |
41 V(CheckMaps) \ | 42 V(CheckMaps) \ |
42 V(CheckMapValue) \ | 43 V(CheckMapValue) \ |
43 V(CheckNonSmi) \ | 44 V(CheckNonSmi) \ |
44 V(CheckSmi) \ | 45 V(CheckSmi) \ |
45 V(CheckValue) \ | 46 V(CheckValue) \ |
46 V(ClampDToUint8) \ | 47 V(ClampDToUint8) \ |
47 V(ClampIToUint8) \ | 48 V(ClampIToUint8) \ |
48 V(ClampTToUint8) \ | 49 V(ClampTToUint8) \ |
49 V(ClassOfTestAndBranch) \ | 50 V(ClassOfTestAndBranch) \ |
(...skipping 2294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2344 inputs_[0] = value; | 2345 inputs_[0] = value; |
2345 } | 2346 } |
2346 | 2347 |
2347 LOperand* value() { return inputs_[0]; } | 2348 LOperand* value() { return inputs_[0]; } |
2348 | 2349 |
2349 DECLARE_CONCRETE_INSTRUCTION(CheckValue, "check-value") | 2350 DECLARE_CONCRETE_INSTRUCTION(CheckValue, "check-value") |
2350 DECLARE_HYDROGEN_ACCESSOR(CheckValue) | 2351 DECLARE_HYDROGEN_ACCESSOR(CheckValue) |
2351 }; | 2352 }; |
2352 | 2353 |
2353 | 2354 |
| 2355 class LCheckArrayBufferNotNeutered final |
| 2356 : public LTemplateInstruction<0, 1, 0> { |
| 2357 public: |
| 2358 explicit LCheckArrayBufferNotNeutered(LOperand* view) { inputs_[0] = view; } |
| 2359 |
| 2360 LOperand* view() { return inputs_[0]; } |
| 2361 |
| 2362 DECLARE_CONCRETE_INSTRUCTION(CheckArrayBufferNotNeutered, |
| 2363 "check-array-buffer-not-neutered") |
| 2364 DECLARE_HYDROGEN_ACCESSOR(CheckArrayBufferNotNeutered) |
| 2365 }; |
| 2366 |
| 2367 |
2354 class LCheckInstanceType final : public LTemplateInstruction<0, 1, 0> { | 2368 class LCheckInstanceType final : public LTemplateInstruction<0, 1, 0> { |
2355 public: | 2369 public: |
2356 explicit LCheckInstanceType(LOperand* value) { | 2370 explicit LCheckInstanceType(LOperand* value) { |
2357 inputs_[0] = value; | 2371 inputs_[0] = value; |
2358 } | 2372 } |
2359 | 2373 |
2360 LOperand* value() { return inputs_[0]; } | 2374 LOperand* value() { return inputs_[0]; } |
2361 | 2375 |
2362 DECLARE_CONCRETE_INSTRUCTION(CheckInstanceType, "check-instance-type") | 2376 DECLARE_CONCRETE_INSTRUCTION(CheckInstanceType, "check-instance-type") |
2363 DECLARE_HYDROGEN_ACCESSOR(CheckInstanceType) | 2377 DECLARE_HYDROGEN_ACCESSOR(CheckInstanceType) |
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2837 | 2851 |
2838 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2852 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2839 }; | 2853 }; |
2840 | 2854 |
2841 #undef DECLARE_HYDROGEN_ACCESSOR | 2855 #undef DECLARE_HYDROGEN_ACCESSOR |
2842 #undef DECLARE_CONCRETE_INSTRUCTION | 2856 #undef DECLARE_CONCRETE_INSTRUCTION |
2843 | 2857 |
2844 } } // namespace v8::int | 2858 } } // namespace v8::int |
2845 | 2859 |
2846 #endif // V8_X64_LITHIUM_X64_H_ | 2860 #endif // V8_X64_LITHIUM_X64_H_ |
OLD | NEW |