| 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 1356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1367 DECLARE_CONCRETE_INSTRUCTION(CallNamed, "call-named") | 1367 DECLARE_CONCRETE_INSTRUCTION(CallNamed, "call-named") |
| 1368 DECLARE_HYDROGEN_ACCESSOR(CallNamed) | 1368 DECLARE_HYDROGEN_ACCESSOR(CallNamed) |
| 1369 | 1369 |
| 1370 virtual void PrintDataTo(StringStream* stream); | 1370 virtual void PrintDataTo(StringStream* stream); |
| 1371 | 1371 |
| 1372 Handle<String> name() const { return hydrogen()->name(); } | 1372 Handle<String> name() const { return hydrogen()->name(); } |
| 1373 int arity() const { return hydrogen()->argument_count() - 1; } | 1373 int arity() const { return hydrogen()->argument_count() - 1; } |
| 1374 }; | 1374 }; |
| 1375 | 1375 |
| 1376 | 1376 |
| 1377 class LCallFunction: public LTemplateInstruction<1, 0, 0> { | 1377 class LCallFunction: public LTemplateInstruction<1, 1, 0> { |
| 1378 public: | 1378 public: |
| 1379 LCallFunction() {} | 1379 explicit LCallFunction(LOperand* function) { |
| 1380 inputs_[0] = function; |
| 1381 } |
| 1380 | 1382 |
| 1381 DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function") | 1383 DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function") |
| 1382 DECLARE_HYDROGEN_ACCESSOR(CallFunction) | 1384 DECLARE_HYDROGEN_ACCESSOR(CallFunction) |
| 1383 | 1385 |
| 1384 int arity() const { return hydrogen()->argument_count() - 2; } | 1386 LOperand* function() { return inputs_[0]; } |
| 1387 int arity() const { return hydrogen()->argument_count() - 1; } |
| 1385 }; | 1388 }; |
| 1386 | 1389 |
| 1387 | 1390 |
| 1388 class LCallGlobal: public LTemplateInstruction<1, 0, 0> { | 1391 class LCallGlobal: public LTemplateInstruction<1, 0, 0> { |
| 1389 public: | 1392 public: |
| 1390 DECLARE_CONCRETE_INSTRUCTION(CallGlobal, "call-global") | 1393 DECLARE_CONCRETE_INSTRUCTION(CallGlobal, "call-global") |
| 1391 DECLARE_HYDROGEN_ACCESSOR(CallGlobal) | 1394 DECLARE_HYDROGEN_ACCESSOR(CallGlobal) |
| 1392 | 1395 |
| 1393 virtual void PrintDataTo(StringStream* stream); | 1396 virtual void PrintDataTo(StringStream* stream); |
| 1394 | 1397 |
| (...skipping 780 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2175 | 2178 |
| 2176 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2179 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2177 }; | 2180 }; |
| 2178 | 2181 |
| 2179 #undef DECLARE_HYDROGEN_ACCESSOR | 2182 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2180 #undef DECLARE_CONCRETE_INSTRUCTION | 2183 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2181 | 2184 |
| 2182 } } // namespace v8::int | 2185 } } // namespace v8::int |
| 2183 | 2186 |
| 2184 #endif // V8_X64_LITHIUM_X64_H_ | 2187 #endif // V8_X64_LITHIUM_X64_H_ |
| OLD | NEW |