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 1455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1466 } | 1466 } |
1467 | 1467 |
1468 DECLARE_CONCRETE_INSTRUCTION(InvokeFunction, "invoke-function") | 1468 DECLARE_CONCRETE_INSTRUCTION(InvokeFunction, "invoke-function") |
1469 DECLARE_HYDROGEN_ACCESSOR(InvokeFunction) | 1469 DECLARE_HYDROGEN_ACCESSOR(InvokeFunction) |
1470 | 1470 |
1471 LOperand* function() { return inputs_[0]; } | 1471 LOperand* function() { return inputs_[0]; } |
1472 | 1472 |
1473 virtual void PrintDataTo(StringStream* stream); | 1473 virtual void PrintDataTo(StringStream* stream); |
1474 | 1474 |
1475 int arity() const { return hydrogen()->argument_count() - 1; } | 1475 int arity() const { return hydrogen()->argument_count() - 1; } |
| 1476 Handle<JSFunction> known_function() { return hydrogen()->known_function(); } |
1476 }; | 1477 }; |
1477 | 1478 |
1478 | 1479 |
1479 class LCallKeyed: public LTemplateInstruction<1, 1, 0> { | 1480 class LCallKeyed: public LTemplateInstruction<1, 1, 0> { |
1480 public: | 1481 public: |
1481 explicit LCallKeyed(LOperand* key) { | 1482 explicit LCallKeyed(LOperand* key) { |
1482 inputs_[0] = key; | 1483 inputs_[0] = key; |
1483 } | 1484 } |
1484 | 1485 |
1485 DECLARE_CONCRETE_INSTRUCTION(CallKeyed, "call-keyed") | 1486 DECLARE_CONCRETE_INSTRUCTION(CallKeyed, "call-keyed") |
(...skipping 932 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2418 | 2419 |
2419 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2420 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2420 }; | 2421 }; |
2421 | 2422 |
2422 #undef DECLARE_HYDROGEN_ACCESSOR | 2423 #undef DECLARE_HYDROGEN_ACCESSOR |
2423 #undef DECLARE_CONCRETE_INSTRUCTION | 2424 #undef DECLARE_CONCRETE_INSTRUCTION |
2424 | 2425 |
2425 } } // namespace v8::internal | 2426 } } // namespace v8::internal |
2426 | 2427 |
2427 #endif // V8_ARM_LITHIUM_ARM_H_ | 2428 #endif // V8_ARM_LITHIUM_ARM_H_ |
OLD | NEW |