Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(963)

Side by Side Diff: Makefile

Issue 23604020: Initial prototype of object layout generation. Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/objects.h » ('j') | src/objects.layout » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2012 the V8 project authors. All rights reserved. 1 # Copyright 2012 the V8 project authors. All rights reserved.
2 # Redistribution and use in source and binary forms, with or without 2 # Redistribution and use in source and binary forms, with or without
3 # modification, are permitted provided that the following conditions are 3 # modification, are permitted provided that the following conditions are
4 # met: 4 # met:
5 # 5 #
6 # * Redistributions of source code must retain the above copyright 6 # * Redistributions of source code must retain the above copyright
7 # notice, this list of conditions and the following disclaimer. 7 # notice, this list of conditions and the following disclaimer.
8 # * Redistributions in binary form must reproduce the above 8 # * Redistributions in binary form must reproduce the above
9 # copyright notice, this list of conditions and the following 9 # copyright notice, this list of conditions and the following
10 # disclaimer in the documentation and/or other materials provided 10 # disclaimer in the documentation and/or other materials provided
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 # Modifying these flags when launching v8 will enable the probing for 186 # Modifying these flags when launching v8 will enable the probing for
187 # the specified values. 187 # the specified values.
188 # When using the simulator, this flag is implied. 188 # When using the simulator, this flag is implied.
189 ifeq ($(armtest), on) 189 ifeq ($(armtest), on)
190 GYPFLAGS += -Darm_test=on 190 GYPFLAGS += -Darm_test=on
191 endif 191 endif
192 192
193 # ----------------- available targets: -------------------- 193 # ----------------- available targets: --------------------
194 # - "dependencies": pulls in external dependencies (currently: GYP) 194 # - "dependencies": pulls in external dependencies (currently: GYP)
195 # - "grokdump": rebuilds heap constants lists used by grokdump 195 # - "grokdump": rebuilds heap constants lists used by grokdump
196 # - "objects": rebuilds heap object descriptions
196 # - any arch listed in ARCHES (see below) 197 # - any arch listed in ARCHES (see below)
197 # - any mode listed in MODES 198 # - any mode listed in MODES
198 # - every combination <arch>.<mode>, e.g. "ia32.release" 199 # - every combination <arch>.<mode>, e.g. "ia32.release"
199 # - "native": current host's architecture, release mode 200 # - "native": current host's architecture, release mode
200 # - any of the above with .check appended, e.g. "ia32.release.check" 201 # - any of the above with .check appended, e.g. "ia32.release.check"
201 # - "android": cross-compile for Android/ARM 202 # - "android": cross-compile for Android/ARM
202 # - "nacl" : cross-compile for Native Client (ia32 and x64) 203 # - "nacl" : cross-compile for Native Client (ia32 and x64)
203 # - default (no target specified): build all DEFAULT_ARCHES and MODES 204 # - default (no target specified): build all DEFAULT_ARCHES and MODES
204 # - "check": build all targets and run all tests 205 # - "check": build all targets and run all tests
205 # - "<arch>.clean" for any <arch> in ARCHES 206 # - "<arch>.clean" for any <arch> in ARCHES
(...skipping 24 matching lines...) Expand all
230 $(addsuffix .$(mode),$(ANDROID_ARCHES))) 231 $(addsuffix .$(mode),$(ANDROID_ARCHES)))
231 NACL_BUILDS = $(foreach mode,$(MODES), \ 232 NACL_BUILDS = $(foreach mode,$(MODES), \
232 $(addsuffix .$(mode),$(NACL_ARCHES))) 233 $(addsuffix .$(mode),$(NACL_ARCHES)))
233 # Generates corresponding test targets, e.g. "ia32.release.check". 234 # Generates corresponding test targets, e.g. "ia32.release.check".
234 CHECKS = $(addsuffix .check,$(BUILDS)) 235 CHECKS = $(addsuffix .check,$(BUILDS))
235 ANDROID_CHECKS = $(addsuffix .check,$(ANDROID_BUILDS)) 236 ANDROID_CHECKS = $(addsuffix .check,$(ANDROID_BUILDS))
236 NACL_CHECKS = $(addsuffix .check,$(NACL_BUILDS)) 237 NACL_CHECKS = $(addsuffix .check,$(NACL_BUILDS))
237 # File where previously used GYPFLAGS are stored. 238 # File where previously used GYPFLAGS are stored.
238 ENVFILE = $(OUTDIR)/environment 239 ENVFILE = $(OUTDIR)/environment
239 240
240 .PHONY: all check clean dependencies $(ENVFILE).new native \ 241 .PHONY: all check clean dependencies $(ENVFILE).new native \
Jakob Kummerow 2013/09/03 12:20:05 Should add objects here (and, while you're at it,
241 $(ARCHES) $(MODES) $(BUILDS) $(CHECKS) $(addsuffix .clean,$(ARCHES)) \ 242 $(ARCHES) $(MODES) $(BUILDS) $(CHECKS) $(addsuffix .clean,$(ARCHES)) \
242 $(addsuffix .check,$(MODES)) $(addsuffix .check,$(ARCHES)) \ 243 $(addsuffix .check,$(MODES)) $(addsuffix .check,$(ARCHES)) \
243 $(ANDROID_ARCHES) $(ANDROID_BUILDS) $(ANDROID_CHECKS) \ 244 $(ANDROID_ARCHES) $(ANDROID_BUILDS) $(ANDROID_CHECKS) \
244 must-set-ANDROID_NDK_ROOT_OR_TOOLCHAIN \ 245 must-set-ANDROID_NDK_ROOT_OR_TOOLCHAIN \
245 $(NACL_ARCHES) $(NACL_BUILDS) $(NACL_CHECKS) \ 246 $(NACL_ARCHES) $(NACL_BUILDS) $(NACL_CHECKS) \
246 must-set-NACL_SDK_ROOT 247 must-set-NACL_SDK_ROOT
247 248
248 # Target definitions. "all" is the default. 249 # Target definitions. "all" is the default.
249 all: $(MODES) 250 all: $(MODES)
250 251
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 $(ENVFILE): $(ENVFILE).new 396 $(ENVFILE): $(ENVFILE).new
396 @if test -r $(ENVFILE) && cmp $(ENVFILE).new $(ENVFILE) > /dev/null; \ 397 @if test -r $(ENVFILE) && cmp $(ENVFILE).new $(ENVFILE) > /dev/null; \
397 then rm $(ENVFILE).new; \ 398 then rm $(ENVFILE).new; \
398 else mv $(ENVFILE).new $(ENVFILE); fi 399 else mv $(ENVFILE).new $(ENVFILE); fi
399 400
400 # Stores current GYPFLAGS in a file. 401 # Stores current GYPFLAGS in a file.
401 $(ENVFILE).new: 402 $(ENVFILE).new:
402 @mkdir -p $(OUTDIR); echo "GYPFLAGS=$(GYPFLAGS)" > $(ENVFILE).new; \ 403 @mkdir -p $(OUTDIR); echo "GYPFLAGS=$(GYPFLAGS)" > $(ENVFILE).new; \
403 echo "CXX=$(CXX)" >> $(ENVFILE).new 404 echo "CXX=$(CXX)" >> $(ENVFILE).new
404 405
406 # Heap object descriptions.
407 objects: src/objects-gen.cc src/objects-gen.h
408 src/objects-gen.%: tools/objects-gen.%.mustache src/objects.layout
409 @tools/objects-generator.py $< src/objects.layout > $@
410
405 # Heap constants for grokdump. 411 # Heap constants for grokdump.
406 DUMP_FILE = tools/v8heapconst.py 412 DUMP_FILE = tools/v8heapconst.py
407 grokdump: ia32.release 413 grokdump: ia32.release
408 @cat $(DUMP_FILE).tmpl > $(DUMP_FILE) 414 @cat $(DUMP_FILE).tmpl > $(DUMP_FILE)
409 @$(OUTDIR)/ia32.release/d8 --dump-heap-constants >> $(DUMP_FILE) 415 @$(OUTDIR)/ia32.release/d8 --dump-heap-constants >> $(DUMP_FILE)
410 416
411 # Dependencies. 417 # Dependencies.
412 # Remember to keep these in sync with the DEPS file. 418 # Remember to keep these in sync with the DEPS file.
413 dependencies: 419 dependencies:
414 svn checkout --force http://gyp.googlecode.com/svn/trunk build/gyp \ 420 svn checkout --force http://gyp.googlecode.com/svn/trunk build/gyp \
415 --revision 1685 421 --revision 1685
416 svn checkout --force \ 422 svn checkout --force \
417 https://src.chromium.org/chrome/trunk/deps/third_party/icu46 \ 423 https://src.chromium.org/chrome/trunk/deps/third_party/icu46 \
418 third_party/icu --revision 214189 424 third_party/icu --revision 214189
OLDNEW
« no previous file with comments | « no previous file | src/objects.h » ('j') | src/objects.layout » ('J')

Powered by Google App Engine
This is Rietveld 408576698