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

Side by Side Diff: src/SConscript

Issue 551062: Fix issue 571: display descriptive names for code objects from snapshot. (Closed)
Patch Set: Created 10 years, 11 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
« no previous file with comments | « no previous file | src/flag-definitions.h » ('j') | src/serialize.cc » ('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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 def Abort(message): 228 def Abort(message):
229 print message 229 print message
230 sys.exit(1) 230 sys.exit(1)
231 231
232 232
233 def ConfigureObjectFiles(): 233 def ConfigureObjectFiles():
234 env = Environment() 234 env = Environment()
235 env.Replace(**context.flags['v8']) 235 env.Replace(**context.flags['v8'])
236 context.ApplyEnvOverrides(env) 236 context.ApplyEnvOverrides(env)
237 env['BUILDERS']['JS2C'] = Builder(action=js2c.JS2C) 237 env['BUILDERS']['JS2C'] = Builder(action=js2c.JS2C)
238 env['BUILDERS']['Snapshot'] = Builder(action='$SOURCE $TARGET --logfile "$LOGF ILE"') 238 env['BUILDERS']['Snapshot'] = Builder(action='$SOURCE $TARGET --logfile "$LOGF ILE" --log-snapshot-positions')
239 239
240 # Build the standard platform-independent source files. 240 # Build the standard platform-independent source files.
241 source_files = context.GetRelevantSources(SOURCES) 241 source_files = context.GetRelevantSources(SOURCES)
242 242
243 d8_files = context.GetRelevantSources(D8_FILES) 243 d8_files = context.GetRelevantSources(D8_FILES)
244 d8_js = env.JS2C('d8-js.cc', 'd8.js', TYPE='D8') 244 d8_js = env.JS2C('d8-js.cc', 'd8.js', TYPE='D8')
245 d8_js_obj = context.ConfigureObject(env, d8_js, CPPPATH=['.']) 245 d8_js_obj = context.ConfigureObject(env, d8_js, CPPPATH=['.'])
246 d8_objs = [context.ConfigureObject(env, [d8_files]), d8_js_obj] 246 d8_objs = [context.ConfigureObject(env, [d8_files]), d8_js_obj]
247 247
248 # Combine the JavaScript library files into a single C++ file and 248 # Combine the JavaScript library files into a single C++ file and
(...skipping 25 matching lines...) Expand all
274 snapshot_cc = Command('snapshot.cc', [], []) 274 snapshot_cc = Command('snapshot.cc', [], [])
275 snapshot_obj = context.ConfigureObject(env, snapshot_cc, CPPPATH=['.']) 275 snapshot_obj = context.ConfigureObject(env, snapshot_cc, CPPPATH=['.'])
276 else: 276 else:
277 snapshot_obj = empty_snapshot_obj 277 snapshot_obj = empty_snapshot_obj
278 library_objs = [non_snapshot_files, libraries_obj, snapshot_obj] 278 library_objs = [non_snapshot_files, libraries_obj, snapshot_obj]
279 return (library_objs, d8_objs, [mksnapshot]) 279 return (library_objs, d8_objs, [mksnapshot])
280 280
281 281
282 (library_objs, d8_objs, mksnapshot) = ConfigureObjectFiles() 282 (library_objs, d8_objs, mksnapshot) = ConfigureObjectFiles()
283 Return('library_objs d8_objs mksnapshot') 283 Return('library_objs d8_objs mksnapshot')
OLDNEW
« no previous file with comments | « no previous file | src/flag-definitions.h » ('j') | src/serialize.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698