Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(245)

Side by Side Diff: src/x64/lithium-x64.h

Issue 6529053: X64 Crankshaft: Start using LCallFunction, remove errors in it. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | src/x64/lithium-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1295 matching lines...) Expand 10 before | Expand all | Expand 10 after
1306 DECLARE_CONCRETE_INSTRUCTION(CallNamed, "call-named") 1306 DECLARE_CONCRETE_INSTRUCTION(CallNamed, "call-named")
1307 DECLARE_HYDROGEN_ACCESSOR(CallNamed) 1307 DECLARE_HYDROGEN_ACCESSOR(CallNamed)
1308 1308
1309 virtual void PrintDataTo(StringStream* stream); 1309 virtual void PrintDataTo(StringStream* stream);
1310 1310
1311 Handle<String> name() const { return hydrogen()->name(); } 1311 Handle<String> name() const { return hydrogen()->name(); }
1312 int arity() const { return hydrogen()->argument_count() - 1; } 1312 int arity() const { return hydrogen()->argument_count() - 1; }
1313 }; 1313 };
1314 1314
1315 1315
1316 class LCallFunction: public LTemplateInstruction<1, 1, 0> { 1316 class LCallFunction: public LTemplateInstruction<1, 0, 0> {
1317 public: 1317 public:
1318 explicit LCallFunction(LOperand* context) { 1318 LCallFunction() {}
1319 inputs_[0] = context;
1320 }
1321 1319
1322 DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function") 1320 DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function")
1323 DECLARE_HYDROGEN_ACCESSOR(CallFunction) 1321 DECLARE_HYDROGEN_ACCESSOR(CallFunction)
1324 1322
1325 LOperand* context() { return inputs_[0]; }
1326 int arity() const { return hydrogen()->argument_count() - 2; } 1323 int arity() const { return hydrogen()->argument_count() - 2; }
1327 }; 1324 };
1328 1325
1329 1326
1330 class LCallGlobal: public LTemplateInstruction<1, 0, 0> { 1327 class LCallGlobal: public LTemplateInstruction<1, 0, 0> {
1331 public: 1328 public:
1332 DECLARE_CONCRETE_INSTRUCTION(CallGlobal, "call-global") 1329 DECLARE_CONCRETE_INSTRUCTION(CallGlobal, "call-global")
1333 DECLARE_HYDROGEN_ACCESSOR(CallGlobal) 1330 DECLARE_HYDROGEN_ACCESSOR(CallGlobal)
1334 1331
1335 virtual void PrintDataTo(StringStream* stream); 1332 virtual void PrintDataTo(StringStream* stream);
(...skipping 666 matching lines...) Expand 10 before | Expand all | Expand 10 after
2002 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 1999 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2003 }; 2000 };
2004 2001
2005 #undef DECLARE_HYDROGEN_ACCESSOR 2002 #undef DECLARE_HYDROGEN_ACCESSOR
2006 #undef DECLARE_INSTRUCTION 2003 #undef DECLARE_INSTRUCTION
2007 #undef DECLARE_CONCRETE_INSTRUCTION 2004 #undef DECLARE_CONCRETE_INSTRUCTION
2008 2005
2009 } } // namespace v8::int 2006 } } // namespace v8::int
2010 2007
2011 #endif // V8_X64_LITHIUM_X64_H_ 2008 #endif // V8_X64_LITHIUM_X64_H_
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | src/x64/lithium-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698