| 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_IA32_LITHIUM_IA32_H_ | 5 #ifndef V8_IA32_LITHIUM_IA32_H_ |
| 6 #define V8_IA32_LITHIUM_IA32_H_ | 6 #define V8_IA32_LITHIUM_IA32_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 23 matching lines...) Expand all Loading... |
| 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) \ | 40 V(CallNew) \ |
| 41 V(CallNewArray) \ | 41 V(CallNewArray) \ |
| 42 V(CallRuntime) \ | 42 V(CallRuntime) \ |
| 43 V(CallStub) \ | 43 V(CallStub) \ |
| 44 V(CheckArrayBufferNotNeutered) \ |
| 44 V(CheckInstanceType) \ | 45 V(CheckInstanceType) \ |
| 45 V(CheckMaps) \ | 46 V(CheckMaps) \ |
| 46 V(CheckMapValue) \ | 47 V(CheckMapValue) \ |
| 47 V(CheckNonSmi) \ | 48 V(CheckNonSmi) \ |
| 48 V(CheckSmi) \ | 49 V(CheckSmi) \ |
| 49 V(CheckValue) \ | 50 V(CheckValue) \ |
| 50 V(ClampDToUint8) \ | 51 V(ClampDToUint8) \ |
| 51 V(ClampIToUint8) \ | 52 V(ClampIToUint8) \ |
| 52 V(ClampTToUint8) \ | 53 V(ClampTToUint8) \ |
| 53 V(ClassOfTestAndBranch) \ | 54 V(ClassOfTestAndBranch) \ |
| (...skipping 2316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2370 inputs_[0] = value; | 2371 inputs_[0] = value; |
| 2371 } | 2372 } |
| 2372 | 2373 |
| 2373 LOperand* value() { return inputs_[0]; } | 2374 LOperand* value() { return inputs_[0]; } |
| 2374 | 2375 |
| 2375 DECLARE_CONCRETE_INSTRUCTION(CheckValue, "check-value") | 2376 DECLARE_CONCRETE_INSTRUCTION(CheckValue, "check-value") |
| 2376 DECLARE_HYDROGEN_ACCESSOR(CheckValue) | 2377 DECLARE_HYDROGEN_ACCESSOR(CheckValue) |
| 2377 }; | 2378 }; |
| 2378 | 2379 |
| 2379 | 2380 |
| 2381 class LCheckArrayBufferNotNeutered final |
| 2382 : public LTemplateInstruction<0, 1, 1> { |
| 2383 public: |
| 2384 explicit LCheckArrayBufferNotNeutered(LOperand* view, LOperand* scratch) { |
| 2385 inputs_[0] = view; |
| 2386 temps_[0] = scratch; |
| 2387 } |
| 2388 |
| 2389 LOperand* view() { return inputs_[0]; } |
| 2390 LOperand* scratch() { return temps_[0]; } |
| 2391 |
| 2392 DECLARE_CONCRETE_INSTRUCTION(CheckArrayBufferNotNeutered, |
| 2393 "check-array-buffer-not-neutered") |
| 2394 DECLARE_HYDROGEN_ACCESSOR(CheckArrayBufferNotNeutered) |
| 2395 }; |
| 2396 |
| 2397 |
| 2380 class LCheckInstanceType final : public LTemplateInstruction<0, 1, 1> { | 2398 class LCheckInstanceType final : public LTemplateInstruction<0, 1, 1> { |
| 2381 public: | 2399 public: |
| 2382 LCheckInstanceType(LOperand* value, LOperand* temp) { | 2400 LCheckInstanceType(LOperand* value, LOperand* temp) { |
| 2383 inputs_[0] = value; | 2401 inputs_[0] = value; |
| 2384 temps_[0] = temp; | 2402 temps_[0] = temp; |
| 2385 } | 2403 } |
| 2386 | 2404 |
| 2387 LOperand* value() { return inputs_[0]; } | 2405 LOperand* value() { return inputs_[0]; } |
| 2388 LOperand* temp() { return temps_[0]; } | 2406 LOperand* temp() { return temps_[0]; } |
| 2389 | 2407 |
| (...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2850 | 2868 |
| 2851 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2869 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2852 }; | 2870 }; |
| 2853 | 2871 |
| 2854 #undef DECLARE_HYDROGEN_ACCESSOR | 2872 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2855 #undef DECLARE_CONCRETE_INSTRUCTION | 2873 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2856 | 2874 |
| 2857 } } // namespace v8::internal | 2875 } } // namespace v8::internal |
| 2858 | 2876 |
| 2859 #endif // V8_IA32_LITHIUM_IA32_H_ | 2877 #endif // V8_IA32_LITHIUM_IA32_H_ |
| OLD | NEW |