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

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

Issue 8318014: Make _CallFunction proxy-aware. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed Kevin's comment. Created 9 years, 1 month 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/arm/full-codegen-arm.cc ('k') | src/arm/lithium-arm.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 1361 matching lines...) Expand 10 before | Expand all | Expand 10 after
1372 DECLARE_CONCRETE_INSTRUCTION(CallNamed, "call-named") 1372 DECLARE_CONCRETE_INSTRUCTION(CallNamed, "call-named")
1373 DECLARE_HYDROGEN_ACCESSOR(CallNamed) 1373 DECLARE_HYDROGEN_ACCESSOR(CallNamed)
1374 1374
1375 virtual void PrintDataTo(StringStream* stream); 1375 virtual void PrintDataTo(StringStream* stream);
1376 1376
1377 Handle<String> name() const { return hydrogen()->name(); } 1377 Handle<String> name() const { return hydrogen()->name(); }
1378 int arity() const { return hydrogen()->argument_count() - 1; } 1378 int arity() const { return hydrogen()->argument_count() - 1; }
1379 }; 1379 };
1380 1380
1381 1381
1382 class LCallFunction: public LTemplateInstruction<1, 0, 0> { 1382 class LCallFunction: public LTemplateInstruction<1, 1, 0> {
1383 public: 1383 public:
1384 explicit LCallFunction(LOperand* function) {
1385 inputs_[0] = function;
1386 }
1387
1384 DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function") 1388 DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function")
1385 DECLARE_HYDROGEN_ACCESSOR(CallFunction) 1389 DECLARE_HYDROGEN_ACCESSOR(CallFunction)
1386 1390
1387 int arity() const { return hydrogen()->argument_count() - 2; } 1391 LOperand* function() { return inputs_[0]; }
1392 int arity() const { return hydrogen()->argument_count() - 1; }
1388 }; 1393 };
1389 1394
1390 1395
1391 class LCallGlobal: public LTemplateInstruction<1, 0, 0> { 1396 class LCallGlobal: public LTemplateInstruction<1, 0, 0> {
1392 public: 1397 public:
1393 DECLARE_CONCRETE_INSTRUCTION(CallGlobal, "call-global") 1398 DECLARE_CONCRETE_INSTRUCTION(CallGlobal, "call-global")
1394 DECLARE_HYDROGEN_ACCESSOR(CallGlobal) 1399 DECLARE_HYDROGEN_ACCESSOR(CallGlobal)
1395 1400
1396 virtual void PrintDataTo(StringStream* stream); 1401 virtual void PrintDataTo(StringStream* stream);
1397 1402
(...skipping 788 matching lines...) Expand 10 before | Expand all | Expand 10 after
2186 2191
2187 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2192 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2188 }; 2193 };
2189 2194
2190 #undef DECLARE_HYDROGEN_ACCESSOR 2195 #undef DECLARE_HYDROGEN_ACCESSOR
2191 #undef DECLARE_CONCRETE_INSTRUCTION 2196 #undef DECLARE_CONCRETE_INSTRUCTION
2192 2197
2193 } } // namespace v8::internal 2198 } } // namespace v8::internal
2194 2199
2195 #endif // V8_ARM_LITHIUM_ARM_H_ 2200 #endif // V8_ARM_LITHIUM_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/arm/lithium-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698