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) \ | |
80 V(ClampDToUint8) \ | 79 V(ClampDToUint8) \ |
81 V(ClampIToUint8) \ | 80 V(ClampIToUint8) \ |
82 V(ClampTToUint8) \ | 81 V(ClampTToUint8) \ |
83 V(ClassOfTestAndBranch) \ | 82 V(ClassOfTestAndBranch) \ |
84 V(CmpConstantEqAndBranch) \ | 83 V(CmpConstantEqAndBranch) \ |
85 V(CmpIDAndBranch) \ | 84 V(CmpIDAndBranch) \ |
86 V(CmpObjectEqAndBranch) \ | 85 V(CmpObjectEqAndBranch) \ |
87 V(CmpMapAndBranch) \ | 86 V(CmpMapAndBranch) \ |
88 V(CmpT) \ | 87 V(CmpT) \ |
89 V(ConstantD) \ | 88 V(ConstantD) \ |
(...skipping 2228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2318 DECLARE_CONCRETE_INSTRUCTION(CheckPrototypeMaps, "check-prototype-maps") | 2317 DECLARE_CONCRETE_INSTRUCTION(CheckPrototypeMaps, "check-prototype-maps") |
2319 DECLARE_HYDROGEN_ACCESSOR(CheckPrototypeMaps) | 2318 DECLARE_HYDROGEN_ACCESSOR(CheckPrototypeMaps) |
2320 | 2319 |
2321 ZoneList<Handle<JSObject> >* prototypes() const { | 2320 ZoneList<Handle<JSObject> >* prototypes() const { |
2322 return hydrogen()->prototypes(); | 2321 return hydrogen()->prototypes(); |
2323 } | 2322 } |
2324 ZoneList<Handle<Map> >* maps() const { return hydrogen()->maps(); } | 2323 ZoneList<Handle<Map> >* maps() const { return hydrogen()->maps(); } |
2325 }; | 2324 }; |
2326 | 2325 |
2327 | 2326 |
2328 class LCheckSmi: public LTemplateInstruction<0, 1, 0> { | 2327 class LCheckSmi: public LTemplateInstruction<1, 1, 0> { |
2329 public: | 2328 public: |
2330 explicit LCheckSmi(LOperand* value) { | 2329 explicit LCheckSmi(LOperand* value) { |
2331 inputs_[0] = value; | 2330 inputs_[0] = value; |
2332 } | 2331 } |
2333 | 2332 |
2334 LOperand* value() { return inputs_[0]; } | 2333 LOperand* value() { return inputs_[0]; } |
2335 | 2334 |
2336 DECLARE_CONCRETE_INSTRUCTION(CheckSmi, "check-smi") | 2335 DECLARE_CONCRETE_INSTRUCTION(CheckSmi, "check-smi") |
2337 }; | 2336 }; |
2338 | 2337 |
2339 | 2338 |
2340 class LCheckSmiAndReturn: public LTemplateInstruction<1, 1, 0> { | |
2341 public: | |
2342 explicit LCheckSmiAndReturn(LOperand* value) { | |
2343 inputs_[0] = value; | |
2344 } | |
2345 | |
2346 LOperand* value() { return inputs_[0]; } | |
2347 | |
2348 DECLARE_CONCRETE_INSTRUCTION(CheckSmiAndReturn, "check-smi-and-return") | |
2349 }; | |
2350 | |
2351 | |
2352 class LCheckNonSmi: public LTemplateInstruction<0, 1, 0> { | 2339 class LCheckNonSmi: public LTemplateInstruction<0, 1, 0> { |
2353 public: | 2340 public: |
2354 explicit LCheckNonSmi(LOperand* value) { | 2341 explicit LCheckNonSmi(LOperand* value) { |
2355 inputs_[0] = value; | 2342 inputs_[0] = value; |
2356 } | 2343 } |
2357 | 2344 |
2358 LOperand* value() { return inputs_[0]; } | 2345 LOperand* value() { return inputs_[0]; } |
2359 | 2346 |
2360 DECLARE_CONCRETE_INSTRUCTION(CheckNonSmi, "check-non-smi") | 2347 DECLARE_CONCRETE_INSTRUCTION(CheckNonSmi, "check-non-smi") |
2361 }; | 2348 }; |
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2800 | 2787 |
2801 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2788 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2802 }; | 2789 }; |
2803 | 2790 |
2804 #undef DECLARE_HYDROGEN_ACCESSOR | 2791 #undef DECLARE_HYDROGEN_ACCESSOR |
2805 #undef DECLARE_CONCRETE_INSTRUCTION | 2792 #undef DECLARE_CONCRETE_INSTRUCTION |
2806 | 2793 |
2807 } } // namespace v8::internal | 2794 } } // namespace v8::internal |
2808 | 2795 |
2809 #endif // V8_MIPS_LITHIUM_MIPS_H_ | 2796 #endif // V8_MIPS_LITHIUM_MIPS_H_ |
OLD | NEW |