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

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

Issue 10116021: Simplify invocation sequence at monomorphic function invocation sites. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 8 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') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 1429 matching lines...) Expand 10 before | Expand all | Expand 10 after
1440 } 1440 }
1441 1441
1442 DECLARE_CONCRETE_INSTRUCTION(InvokeFunction, "invoke-function") 1442 DECLARE_CONCRETE_INSTRUCTION(InvokeFunction, "invoke-function")
1443 DECLARE_HYDROGEN_ACCESSOR(InvokeFunction) 1443 DECLARE_HYDROGEN_ACCESSOR(InvokeFunction)
1444 1444
1445 LOperand* function() { return inputs_[0]; } 1445 LOperand* function() { return inputs_[0]; }
1446 1446
1447 virtual void PrintDataTo(StringStream* stream); 1447 virtual void PrintDataTo(StringStream* stream);
1448 1448
1449 int arity() const { return hydrogen()->argument_count() - 1; } 1449 int arity() const { return hydrogen()->argument_count() - 1; }
1450 Handle<JSFunction> known_function() { return hydrogen()->known_function(); }
1450 }; 1451 };
1451 1452
1452 1453
1453 class LCallKeyed: public LTemplateInstruction<1, 1, 0> { 1454 class LCallKeyed: public LTemplateInstruction<1, 1, 0> {
1454 public: 1455 public:
1455 explicit LCallKeyed(LOperand* key) { 1456 explicit LCallKeyed(LOperand* key) {
1456 inputs_[0] = key; 1457 inputs_[0] = key;
1457 } 1458 }
1458 1459
1459 DECLARE_CONCRETE_INSTRUCTION(CallKeyed, "call-keyed") 1460 DECLARE_CONCRETE_INSTRUCTION(CallKeyed, "call-keyed")
(...skipping 924 matching lines...) Expand 10 before | Expand all | Expand 10 after
2384 2385
2385 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2386 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2386 }; 2387 };
2387 2388
2388 #undef DECLARE_HYDROGEN_ACCESSOR 2389 #undef DECLARE_HYDROGEN_ACCESSOR
2389 #undef DECLARE_CONCRETE_INSTRUCTION 2390 #undef DECLARE_CONCRETE_INSTRUCTION
2390 2391
2391 } } // namespace v8::int 2392 } } // namespace v8::int
2392 2393
2393 #endif // V8_X64_LITHIUM_X64_H_ 2394 #endif // V8_X64_LITHIUM_X64_H_
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698