| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 #define LITHIUM_CONCRETE_INSTRUCTION_LIST(V) \ | 43 #define LITHIUM_CONCRETE_INSTRUCTION_LIST(V) \ |
| 44 V(AccessArgumentsAt) \ | 44 V(AccessArgumentsAt) \ |
| 45 V(AddI) \ | 45 V(AddI) \ |
| 46 V(Allocate) \ | 46 V(Allocate) \ |
| 47 V(ApplyArguments) \ | 47 V(ApplyArguments) \ |
| 48 V(ArgumentsElements) \ | 48 V(ArgumentsElements) \ |
| 49 V(ArgumentsLength) \ | 49 V(ArgumentsLength) \ |
| 50 V(ArithmeticD) \ | 50 V(ArithmeticD) \ |
| 51 V(ArithmeticT) \ | 51 V(ArithmeticT) \ |
| 52 V(BitI) \ | 52 V(BitI) \ |
| 53 V(BitNotI) \ |
| 53 V(BoundsCheck) \ | 54 V(BoundsCheck) \ |
| 54 V(Branch) \ | 55 V(Branch) \ |
| 55 V(CallConstantFunction) \ | 56 V(CallConstantFunction) \ |
| 56 V(CallFunction) \ | 57 V(CallFunction) \ |
| 57 V(CallGlobal) \ | 58 V(CallGlobal) \ |
| 58 V(CallKeyed) \ | 59 V(CallKeyed) \ |
| 59 V(CallKnownGlobal) \ | 60 V(CallKnownGlobal) \ |
| 60 V(CallNamed) \ | 61 V(CallNamed) \ |
| 61 V(CallNew) \ | 62 V(CallNew) \ |
| 62 V(CallNewArray) \ | 63 V(CallNewArray) \ |
| 63 V(CallRuntime) \ | 64 V(CallRuntime) \ |
| 64 V(CallStub) \ | 65 V(CallStub) \ |
| 65 V(CheckFunction) \ | 66 V(CheckFunction) \ |
| 66 V(CheckInstanceType) \ | 67 V(CheckInstanceType) \ |
| 67 V(CheckNonSmi) \ | 68 V(CheckNonSmi) \ |
| 68 V(CheckMaps) \ | 69 V(CheckMaps) \ |
| 69 V(CheckMapValue) \ | 70 V(CheckMapValue) \ |
| 71 V(CheckPrototypeMaps) \ |
| 70 V(CheckSmi) \ | 72 V(CheckSmi) \ |
| 71 V(ClampDToUint8) \ | 73 V(ClampDToUint8) \ |
| 72 V(ClampIToUint8) \ | 74 V(ClampIToUint8) \ |
| 73 V(ClampTToUint8) \ | 75 V(ClampTToUint8) \ |
| 74 V(ClassOfTestAndBranch) \ | 76 V(ClassOfTestAndBranch) \ |
| 75 V(CompareNumericAndBranch) \ | 77 V(CompareNumericAndBranch) \ |
| 76 V(CmpObjectEqAndBranch) \ | 78 V(CmpObjectEqAndBranch) \ |
| 77 V(CmpMapAndBranch) \ | 79 V(CmpMapAndBranch) \ |
| 78 V(CmpT) \ | 80 V(CmpT) \ |
| 79 V(ConstantD) \ | 81 V(ConstantD) \ |
| (...skipping 1289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1369 explicit LThrow(LOperand* value) { | 1371 explicit LThrow(LOperand* value) { |
| 1370 inputs_[0] = value; | 1372 inputs_[0] = value; |
| 1371 } | 1373 } |
| 1372 | 1374 |
| 1373 LOperand* value() { return inputs_[0]; } | 1375 LOperand* value() { return inputs_[0]; } |
| 1374 | 1376 |
| 1375 DECLARE_CONCRETE_INSTRUCTION(Throw, "throw") | 1377 DECLARE_CONCRETE_INSTRUCTION(Throw, "throw") |
| 1376 }; | 1378 }; |
| 1377 | 1379 |
| 1378 | 1380 |
| 1381 class LBitNotI: public LTemplateInstruction<1, 1, 0> { |
| 1382 public: |
| 1383 explicit LBitNotI(LOperand* value) { |
| 1384 inputs_[0] = value; |
| 1385 } |
| 1386 |
| 1387 LOperand* value() { return inputs_[0]; } |
| 1388 |
| 1389 DECLARE_CONCRETE_INSTRUCTION(BitNotI, "bit-not-i") |
| 1390 }; |
| 1391 |
| 1392 |
| 1379 class LAddI: public LTemplateInstruction<1, 2, 0> { | 1393 class LAddI: public LTemplateInstruction<1, 2, 0> { |
| 1380 public: | 1394 public: |
| 1381 LAddI(LOperand* left, LOperand* right) { | 1395 LAddI(LOperand* left, LOperand* right) { |
| 1382 inputs_[0] = left; | 1396 inputs_[0] = left; |
| 1383 inputs_[1] = right; | 1397 inputs_[1] = right; |
| 1384 } | 1398 } |
| 1385 | 1399 |
| 1386 LOperand* left() { return inputs_[0]; } | 1400 LOperand* left() { return inputs_[0]; } |
| 1387 LOperand* right() { return inputs_[1]; } | 1401 LOperand* right() { return inputs_[1]; } |
| 1388 | 1402 |
| (...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2129 | 2143 |
| 2130 LOperand* object() { return inputs_[0]; } | 2144 LOperand* object() { return inputs_[0]; } |
| 2131 LOperand* value() { return inputs_[1]; } | 2145 LOperand* value() { return inputs_[1]; } |
| 2132 LOperand* temp() { return temps_[0]; } | 2146 LOperand* temp() { return temps_[0]; } |
| 2133 | 2147 |
| 2134 DECLARE_CONCRETE_INSTRUCTION(StoreNamedField, "store-named-field") | 2148 DECLARE_CONCRETE_INSTRUCTION(StoreNamedField, "store-named-field") |
| 2135 DECLARE_HYDROGEN_ACCESSOR(StoreNamedField) | 2149 DECLARE_HYDROGEN_ACCESSOR(StoreNamedField) |
| 2136 | 2150 |
| 2137 virtual void PrintDataTo(StringStream* stream); | 2151 virtual void PrintDataTo(StringStream* stream); |
| 2138 | 2152 |
| 2139 Handle<Map> transition() const { return hydrogen()->transition_map(); } | 2153 Handle<Map> transition() const { return hydrogen()->transition(); } |
| 2140 Representation representation() const { | 2154 Representation representation() const { |
| 2141 return hydrogen()->field_representation(); | 2155 return hydrogen()->field_representation(); |
| 2142 } | 2156 } |
| 2143 }; | 2157 }; |
| 2144 | 2158 |
| 2145 | 2159 |
| 2146 class LStoreNamedGeneric: public LTemplateInstruction<0, 2, 0> { | 2160 class LStoreNamedGeneric: public LTemplateInstruction<0, 2, 0> { |
| 2147 public: | 2161 public: |
| 2148 LStoreNamedGeneric(LOperand* object, LOperand* value) { | 2162 LStoreNamedGeneric(LOperand* object, LOperand* value) { |
| 2149 inputs_[0] = object; | 2163 inputs_[0] = object; |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2331 inputs_[0] = value; | 2345 inputs_[0] = value; |
| 2332 } | 2346 } |
| 2333 | 2347 |
| 2334 LOperand* value() { return inputs_[0]; } | 2348 LOperand* value() { return inputs_[0]; } |
| 2335 | 2349 |
| 2336 DECLARE_CONCRETE_INSTRUCTION(CheckMaps, "check-maps") | 2350 DECLARE_CONCRETE_INSTRUCTION(CheckMaps, "check-maps") |
| 2337 DECLARE_HYDROGEN_ACCESSOR(CheckMaps) | 2351 DECLARE_HYDROGEN_ACCESSOR(CheckMaps) |
| 2338 }; | 2352 }; |
| 2339 | 2353 |
| 2340 | 2354 |
| 2355 class LCheckPrototypeMaps: public LTemplateInstruction<0, 0, 2> { |
| 2356 public: |
| 2357 LCheckPrototypeMaps(LOperand* temp, LOperand* temp2) { |
| 2358 temps_[0] = temp; |
| 2359 temps_[1] = temp2; |
| 2360 } |
| 2361 |
| 2362 LOperand* temp() { return temps_[0]; } |
| 2363 LOperand* temp2() { return temps_[1]; } |
| 2364 |
| 2365 DECLARE_CONCRETE_INSTRUCTION(CheckPrototypeMaps, "check-prototype-maps") |
| 2366 DECLARE_HYDROGEN_ACCESSOR(CheckPrototypeMaps) |
| 2367 |
| 2368 ZoneList<Handle<JSObject> >* prototypes() const { |
| 2369 return hydrogen()->prototypes(); |
| 2370 } |
| 2371 ZoneList<Handle<Map> >* maps() const { return hydrogen()->maps(); } |
| 2372 }; |
| 2373 |
| 2374 |
| 2341 class LCheckSmi: public LTemplateInstruction<1, 1, 0> { | 2375 class LCheckSmi: public LTemplateInstruction<1, 1, 0> { |
| 2342 public: | 2376 public: |
| 2343 explicit LCheckSmi(LOperand* value) { | 2377 explicit LCheckSmi(LOperand* value) { |
| 2344 inputs_[0] = value; | 2378 inputs_[0] = value; |
| 2345 } | 2379 } |
| 2346 | 2380 |
| 2347 LOperand* value() { return inputs_[0]; } | 2381 LOperand* value() { return inputs_[0]; } |
| 2348 | 2382 |
| 2349 DECLARE_CONCRETE_INSTRUCTION(CheckSmi, "check-smi") | 2383 DECLARE_CONCRETE_INSTRUCTION(CheckSmi, "check-smi") |
| 2350 }; | 2384 }; |
| (...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2629 LPlatformChunk* chunk() const { return chunk_; } | 2663 LPlatformChunk* chunk() const { return chunk_; } |
| 2630 CompilationInfo* info() const { return info_; } | 2664 CompilationInfo* info() const { return info_; } |
| 2631 HGraph* graph() const { return graph_; } | 2665 HGraph* graph() const { return graph_; } |
| 2632 Zone* zone() const { return zone_; } | 2666 Zone* zone() const { return zone_; } |
| 2633 | 2667 |
| 2634 bool is_unused() const { return status_ == UNUSED; } | 2668 bool is_unused() const { return status_ == UNUSED; } |
| 2635 bool is_building() const { return status_ == BUILDING; } | 2669 bool is_building() const { return status_ == BUILDING; } |
| 2636 bool is_done() const { return status_ == DONE; } | 2670 bool is_done() const { return status_ == DONE; } |
| 2637 bool is_aborted() const { return status_ == ABORTED; } | 2671 bool is_aborted() const { return status_ == ABORTED; } |
| 2638 | 2672 |
| 2639 void Abort(BailoutReason reason); | 2673 void Abort(const char* reason); |
| 2640 | 2674 |
| 2641 // Methods for getting operands for Use / Define / Temp. | 2675 // Methods for getting operands for Use / Define / Temp. |
| 2642 LUnallocated* ToUnallocated(Register reg); | 2676 LUnallocated* ToUnallocated(Register reg); |
| 2643 LUnallocated* ToUnallocated(DoubleRegister reg); | 2677 LUnallocated* ToUnallocated(DoubleRegister reg); |
| 2644 | 2678 |
| 2645 // Methods for setting up define-use relationships. | 2679 // Methods for setting up define-use relationships. |
| 2646 MUST_USE_RESULT LOperand* Use(HValue* value, LUnallocated* operand); | 2680 MUST_USE_RESULT LOperand* Use(HValue* value, LUnallocated* operand); |
| 2647 MUST_USE_RESULT LOperand* UseFixed(HValue* value, Register fixed_register); | 2681 MUST_USE_RESULT LOperand* UseFixed(HValue* value, Register fixed_register); |
| 2648 MUST_USE_RESULT LOperand* UseFixedDouble(HValue* value, | 2682 MUST_USE_RESULT LOperand* UseFixedDouble(HValue* value, |
| 2649 DoubleRegister fixed_register); | 2683 DoubleRegister fixed_register); |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2745 | 2779 |
| 2746 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2780 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2747 }; | 2781 }; |
| 2748 | 2782 |
| 2749 #undef DECLARE_HYDROGEN_ACCESSOR | 2783 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2750 #undef DECLARE_CONCRETE_INSTRUCTION | 2784 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2751 | 2785 |
| 2752 } } // namespace v8::internal | 2786 } } // namespace v8::internal |
| 2753 | 2787 |
| 2754 #endif // V8_ARM_LITHIUM_ARM_H_ | 2788 #endif // V8_ARM_LITHIUM_ARM_H_ |
| OLD | NEW |