Index: Makefile |
diff --git a/Makefile b/Makefile |
index 499f6cb08e0da487557bc88b05318ae6fae70346..98dd70489bcd4f552c36e8824204bdf68639487a 100644 |
--- a/Makefile |
+++ b/Makefile |
@@ -192,6 +192,7 @@ endif |
# ----------------- available targets: -------------------- |
# - "dependencies": pulls in external dependencies (currently: GYP) |
+# - "grokdump": rebuilds heap constants lists used by grokdump |
# - any arch listed in ARCHES (see below) |
# - any mode listed in MODES |
# - every combination <arch>.<mode>, e.g. "ia32.release" |
@@ -401,6 +402,12 @@ $(ENVFILE).new: |
@mkdir -p $(OUTDIR); echo "GYPFLAGS=$(GYPFLAGS)" > $(ENVFILE).new; \ |
echo "CXX=$(CXX)" >> $(ENVFILE).new |
+# Heap constants for grokdump. |
+DUMP_FILE = tools/v8heapconst.py |
+grokdump: ia32.release |
+ @cat $(DUMP_FILE).tmpl >$(DUMP_FILE) |
Sven Panne
2013/08/02 08:51:02
Nit: A space between ">" and "$" makes things more
Michael Starzinger
2013/08/02 08:59:31
Done. Also a few lines above.
|
+ @$(OUTDIR)/ia32.release/d8 --dump-heap-constants >>$(DUMP_FILE) |
+ |
# Dependencies. |
# Remember to keep these in sync with the DEPS file. |
dependencies: |