| 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 1406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1417 DECLARE_HYDROGEN_ACCESSOR(CallNamed) | 1417 DECLARE_HYDROGEN_ACCESSOR(CallNamed) |
| 1418 | 1418 |
| 1419 virtual void PrintDataTo(StringStream* stream); | 1419 virtual void PrintDataTo(StringStream* stream); |
| 1420 | 1420 |
| 1421 LOperand* context() { return inputs_[0]; } | 1421 LOperand* context() { return inputs_[0]; } |
| 1422 Handle<String> name() const { return hydrogen()->name(); } | 1422 Handle<String> name() const { return hydrogen()->name(); } |
| 1423 int arity() const { return hydrogen()->argument_count() - 1; } | 1423 int arity() const { return hydrogen()->argument_count() - 1; } |
| 1424 }; | 1424 }; |
| 1425 | 1425 |
| 1426 | 1426 |
| 1427 class LCallFunction: public LTemplateInstruction<1, 1, 0> { | 1427 class LCallFunction: public LTemplateInstruction<1, 2, 0> { |
| 1428 public: | 1428 public: |
| 1429 explicit LCallFunction(LOperand* context) { | 1429 explicit LCallFunction(LOperand* context, LOperand* function) { |
| 1430 inputs_[0] = context; | 1430 inputs_[0] = context; |
| 1431 inputs_[1] = function; |
| 1431 } | 1432 } |
| 1432 | 1433 |
| 1433 DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function") | 1434 DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function") |
| 1434 DECLARE_HYDROGEN_ACCESSOR(CallFunction) | 1435 DECLARE_HYDROGEN_ACCESSOR(CallFunction) |
| 1435 | 1436 |
| 1436 LOperand* context() { return inputs_[0]; } | 1437 LOperand* context() { return inputs_[0]; } |
| 1437 int arity() const { return hydrogen()->argument_count() - 2; } | 1438 LOperand* function() { return inputs_[1]; } |
| 1439 int arity() const { return hydrogen()->argument_count() - 1; } |
| 1438 }; | 1440 }; |
| 1439 | 1441 |
| 1440 | 1442 |
| 1441 class LCallGlobal: public LTemplateInstruction<1, 1, 0> { | 1443 class LCallGlobal: public LTemplateInstruction<1, 1, 0> { |
| 1442 public: | 1444 public: |
| 1443 explicit LCallGlobal(LOperand* context) { | 1445 explicit LCallGlobal(LOperand* context) { |
| 1444 inputs_[0] = context; | 1446 inputs_[0] = context; |
| 1445 } | 1447 } |
| 1446 | 1448 |
| 1447 DECLARE_CONCRETE_INSTRUCTION(CallGlobal, "call-global") | 1449 DECLARE_CONCRETE_INSTRUCTION(CallGlobal, "call-global") |
| (...skipping 846 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2294 | 2296 |
| 2295 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2297 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2296 }; | 2298 }; |
| 2297 | 2299 |
| 2298 #undef DECLARE_HYDROGEN_ACCESSOR | 2300 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2299 #undef DECLARE_CONCRETE_INSTRUCTION | 2301 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2300 | 2302 |
| 2301 } } // namespace v8::internal | 2303 } } // namespace v8::internal |
| 2302 | 2304 |
| 2303 #endif // V8_IA32_LITHIUM_IA32_H_ | 2305 #endif // V8_IA32_LITHIUM_IA32_H_ |
| OLD | NEW |