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 1484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1495 | 1495 |
1496 DECLARE_CONCRETE_INSTRUCTION(InvokeFunction, "invoke-function") | 1496 DECLARE_CONCRETE_INSTRUCTION(InvokeFunction, "invoke-function") |
1497 DECLARE_HYDROGEN_ACCESSOR(InvokeFunction) | 1497 DECLARE_HYDROGEN_ACCESSOR(InvokeFunction) |
1498 | 1498 |
1499 LOperand* context() { return inputs_[0]; } | 1499 LOperand* context() { return inputs_[0]; } |
1500 LOperand* function() { return inputs_[1]; } | 1500 LOperand* function() { return inputs_[1]; } |
1501 | 1501 |
1502 virtual void PrintDataTo(StringStream* stream); | 1502 virtual void PrintDataTo(StringStream* stream); |
1503 | 1503 |
1504 int arity() const { return hydrogen()->argument_count() - 1; } | 1504 int arity() const { return hydrogen()->argument_count() - 1; } |
| 1505 Handle<JSFunction> known_function() { return hydrogen()->known_function(); } |
1505 }; | 1506 }; |
1506 | 1507 |
1507 | 1508 |
1508 class LCallKeyed: public LTemplateInstruction<1, 2, 0> { | 1509 class LCallKeyed: public LTemplateInstruction<1, 2, 0> { |
1509 public: | 1510 public: |
1510 LCallKeyed(LOperand* context, LOperand* key) { | 1511 LCallKeyed(LOperand* context, LOperand* key) { |
1511 inputs_[0] = context; | 1512 inputs_[0] = context; |
1512 inputs_[1] = key; | 1513 inputs_[1] = key; |
1513 } | 1514 } |
1514 | 1515 |
(...skipping 1005 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2520 | 2521 |
2521 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2522 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2522 }; | 2523 }; |
2523 | 2524 |
2524 #undef DECLARE_HYDROGEN_ACCESSOR | 2525 #undef DECLARE_HYDROGEN_ACCESSOR |
2525 #undef DECLARE_CONCRETE_INSTRUCTION | 2526 #undef DECLARE_CONCRETE_INSTRUCTION |
2526 | 2527 |
2527 } } // namespace v8::internal | 2528 } } // namespace v8::internal |
2528 | 2529 |
2529 #endif // V8_IA32_LITHIUM_IA32_H_ | 2530 #endif // V8_IA32_LITHIUM_IA32_H_ |
OLD | NEW |