| 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 1380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1391 | 1391 |
| 1392 virtual Opcode opcode() const { return LInstruction::kArithmeticT; } | 1392 virtual Opcode opcode() const { return LInstruction::kArithmeticT; } |
| 1393 virtual void CompileToNative(LCodeGen* generator); | 1393 virtual void CompileToNative(LCodeGen* generator); |
| 1394 virtual const char* Mnemonic() const; | 1394 virtual const char* Mnemonic() const; |
| 1395 | 1395 |
| 1396 private: | 1396 private: |
| 1397 Token::Value op_; | 1397 Token::Value op_; |
| 1398 }; | 1398 }; |
| 1399 | 1399 |
| 1400 | 1400 |
| 1401 class LReturn: public LTemplateInstruction<0, 1, 0> { | 1401 class LReturn: public LTemplateInstruction<0, 2, 0> { |
| 1402 public: | 1402 public: |
| 1403 explicit LReturn(LOperand* value) { | 1403 explicit LReturn(LOperand* value, LOperand* parameter_count) { |
| 1404 inputs_[0] = value; | 1404 inputs_[0] = value; |
| 1405 inputs_[1] = parameter_count; |
| 1405 } | 1406 } |
| 1406 | 1407 |
| 1407 LOperand* value() { return inputs_[0]; } | 1408 LOperand* value() { return inputs_[0]; } |
| 1408 | 1409 |
| 1410 bool has_constant_parameter_count() { |
| 1411 return parameter_count()->IsConstantOperand(); |
| 1412 } |
| 1413 LConstantOperand* constant_parameter_count() { |
| 1414 ASSERT(has_constant_parameter_count()); |
| 1415 return LConstantOperand::cast(parameter_count()); |
| 1416 } |
| 1417 LOperand* parameter_count() { return inputs_[1]; } |
| 1418 |
| 1409 DECLARE_CONCRETE_INSTRUCTION(Return, "return") | 1419 DECLARE_CONCRETE_INSTRUCTION(Return, "return") |
| 1410 }; | 1420 }; |
| 1411 | 1421 |
| 1412 | 1422 |
| 1413 class LLoadNamedField: public LTemplateInstruction<1, 1, 0> { | 1423 class LLoadNamedField: public LTemplateInstruction<1, 1, 0> { |
| 1414 public: | 1424 public: |
| 1415 explicit LLoadNamedField(LOperand* object) { | 1425 explicit LLoadNamedField(LOperand* object) { |
| 1416 inputs_[0] = object; | 1426 inputs_[0] = object; |
| 1417 } | 1427 } |
| 1418 | 1428 |
| (...skipping 1303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2722 | 2732 |
| 2723 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2733 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2724 }; | 2734 }; |
| 2725 | 2735 |
| 2726 #undef DECLARE_HYDROGEN_ACCESSOR | 2736 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2727 #undef DECLARE_CONCRETE_INSTRUCTION | 2737 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2728 | 2738 |
| 2729 } } // namespace v8::internal | 2739 } } // namespace v8::internal |
| 2730 | 2740 |
| 2731 #endif // V8_ARM_LITHIUM_ARM_H_ | 2741 #endif // V8_ARM_LITHIUM_ARM_H_ |
| OLD | NEW |