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

Side by Side Diff: src/SConscript

Issue 1933: Generalized the EvalCache into a CompilationCache and enabled... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 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/compilation-cache.h » ('j') | src/compilation-cache.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2008 the V8 project authors. All rights reserved. 1 # Copyright 2008 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 19 matching lines...) Expand all
30 root_dir = dirname(File('SConstruct').rfile().abspath) 30 root_dir = dirname(File('SConstruct').rfile().abspath)
31 sys.path.append(join(root_dir, 'tools')) 31 sys.path.append(join(root_dir, 'tools'))
32 import js2c 32 import js2c
33 Import('context') 33 Import('context')
34 34
35 35
36 SOURCES = { 36 SOURCES = {
37 'all': [ 37 'all': [
38 'accessors.cc', 'allocation.cc', 'api.cc', 'assembler.cc', 'ast.cc', 38 'accessors.cc', 'allocation.cc', 'api.cc', 'assembler.cc', 'ast.cc',
39 'bootstrapper.cc', 'builtins.cc', 'checks.cc', 'code-stubs.cc', 39 'bootstrapper.cc', 'builtins.cc', 'checks.cc', 'code-stubs.cc',
40 'codegen.cc', 'compiler.cc', 'contexts.cc', 'conversions.cc', 40 'codegen.cc', 'compilation-cache.cc', 'compiler.cc', 'contexts.cc',
41 'counters.cc', 'dateparser.cc', 'debug.cc', 'disassembler.cc', 41 'conversions.cc', 'counters.cc', 'dateparser.cc', 'debug.cc',
42 'execution.cc', 'factory.cc', 'flags.cc', 'frames.cc', 42 'disassembler.cc', 'execution.cc', 'factory.cc', 'flags.cc', 'frames.cc',
43 'global-handles.cc', 'handles.cc', 'hashmap.cc', 'heap.cc', 'ic.cc', 43 'global-handles.cc', 'handles.cc', 'hashmap.cc', 'heap.cc', 'ic.cc',
44 'jsregexp.cc', 'log.cc', 'mark-compact.cc', 'messages.cc', 'objects.cc', 44 'jsregexp.cc', 'log.cc', 'mark-compact.cc', 'messages.cc', 'objects.cc',
45 'parser.cc', 'property.cc', 'rewriter.cc', 'runtime.cc', 'scanner.cc', 45 'parser.cc', 'property.cc', 'rewriter.cc', 'runtime.cc', 'scanner.cc',
46 'scopeinfo.cc', 'scopes.cc', 'serialize.cc', 'snapshot-common.cc', 46 'scopeinfo.cc', 'scopes.cc', 'serialize.cc', 'snapshot-common.cc',
47 'spaces.cc', 'string-stream.cc', 'stub-cache.cc', 'token.cc', 'top.cc', 47 'spaces.cc', 'string-stream.cc', 'stub-cache.cc', 'token.cc', 'top.cc',
48 'unicode.cc', 'usage-analyzer.cc', 'utils.cc', 'v8-counters.cc', 48 'unicode.cc', 'usage-analyzer.cc', 'utils.cc', 'v8-counters.cc',
49 'v8.cc', 'v8threads.cc', 'variables.cc', 'zone.cc' 49 'v8.cc', 'v8threads.cc', 'variables.cc', 'zone.cc'
50 ], 50 ],
51 'arch:arm': ['assembler-arm.cc', 'builtins-arm.cc', 'codegen-arm.cc', 51 'arch:arm': ['assembler-arm.cc', 'builtins-arm.cc', 'codegen-arm.cc',
52 'cpu-arm.cc', 'disasm-arm.cc', 'frames-arm.cc', 'ic-arm.cc', 52 'cpu-arm.cc', 'disasm-arm.cc', 'frames-arm.cc', 'ic-arm.cc',
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 jscre_obj = context.ConfigureObject(jscre_env, jscre_files) 118 jscre_obj = context.ConfigureObject(jscre_env, jscre_files)
119 119
120 # Build dtoa. 120 # Build dtoa.
121 dtoa_env = env.Copy() 121 dtoa_env = env.Copy()
122 dtoa_env.Replace(**context.flags['dtoa']) 122 dtoa_env.Replace(**context.flags['dtoa'])
123 dtoa_files = ['dtoa-config.c'] 123 dtoa_files = ['dtoa-config.c']
124 dtoa_obj = context.ConfigureObject(dtoa_env, dtoa_files) 124 dtoa_obj = context.ConfigureObject(dtoa_env, dtoa_files)
125 125
126 source_objs = context.ConfigureObject(env, source_files) 126 source_objs = context.ConfigureObject(env, source_files)
127 non_snapshot_files = [jscre_obj, dtoa_obj, source_objs] 127 non_snapshot_files = [jscre_obj, dtoa_obj, source_objs]
128 128
129 # Create snapshot if necessary. 129 # Create snapshot if necessary.
130 empty_snapshot_obj = context.ConfigureObject(env, 'snapshot-empty.cc') 130 empty_snapshot_obj = context.ConfigureObject(env, 'snapshot-empty.cc')
131 if context.use_snapshot: 131 if context.use_snapshot:
132 mksnapshot_src = 'mksnapshot.cc' 132 mksnapshot_src = 'mksnapshot.cc'
133 mksnapshot = env.Program('mksnapshot', [mksnapshot_src, libraries_obj, non_s napshot_files, empty_snapshot_obj], PDB='mksnapshot.exe.pdb') 133 mksnapshot = env.Program('mksnapshot', [mksnapshot_src, libraries_obj, non_s napshot_files, empty_snapshot_obj], PDB='mksnapshot.exe.pdb')
134 snapshot_cc = env.Snapshot('snapshot.cc', mksnapshot, LOGFILE=File('snapshot .log').abspath) 134 snapshot_cc = env.Snapshot('snapshot.cc', mksnapshot, LOGFILE=File('snapshot .log').abspath)
135 snapshot_obj = context.ConfigureObject(env, snapshot_cc, CPPPATH=['.']) 135 snapshot_obj = context.ConfigureObject(env, snapshot_cc, CPPPATH=['.'])
136 libraries_obj = context.ConfigureObject(env, libraries_empty_src, CPPPATH=[' .']) 136 libraries_obj = context.ConfigureObject(env, libraries_empty_src, CPPPATH=[' .'])
137 else: 137 else:
138 snapshot_obj = empty_snapshot_obj 138 snapshot_obj = empty_snapshot_obj
139 139
140 return [non_snapshot_files, libraries_obj, snapshot_obj] 140 return [non_snapshot_files, libraries_obj, snapshot_obj]
141 141
142 142
143 library_objects = ConfigureObjectFiles() 143 library_objects = ConfigureObjectFiles()
144 Return('library_objects') 144 Return('library_objects')
OLDNEW
« no previous file with comments | « no previous file | src/compilation-cache.h » ('j') | src/compilation-cache.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698