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

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

Issue 6368003: Fix operand type for keyed calls.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 11 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/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/lithium-ia32.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 1307 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/lithium-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698