Revision: 7149
Author: [email protected]
Date: Fri Mar 11 05:25:01 2011
Log: 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.
Review URL: http://codereview.chromium.org/6672026
http://code.google.com/p/v8/source/detail?r=7149
Modified:
/branches/bleeding_edge/src/hydrogen.cc
=======================================
--- /branches/bleeding_edge/src/hydrogen.cc Thu Mar 10 05:34:56 2011
+++ /branches/bleeding_edge/src/hydrogen.cc Fri Mar 11 05:25:01 2011
@@ -4267,10 +4267,12 @@
}
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