From c5237d82bf01a762bb38f80def59b9c16cb84dc1 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Mon, 24 May 2010 14:11:39 +0000 Subject: Added caches to eliminate repeatable run-time bindings of functions, classes, constants, methods and properties --- Zend/zend_vm_execute.skl | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Zend/zend_vm_execute.skl') diff --git a/Zend/zend_vm_execute.skl b/Zend/zend_vm_execute.skl index 6f6fed9834..05584d6fb3 100644 --- a/Zend/zend_vm_execute.skl +++ b/Zend/zend_vm_execute.skl @@ -39,6 +39,10 @@ zend_vm_enter: LOAD_REGS(); + if (!op_array->run_time_cache && op_array->last_cache_slot) { + op_array->run_time_cache = ecalloc(op_array->last_cache_slot, sizeof(void*)); + } + if (op_array->this_var != -1 && EG(This)) { Z_ADDREF_P(EG(This)); /* For $this pointer */ if (!EG(active_symbol_table)) { -- cgit v1.2.1