Version 3.20.6

Try to remove invalidated stubs before falling back to checking the constant state (Chromium issue 260585).

Fixed gyp_v8 to work with use_system_icu=1 (issue 2475).

Fixed sloppy-mode 'const' under Harmony flag (Chromium issue 173361).

Use internal array as API function cache  (Chromium issue 260106).

Fixed possible stack overflow in range analysis (Chromium issue 259452).

Performance and stability improvements on all platforms.

git-svn-id: http://v8.googlecode.com/svn/trunk@15699 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
diff --git a/Makefile b/Makefile
index 74a416d..9afc252 100644
--- a/Makefile
+++ b/Makefile
@@ -91,6 +91,10 @@
 ifeq ($(vtunejit), on)
   GYPFLAGS += -Dv8_enable_vtunejit=1
 endif
+# optdebug=on
+ifeq ($(optdebug), on)
+  GYPFLAGS += -Dv8_optimized_debug=1
+endif
 # debuggersupport=off
 ifeq ($(debuggersupport), off)
   GYPFLAGS += -Dv8_enable_debugger_support=0
@@ -352,6 +356,7 @@
 # GYP file generation targets.
 OUT_MAKEFILES = $(addprefix $(OUTDIR)/Makefile.,$(ARCHES))
 $(OUT_MAKEFILES): $(GYPFILES) $(ENVFILE)
+	PYTHONPATH="$(shell pwd)/tools/generate_shim_headers:$(PYTHONPATH)" \
 	GYP_GENERATORS=make \
 	build/gyp/gyp --generator-output="$(OUTDIR)" build/all.gyp \
 	              -Ibuild/standalone.gypi --depth=. \
@@ -359,6 +364,7 @@
 	              -S.$(subst .,,$(suffix $@)) $(GYPFLAGS)
 
 $(OUTDIR)/Makefile.native: $(GYPFILES) $(ENVFILE)
+	PYTHONPATH="$(shell pwd)/tools/generate_shim_headers:$(PYTHONPATH)" \
 	GYP_GENERATORS=make \
 	build/gyp/gyp --generator-output="$(OUTDIR)" build/all.gyp \
 	              -Ibuild/standalone.gypi --depth=. -S.native $(GYPFLAGS)