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 50 matching lines...) Loading... |
61 V(CallNamed) \ | 61 V(CallNamed) \ |
62 V(CallNew) \ | 62 V(CallNew) \ |
63 V(CallNewArray) \ | 63 V(CallNewArray) \ |
64 V(CallRuntime) \ | 64 V(CallRuntime) \ |
65 V(CallStub) \ | 65 V(CallStub) \ |
66 V(CheckFunction) \ | 66 V(CheckFunction) \ |
67 V(CheckInstanceType) \ | 67 V(CheckInstanceType) \ |
68 V(CheckMaps) \ | 68 V(CheckMaps) \ |
69 V(CheckMapValue) \ | 69 V(CheckMapValue) \ |
70 V(CheckNonSmi) \ | 70 V(CheckNonSmi) \ |
71 V(CheckPrototypeMaps) \ | |
72 V(CheckSmi) \ | 71 V(CheckSmi) \ |
73 V(ClampDToUint8) \ | 72 V(ClampDToUint8) \ |
74 V(ClampIToUint8) \ | 73 V(ClampIToUint8) \ |
75 V(ClampTToUint8) \ | 74 V(ClampTToUint8) \ |
76 V(ClampTToUint8NoSSE2) \ | 75 V(ClampTToUint8NoSSE2) \ |
77 V(ClassOfTestAndBranch) \ | 76 V(ClassOfTestAndBranch) \ |
78 V(CompareNumericAndBranch) \ | 77 V(CompareNumericAndBranch) \ |
79 V(CmpObjectEqAndBranch) \ | 78 V(CmpObjectEqAndBranch) \ |
80 V(CmpMapAndBranch) \ | 79 V(CmpMapAndBranch) \ |
81 V(CmpT) \ | 80 V(CmpT) \ |
(...skipping 2376 matching lines...) Loading... |
2458 inputs_[0] = value; | 2457 inputs_[0] = value; |
2459 } | 2458 } |
2460 | 2459 |
2461 LOperand* value() { return inputs_[0]; } | 2460 LOperand* value() { return inputs_[0]; } |
2462 | 2461 |
2463 DECLARE_CONCRETE_INSTRUCTION(CheckMaps, "check-maps") | 2462 DECLARE_CONCRETE_INSTRUCTION(CheckMaps, "check-maps") |
2464 DECLARE_HYDROGEN_ACCESSOR(CheckMaps) | 2463 DECLARE_HYDROGEN_ACCESSOR(CheckMaps) |
2465 }; | 2464 }; |
2466 | 2465 |
2467 | 2466 |
2468 class LCheckPrototypeMaps: public LTemplateInstruction<0, 0, 1> { | |
2469 public: | |
2470 explicit LCheckPrototypeMaps(LOperand* temp) { | |
2471 temps_[0] = temp; | |
2472 } | |
2473 | |
2474 LOperand* temp() { return temps_[0]; } | |
2475 | |
2476 DECLARE_CONCRETE_INSTRUCTION(CheckPrototypeMaps, "check-prototype-maps") | |
2477 DECLARE_HYDROGEN_ACCESSOR(CheckPrototypeMaps) | |
2478 | |
2479 ZoneList<Handle<JSObject> >* prototypes() const { | |
2480 return hydrogen()->prototypes(); | |
2481 } | |
2482 ZoneList<Handle<Map> >* maps() const { return hydrogen()->maps(); } | |
2483 }; | |
2484 | |
2485 | |
2486 class LCheckSmi: public LTemplateInstruction<1, 1, 0> { | 2467 class LCheckSmi: public LTemplateInstruction<1, 1, 0> { |
2487 public: | 2468 public: |
2488 explicit LCheckSmi(LOperand* value) { | 2469 explicit LCheckSmi(LOperand* value) { |
2489 inputs_[0] = value; | 2470 inputs_[0] = value; |
2490 } | 2471 } |
2491 | 2472 |
2492 LOperand* value() { return inputs_[0]; } | 2473 LOperand* value() { return inputs_[0]; } |
2493 | 2474 |
2494 DECLARE_CONCRETE_INSTRUCTION(CheckSmi, "check-smi") | 2475 DECLARE_CONCRETE_INSTRUCTION(CheckSmi, "check-smi") |
2495 }; | 2476 }; |
(...skipping 436 matching lines...) Loading... |
2932 | 2913 |
2933 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2914 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2934 }; | 2915 }; |
2935 | 2916 |
2936 #undef DECLARE_HYDROGEN_ACCESSOR | 2917 #undef DECLARE_HYDROGEN_ACCESSOR |
2937 #undef DECLARE_CONCRETE_INSTRUCTION | 2918 #undef DECLARE_CONCRETE_INSTRUCTION |
2938 | 2919 |
2939 } } // namespace v8::internal | 2920 } } // namespace v8::internal |
2940 | 2921 |
2941 #endif // V8_IA32_LITHIUM_IA32_H_ | 2922 #endif // V8_IA32_LITHIUM_IA32_H_ |
OLD | NEW |