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 1361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1372 DECLARE_CONCRETE_INSTRUCTION(CallNamed, "call-named") | 1372 DECLARE_CONCRETE_INSTRUCTION(CallNamed, "call-named") |
1373 DECLARE_HYDROGEN_ACCESSOR(CallNamed) | 1373 DECLARE_HYDROGEN_ACCESSOR(CallNamed) |
1374 | 1374 |
1375 virtual void PrintDataTo(StringStream* stream); | 1375 virtual void PrintDataTo(StringStream* stream); |
1376 | 1376 |
1377 Handle<String> name() const { return hydrogen()->name(); } | 1377 Handle<String> name() const { return hydrogen()->name(); } |
1378 int arity() const { return hydrogen()->argument_count() - 1; } | 1378 int arity() const { return hydrogen()->argument_count() - 1; } |
1379 }; | 1379 }; |
1380 | 1380 |
1381 | 1381 |
1382 class LCallFunction: public LTemplateInstruction<1, 0, 0> { | 1382 class LCallFunction: public LTemplateInstruction<1, 1, 0> { |
1383 public: | 1383 public: |
| 1384 explicit LCallFunction(LOperand* function) { |
| 1385 inputs_[0] = function; |
| 1386 } |
| 1387 |
1384 DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function") | 1388 DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function") |
1385 DECLARE_HYDROGEN_ACCESSOR(CallFunction) | 1389 DECLARE_HYDROGEN_ACCESSOR(CallFunction) |
1386 | 1390 |
1387 int arity() const { return hydrogen()->argument_count() - 2; } | 1391 LOperand* function() { return inputs_[0]; } |
| 1392 int arity() const { return hydrogen()->argument_count() - 1; } |
1388 }; | 1393 }; |
1389 | 1394 |
1390 | 1395 |
1391 class LCallGlobal: public LTemplateInstruction<1, 0, 0> { | 1396 class LCallGlobal: public LTemplateInstruction<1, 0, 0> { |
1392 public: | 1397 public: |
1393 DECLARE_CONCRETE_INSTRUCTION(CallGlobal, "call-global") | 1398 DECLARE_CONCRETE_INSTRUCTION(CallGlobal, "call-global") |
1394 DECLARE_HYDROGEN_ACCESSOR(CallGlobal) | 1399 DECLARE_HYDROGEN_ACCESSOR(CallGlobal) |
1395 | 1400 |
1396 virtual void PrintDataTo(StringStream* stream); | 1401 virtual void PrintDataTo(StringStream* stream); |
1397 | 1402 |
(...skipping 813 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2211 | 2216 |
2212 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2217 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2213 }; | 2218 }; |
2214 | 2219 |
2215 #undef DECLARE_HYDROGEN_ACCESSOR | 2220 #undef DECLARE_HYDROGEN_ACCESSOR |
2216 #undef DECLARE_CONCRETE_INSTRUCTION | 2221 #undef DECLARE_CONCRETE_INSTRUCTION |
2217 | 2222 |
2218 } } // namespace v8::internal | 2223 } } // namespace v8::internal |
2219 | 2224 |
2220 #endif // V8_MIPS_LITHIUM_MIPS_H_ | 2225 #endif // V8_MIPS_LITHIUM_MIPS_H_ |
OLD | NEW |