OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 1377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1388 class LNumberTagI: public LUnaryOperation { | 1388 class LNumberTagI: public LUnaryOperation { |
1389 public: | 1389 public: |
1390 explicit LNumberTagI(LOperand* use) : LUnaryOperation(use) { } | 1390 explicit LNumberTagI(LOperand* use) : LUnaryOperation(use) { } |
1391 | 1391 |
1392 DECLARE_CONCRETE_INSTRUCTION(NumberTagI, "number-tag-i") | 1392 DECLARE_CONCRETE_INSTRUCTION(NumberTagI, "number-tag-i") |
1393 }; | 1393 }; |
1394 | 1394 |
1395 | 1395 |
1396 class LNumberTagD: public LUnaryOperation { | 1396 class LNumberTagD: public LUnaryOperation { |
1397 public: | 1397 public: |
1398 LNumberTagD(LOperand* value, LOperand* temp1, LOperand* temp2) | 1398 explicit LNumberTagD(LOperand* value, LOperand* temp) |
1399 : LUnaryOperation(value), temp1_(temp1), temp2_(temp2) { } | 1399 : LUnaryOperation(value), temp_(temp) { } |
1400 | 1400 |
1401 DECLARE_CONCRETE_INSTRUCTION(NumberTagD, "number-tag-d") | 1401 DECLARE_CONCRETE_INSTRUCTION(NumberTagD, "number-tag-d") |
1402 | 1402 |
1403 LOperand* temp1() const { return temp1_; } | 1403 LOperand* temp() const { return temp_; } |
1404 LOperand* temp2() const { return temp2_; } | |
1405 | 1404 |
1406 private: | 1405 private: |
1407 LOperand* temp1_; | 1406 LOperand* temp_; |
1408 LOperand* temp2_; | |
1409 }; | 1407 }; |
1410 | 1408 |
1411 | 1409 |
1412 // Sometimes truncating conversion from a tagged value to an int32. | 1410 // Sometimes truncating conversion from a tagged value to an int32. |
1413 class LDoubleToI: public LUnaryOperation { | 1411 class LDoubleToI: public LUnaryOperation { |
1414 public: | 1412 public: |
1415 explicit LDoubleToI(LOperand* value) : LUnaryOperation(value) { } | 1413 explicit LDoubleToI(LOperand* value) : LUnaryOperation(value) { } |
1416 | 1414 |
1417 DECLARE_CONCRETE_INSTRUCTION(DoubleToI, "double-to-i") | 1415 DECLARE_CONCRETE_INSTRUCTION(DoubleToI, "double-to-i") |
1418 DECLARE_HYDROGEN_ACCESSOR(Change) | 1416 DECLARE_HYDROGEN_ACCESSOR(Change) |
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1882 | 1880 |
1883 int ParameterAt(int index); | 1881 int ParameterAt(int index); |
1884 int GetParameterStackSlot(int index) const; | 1882 int GetParameterStackSlot(int index) const; |
1885 int spill_slot_count() const { return spill_slot_count_; } | 1883 int spill_slot_count() const { return spill_slot_count_; } |
1886 HGraph* graph() const { return graph_; } | 1884 HGraph* graph() const { return graph_; } |
1887 const ZoneList<LInstruction*>* instructions() const { return &instructions_; } | 1885 const ZoneList<LInstruction*>* instructions() const { return &instructions_; } |
1888 void AddGapMove(int index, LOperand* from, LOperand* to); | 1886 void AddGapMove(int index, LOperand* from, LOperand* to); |
1889 LGap* GetGapAt(int index) const; | 1887 LGap* GetGapAt(int index) const; |
1890 bool IsGapAt(int index) const; | 1888 bool IsGapAt(int index) const; |
1891 int NearestGapPos(int index) const; | 1889 int NearestGapPos(int index) const; |
| 1890 int NearestNextGapPos(int index) const; |
1892 void MarkEmptyBlocks(); | 1891 void MarkEmptyBlocks(); |
1893 const ZoneList<LPointerMap*>* pointer_maps() const { return &pointer_maps_; } | 1892 const ZoneList<LPointerMap*>* pointer_maps() const { return &pointer_maps_; } |
1894 LLabel* GetLabel(int block_id) const { | 1893 LLabel* GetLabel(int block_id) const { |
1895 HBasicBlock* block = graph_->blocks()->at(block_id); | 1894 HBasicBlock* block = graph_->blocks()->at(block_id); |
1896 int first_instruction = block->first_instruction_index(); | 1895 int first_instruction = block->first_instruction_index(); |
1897 return LLabel::cast(instructions_[first_instruction]); | 1896 return LLabel::cast(instructions_[first_instruction]); |
1898 } | 1897 } |
1899 int LookupDestination(int block_id) const { | 1898 int LookupDestination(int block_id) const { |
1900 LLabel* cur = GetLabel(block_id); | 1899 LLabel* cur = GetLabel(block_id); |
1901 while (cur->replacement() != NULL) { | 1900 while (cur->replacement() != NULL) { |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2060 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2059 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2061 }; | 2060 }; |
2062 | 2061 |
2063 #undef DECLARE_HYDROGEN_ACCESSOR | 2062 #undef DECLARE_HYDROGEN_ACCESSOR |
2064 #undef DECLARE_INSTRUCTION | 2063 #undef DECLARE_INSTRUCTION |
2065 #undef DECLARE_CONCRETE_INSTRUCTION | 2064 #undef DECLARE_CONCRETE_INSTRUCTION |
2066 | 2065 |
2067 } } // namespace v8::internal | 2066 } } // namespace v8::internal |
2068 | 2067 |
2069 #endif // V8_ARM_LITHIUM_ARM_H_ | 2068 #endif // V8_ARM_LITHIUM_ARM_H_ |
OLD | NEW |