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 1307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1318 DECLARE_CONCRETE_INSTRUCTION(CallConstantFunction, "call-constant-function") | 1318 DECLARE_CONCRETE_INSTRUCTION(CallConstantFunction, "call-constant-function") |
1319 DECLARE_HYDROGEN_ACCESSOR(CallConstantFunction) | 1319 DECLARE_HYDROGEN_ACCESSOR(CallConstantFunction) |
1320 | 1320 |
1321 virtual void PrintDataTo(StringStream* stream); | 1321 virtual void PrintDataTo(StringStream* stream); |
1322 | 1322 |
1323 Handle<JSFunction> function() { return hydrogen()->function(); } | 1323 Handle<JSFunction> function() { return hydrogen()->function(); } |
1324 int arity() const { return hydrogen()->argument_count() - 1; } | 1324 int arity() const { return hydrogen()->argument_count() - 1; } |
1325 }; | 1325 }; |
1326 | 1326 |
1327 | 1327 |
1328 class LCallKeyed: public LTemplateInstruction<1, 0, 1> { | 1328 class LCallKeyed: public LTemplateInstruction<1, 1, 0> { |
1329 public: | 1329 public: |
1330 explicit LCallKeyed(LOperand* temp) { | 1330 explicit LCallKeyed(LOperand* key) { |
1331 temps_[0] = temp; | 1331 inputs_[0] = key; |
1332 } | 1332 } |
1333 | 1333 |
1334 DECLARE_CONCRETE_INSTRUCTION(CallKeyed, "call-keyed") | 1334 DECLARE_CONCRETE_INSTRUCTION(CallKeyed, "call-keyed") |
1335 DECLARE_HYDROGEN_ACCESSOR(CallKeyed) | 1335 DECLARE_HYDROGEN_ACCESSOR(CallKeyed) |
1336 | 1336 |
1337 virtual void PrintDataTo(StringStream* stream); | 1337 virtual void PrintDataTo(StringStream* stream); |
1338 | 1338 |
1339 int arity() const { return hydrogen()->argument_count() - 1; } | 1339 int arity() const { return hydrogen()->argument_count() - 1; } |
1340 }; | 1340 }; |
1341 | 1341 |
(...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1986 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 1986 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
1987 }; | 1987 }; |
1988 | 1988 |
1989 #undef DECLARE_HYDROGEN_ACCESSOR | 1989 #undef DECLARE_HYDROGEN_ACCESSOR |
1990 #undef DECLARE_INSTRUCTION | 1990 #undef DECLARE_INSTRUCTION |
1991 #undef DECLARE_CONCRETE_INSTRUCTION | 1991 #undef DECLARE_CONCRETE_INSTRUCTION |
1992 | 1992 |
1993 } } // namespace v8::internal | 1993 } } // namespace v8::internal |
1994 | 1994 |
1995 #endif // V8_IA32_LITHIUM_IA32_H_ | 1995 #endif // V8_IA32_LITHIUM_IA32_H_ |
OLD | NEW |