Chromium Code Reviews| 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 1296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1307 DECLARE_CONCRETE_INSTRUCTION(CallNamed, "call-named") | 1307 DECLARE_CONCRETE_INSTRUCTION(CallNamed, "call-named") |
| 1308 DECLARE_HYDROGEN_ACCESSOR(CallNamed) | 1308 DECLARE_HYDROGEN_ACCESSOR(CallNamed) |
| 1309 | 1309 |
| 1310 virtual void PrintDataTo(StringStream* stream); | 1310 virtual void PrintDataTo(StringStream* stream); |
| 1311 | 1311 |
| 1312 Handle<String> name() const { return hydrogen()->name(); } | 1312 Handle<String> name() const { return hydrogen()->name(); } |
| 1313 int arity() const { return hydrogen()->argument_count() - 1; } | 1313 int arity() const { return hydrogen()->argument_count() - 1; } |
| 1314 }; | 1314 }; |
| 1315 | 1315 |
| 1316 | 1316 |
| 1317 class LCallFunction: public LTemplateInstruction<1, 0, 0> { | 1317 class LCallFunction: public LTemplateInstruction<1, 1, 0> { |
| 1318 public: | 1318 public: |
| 1319 explicit LCallFunction(LOperand* context) { | |
| 1320 inputs_[0] = context; | |
| 1321 } | |
| 1322 | |
| 1319 DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function") | 1323 DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function") |
| 1320 DECLARE_HYDROGEN_ACCESSOR(CallFunction) | 1324 DECLARE_HYDROGEN_ACCESSOR(CallFunction) |
| 1321 | 1325 |
| 1326 LOperand* context() { return inputs_[0]; } | |
|
Rico
2011/02/16 14:47:48
We only seem to use this in an assert?
| |
| 1322 int arity() const { return hydrogen()->argument_count() - 2; } | 1327 int arity() const { return hydrogen()->argument_count() - 2; } |
| 1323 }; | 1328 }; |
| 1324 | 1329 |
| 1325 | 1330 |
| 1326 class LCallGlobal: public LTemplateInstruction<1, 0, 0> { | 1331 class LCallGlobal: public LTemplateInstruction<1, 0, 0> { |
| 1327 public: | 1332 public: |
| 1328 DECLARE_CONCRETE_INSTRUCTION(CallGlobal, "call-global") | 1333 DECLARE_CONCRETE_INSTRUCTION(CallGlobal, "call-global") |
| 1329 DECLARE_HYDROGEN_ACCESSOR(CallGlobal) | 1334 DECLARE_HYDROGEN_ACCESSOR(CallGlobal) |
| 1330 | 1335 |
| 1331 virtual void PrintDataTo(StringStream* stream); | 1336 virtual void PrintDataTo(StringStream* stream); |
| (...skipping 666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1998 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2003 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 1999 }; | 2004 }; |
| 2000 | 2005 |
| 2001 #undef DECLARE_HYDROGEN_ACCESSOR | 2006 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2002 #undef DECLARE_INSTRUCTION | 2007 #undef DECLARE_INSTRUCTION |
| 2003 #undef DECLARE_CONCRETE_INSTRUCTION | 2008 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2004 | 2009 |
| 2005 } } // namespace v8::int | 2010 } } // namespace v8::int |
| 2006 | 2011 |
| 2007 #endif // V8_X64_LITHIUM_X64_H_ | 2012 #endif // V8_X64_LITHIUM_X64_H_ |
| OLD | NEW |