OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 V(CallNew) \ | 69 V(CallNew) \ |
70 V(CallNewArray) \ | 70 V(CallNewArray) \ |
71 V(CallRuntime) \ | 71 V(CallRuntime) \ |
72 V(CallStub) \ | 72 V(CallStub) \ |
73 V(CheckFunction) \ | 73 V(CheckFunction) \ |
74 V(CheckInstanceType) \ | 74 V(CheckInstanceType) \ |
75 V(CheckMaps) \ | 75 V(CheckMaps) \ |
76 V(CheckNonSmi) \ | 76 V(CheckNonSmi) \ |
77 V(CheckPrototypeMaps) \ | 77 V(CheckPrototypeMaps) \ |
78 V(CheckSmi) \ | 78 V(CheckSmi) \ |
| 79 V(CheckSmiAndReturn) \ |
79 V(ClampDToUint8) \ | 80 V(ClampDToUint8) \ |
80 V(ClampIToUint8) \ | 81 V(ClampIToUint8) \ |
81 V(ClampTToUint8) \ | 82 V(ClampTToUint8) \ |
82 V(ClassOfTestAndBranch) \ | 83 V(ClassOfTestAndBranch) \ |
83 V(CmpConstantEqAndBranch) \ | 84 V(CmpConstantEqAndBranch) \ |
84 V(CmpIDAndBranch) \ | 85 V(CmpIDAndBranch) \ |
85 V(CmpObjectEqAndBranch) \ | 86 V(CmpObjectEqAndBranch) \ |
86 V(CmpMapAndBranch) \ | 87 V(CmpMapAndBranch) \ |
87 V(CmpT) \ | 88 V(CmpT) \ |
88 V(ConstantD) \ | 89 V(ConstantD) \ |
(...skipping 2198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2287 DECLARE_CONCRETE_INSTRUCTION(CheckPrototypeMaps, "check-prototype-maps") | 2288 DECLARE_CONCRETE_INSTRUCTION(CheckPrototypeMaps, "check-prototype-maps") |
2288 DECLARE_HYDROGEN_ACCESSOR(CheckPrototypeMaps) | 2289 DECLARE_HYDROGEN_ACCESSOR(CheckPrototypeMaps) |
2289 | 2290 |
2290 ZoneList<Handle<JSObject> >* prototypes() const { | 2291 ZoneList<Handle<JSObject> >* prototypes() const { |
2291 return hydrogen()->prototypes(); | 2292 return hydrogen()->prototypes(); |
2292 } | 2293 } |
2293 ZoneList<Handle<Map> >* maps() const { return hydrogen()->maps(); } | 2294 ZoneList<Handle<Map> >* maps() const { return hydrogen()->maps(); } |
2294 }; | 2295 }; |
2295 | 2296 |
2296 | 2297 |
2297 class LCheckSmi: public LTemplateInstruction<1, 1, 0> { | 2298 class LCheckSmi: public LTemplateInstruction<0, 1, 0> { |
2298 public: | 2299 public: |
2299 explicit LCheckSmi(LOperand* value) { | 2300 explicit LCheckSmi(LOperand* value) { |
2300 inputs_[0] = value; | 2301 inputs_[0] = value; |
2301 } | 2302 } |
2302 | 2303 |
2303 LOperand* value() { return inputs_[0]; } | 2304 LOperand* value() { return inputs_[0]; } |
2304 | 2305 |
2305 DECLARE_CONCRETE_INSTRUCTION(CheckSmi, "check-smi") | 2306 DECLARE_CONCRETE_INSTRUCTION(CheckSmi, "check-smi") |
2306 }; | 2307 }; |
2307 | 2308 |
2308 | 2309 |
| 2310 class LCheckSmiAndReturn: public LTemplateInstruction<1, 1, 0> { |
| 2311 public: |
| 2312 explicit LCheckSmiAndReturn(LOperand* value) { |
| 2313 inputs_[0] = value; |
| 2314 } |
| 2315 |
| 2316 LOperand* value() { return inputs_[0]; } |
| 2317 |
| 2318 DECLARE_CONCRETE_INSTRUCTION(CheckSmiAndReturn, "check-smi-and-return") |
| 2319 }; |
| 2320 |
| 2321 |
2309 class LClampDToUint8: public LTemplateInstruction<1, 1, 0> { | 2322 class LClampDToUint8: public LTemplateInstruction<1, 1, 0> { |
2310 public: | 2323 public: |
2311 explicit LClampDToUint8(LOperand* unclamped) { | 2324 explicit LClampDToUint8(LOperand* unclamped) { |
2312 inputs_[0] = unclamped; | 2325 inputs_[0] = unclamped; |
2313 } | 2326 } |
2314 | 2327 |
2315 LOperand* unclamped() { return inputs_[0]; } | 2328 LOperand* unclamped() { return inputs_[0]; } |
2316 | 2329 |
2317 DECLARE_CONCRETE_INSTRUCTION(ClampDToUint8, "clamp-d-to-uint8") | 2330 DECLARE_CONCRETE_INSTRUCTION(ClampDToUint8, "clamp-d-to-uint8") |
2318 }; | 2331 }; |
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2743 | 2756 |
2744 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2757 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2745 }; | 2758 }; |
2746 | 2759 |
2747 #undef DECLARE_HYDROGEN_ACCESSOR | 2760 #undef DECLARE_HYDROGEN_ACCESSOR |
2748 #undef DECLARE_CONCRETE_INSTRUCTION | 2761 #undef DECLARE_CONCRETE_INSTRUCTION |
2749 | 2762 |
2750 } } // namespace v8::int | 2763 } } // namespace v8::int |
2751 | 2764 |
2752 #endif // V8_X64_LITHIUM_X64_H_ | 2765 #endif // V8_X64_LITHIUM_X64_H_ |
OLD | NEW |