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 1435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1446 } | 1446 } |
1447 | 1447 |
1448 DECLARE_CONCRETE_INSTRUCTION(InvokeFunction, "invoke-function") | 1448 DECLARE_CONCRETE_INSTRUCTION(InvokeFunction, "invoke-function") |
1449 DECLARE_HYDROGEN_ACCESSOR(InvokeFunction) | 1449 DECLARE_HYDROGEN_ACCESSOR(InvokeFunction) |
1450 | 1450 |
1451 LOperand* function() { return inputs_[0]; } | 1451 LOperand* function() { return inputs_[0]; } |
1452 | 1452 |
1453 virtual void PrintDataTo(StringStream* stream); | 1453 virtual void PrintDataTo(StringStream* stream); |
1454 | 1454 |
1455 int arity() const { return hydrogen()->argument_count() - 1; } | 1455 int arity() const { return hydrogen()->argument_count() - 1; } |
| 1456 Handle<JSFunction> known_function() { return hydrogen()->known_function(); } |
1456 }; | 1457 }; |
1457 | 1458 |
1458 | 1459 |
1459 class LCallKeyed: public LTemplateInstruction<1, 1, 0> { | 1460 class LCallKeyed: public LTemplateInstruction<1, 1, 0> { |
1460 public: | 1461 public: |
1461 explicit LCallKeyed(LOperand* key) { | 1462 explicit LCallKeyed(LOperand* key) { |
1462 inputs_[0] = key; | 1463 inputs_[0] = key; |
1463 } | 1464 } |
1464 | 1465 |
1465 DECLARE_CONCRETE_INSTRUCTION(CallKeyed, "call-keyed") | 1466 DECLARE_CONCRETE_INSTRUCTION(CallKeyed, "call-keyed") |
(...skipping 931 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2397 | 2398 |
2398 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2399 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2399 }; | 2400 }; |
2400 | 2401 |
2401 #undef DECLARE_HYDROGEN_ACCESSOR | 2402 #undef DECLARE_HYDROGEN_ACCESSOR |
2402 #undef DECLARE_CONCRETE_INSTRUCTION | 2403 #undef DECLARE_CONCRETE_INSTRUCTION |
2403 | 2404 |
2404 } } // namespace v8::internal | 2405 } } // namespace v8::internal |
2405 | 2406 |
2406 #endif // V8_MIPS_LITHIUM_MIPS_H_ | 2407 #endif // V8_MIPS_LITHIUM_MIPS_H_ |
OLD | NEW |