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 1379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1390 | 1390 |
1391 virtual void PrintDataTo(StringStream* stream); | 1391 virtual void PrintDataTo(StringStream* stream); |
1392 | 1392 |
1393 Handle<JSFunction> function() { return hydrogen()->function(); } | 1393 Handle<JSFunction> function() { return hydrogen()->function(); } |
1394 int arity() const { return hydrogen()->argument_count() - 1; } | 1394 int arity() const { return hydrogen()->argument_count() - 1; } |
1395 }; | 1395 }; |
1396 | 1396 |
1397 | 1397 |
1398 class LInvokeFunction: public LTemplateInstruction<1, 1, 0> { | 1398 class LInvokeFunction: public LTemplateInstruction<1, 1, 0> { |
1399 public: | 1399 public: |
1400 LInvokeFunction(LOperand* function) { | 1400 explicit LInvokeFunction(LOperand* function) { |
1401 inputs_[0] = function; | 1401 inputs_[0] = function; |
1402 } | 1402 } |
1403 | 1403 |
1404 DECLARE_CONCRETE_INSTRUCTION(InvokeFunction, "invoke-function") | 1404 DECLARE_CONCRETE_INSTRUCTION(InvokeFunction, "invoke-function") |
1405 DECLARE_HYDROGEN_ACCESSOR(InvokeFunction) | 1405 DECLARE_HYDROGEN_ACCESSOR(InvokeFunction) |
1406 | 1406 |
1407 LOperand* function() { return inputs_[0]; } | 1407 LOperand* function() { return inputs_[0]; } |
1408 | 1408 |
1409 virtual void PrintDataTo(StringStream* stream); | 1409 virtual void PrintDataTo(StringStream* stream); |
1410 | 1410 |
(...skipping 779 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2190 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2190 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2191 }; | 2191 }; |
2192 | 2192 |
2193 #undef DECLARE_HYDROGEN_ACCESSOR | 2193 #undef DECLARE_HYDROGEN_ACCESSOR |
2194 #undef DECLARE_INSTRUCTION | 2194 #undef DECLARE_INSTRUCTION |
2195 #undef DECLARE_CONCRETE_INSTRUCTION | 2195 #undef DECLARE_CONCRETE_INSTRUCTION |
2196 | 2196 |
2197 } } // namespace v8::int | 2197 } } // namespace v8::int |
2198 | 2198 |
2199 #endif // V8_X64_LITHIUM_X64_H_ | 2199 #endif // V8_X64_LITHIUM_X64_H_ |
OLD | NEW |