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

Side by Side Diff: src/ia32/lithium-ia32.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/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 1406 matching lines...) Expand 10 before | Expand all | Expand 10 after
1417 DECLARE_HYDROGEN_ACCESSOR(CallNamed) 1417 DECLARE_HYDROGEN_ACCESSOR(CallNamed)
1418 1418
1419 virtual void PrintDataTo(StringStream* stream); 1419 virtual void PrintDataTo(StringStream* stream);
1420 1420
1421 LOperand* context() { return inputs_[0]; } 1421 LOperand* context() { return inputs_[0]; }
1422 Handle<String> name() const { return hydrogen()->name(); } 1422 Handle<String> name() const { return hydrogen()->name(); }
1423 int arity() const { return hydrogen()->argument_count() - 1; } 1423 int arity() const { return hydrogen()->argument_count() - 1; }
1424 }; 1424 };
1425 1425
1426 1426
1427 class LCallFunction: public LTemplateInstruction<1, 1, 0> { 1427 class LCallFunction: public LTemplateInstruction<1, 2, 0> {
1428 public: 1428 public:
1429 explicit LCallFunction(LOperand* context) { 1429 explicit LCallFunction(LOperand* context, LOperand* function) {
1430 inputs_[0] = context; 1430 inputs_[0] = context;
1431 inputs_[1] = function;
1431 } 1432 }
1432 1433
1433 DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function") 1434 DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function")
1434 DECLARE_HYDROGEN_ACCESSOR(CallFunction) 1435 DECLARE_HYDROGEN_ACCESSOR(CallFunction)
1435 1436
1436 LOperand* context() { return inputs_[0]; } 1437 LOperand* context() { return inputs_[0]; }
1437 int arity() const { return hydrogen()->argument_count() - 2; } 1438 LOperand* function() { return inputs_[1]; }
1439 int arity() const { return hydrogen()->argument_count() - 1; }
1438 }; 1440 };
1439 1441
1440 1442
1441 class LCallGlobal: public LTemplateInstruction<1, 1, 0> { 1443 class LCallGlobal: public LTemplateInstruction<1, 1, 0> {
1442 public: 1444 public:
1443 explicit LCallGlobal(LOperand* context) { 1445 explicit LCallGlobal(LOperand* context) {
1444 inputs_[0] = context; 1446 inputs_[0] = context;
1445 } 1447 }
1446 1448
1447 DECLARE_CONCRETE_INSTRUCTION(CallGlobal, "call-global") 1449 DECLARE_CONCRETE_INSTRUCTION(CallGlobal, "call-global")
(...skipping 846 matching lines...) Expand 10 before | Expand all | Expand 10 after
2294 2296
2295 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2297 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2296 }; 2298 };
2297 2299
2298 #undef DECLARE_HYDROGEN_ACCESSOR 2300 #undef DECLARE_HYDROGEN_ACCESSOR
2299 #undef DECLARE_CONCRETE_INSTRUCTION 2301 #undef DECLARE_CONCRETE_INSTRUCTION
2300 2302
2301 } } // namespace v8::internal 2303 } } // namespace v8::internal
2302 2304
2303 #endif // V8_IA32_LITHIUM_IA32_H_ 2305 #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