Reviewers: Kevin Millikin, Vitaly Repeshko,
Message:
Guys,
may you have a look?
I am going to have a quick look if we can exploit custom call generators to
achieve the same effect.
I am not sure that performance gains of inlining API call are balanced by
the
complexity of implementation, but that might be another option too.
Description:
Faster invocation for most of API calls.
For most of API calls we generate better stub which is faster than
invocation
via builtin, so use IC instead of direct call in Hydrogen.
Please review this at http://codereview.chromium.org/6672026/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files:
M src/hydrogen.cc
Index: src/hydrogen.cc
diff --git a/src/hydrogen.cc b/src/hydrogen.cc
index
25a6db3ac178c12cf2b32f1351dc008502e7bb6f..6cb2b240a95b61103609b49d4f2532282985591d
100644
--- a/src/hydrogen.cc
+++ b/src/hydrogen.cc
@@ -4267,10 +4267,12 @@ void HGraphBuilder::VisitCall(Call* expr) {
}
if (HasCustomCallGenerator(expr->target()) ||
+ CallOptimization(*expr->target()).is_simple_api_call() ||
expr->check_type() != RECEIVER_MAP_CHECK) {
// When the target has a custom call IC generator, use the IC,
- // because it is likely to generate better code. Also use the
- // IC when a primitive receiver check is required.
+ // because it is likely to generate better code. Similarly, we
+ // generate better call stubs for some API functions.
+ // Also use the IC when a primitive receiver check is required.
HContext* context = new HContext;
AddInstruction(context);
call = PreProcessCall(new HCallNamed(context, name,
argument_count));
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev