| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 1555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1566 | 1566 |
| 1567 virtual Representation RequiredInputRepresentation(int index) { | 1567 virtual Representation RequiredInputRepresentation(int index) { |
| 1568 return Representation::Tagged(); | 1568 return Representation::Tagged(); |
| 1569 } | 1569 } |
| 1570 | 1570 |
| 1571 private: | 1571 private: |
| 1572 Handle<String> name_; | 1572 Handle<String> name_; |
| 1573 }; | 1573 }; |
| 1574 | 1574 |
| 1575 | 1575 |
| 1576 class HCallFunction: public HUnaryCall { | 1576 class HCallFunction: public HBinaryCall { |
| 1577 public: | 1577 public: |
| 1578 HCallFunction(HValue* context, int argument_count) | 1578 HCallFunction(HValue* context, HValue* function, int argument_count) |
| 1579 : HUnaryCall(context, argument_count) { | 1579 : HBinaryCall(context, function, argument_count) { |
| 1580 } | 1580 } |
| 1581 | 1581 |
| 1582 HValue* context() { return value(); } | 1582 HValue* context() { return first(); } |
| 1583 HValue* function() { return second(); } |
| 1583 | 1584 |
| 1584 virtual Representation RequiredInputRepresentation(int index) { | 1585 virtual Representation RequiredInputRepresentation(int index) { |
| 1585 return Representation::Tagged(); | 1586 return Representation::Tagged(); |
| 1586 } | 1587 } |
| 1587 | 1588 |
| 1588 DECLARE_CONCRETE_INSTRUCTION(CallFunction) | 1589 DECLARE_CONCRETE_INSTRUCTION(CallFunction) |
| 1589 }; | 1590 }; |
| 1590 | 1591 |
| 1591 | 1592 |
| 1592 class HCallGlobal: public HUnaryCall { | 1593 class HCallGlobal: public HUnaryCall { |
| (...skipping 2655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4248 | 4249 |
| 4249 DECLARE_CONCRETE_INSTRUCTION(In) | 4250 DECLARE_CONCRETE_INSTRUCTION(In) |
| 4250 }; | 4251 }; |
| 4251 | 4252 |
| 4252 #undef DECLARE_INSTRUCTION | 4253 #undef DECLARE_INSTRUCTION |
| 4253 #undef DECLARE_CONCRETE_INSTRUCTION | 4254 #undef DECLARE_CONCRETE_INSTRUCTION |
| 4254 | 4255 |
| 4255 } } // namespace v8::internal | 4256 } } // namespace v8::internal |
| 4256 | 4257 |
| 4257 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 4258 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |