~ubuntu-branches/ubuntu/vivid/emscripten/vivid-proposed

« back to all changes in this revision

Viewing changes to tools/asm_module.py

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2014-01-19 14:12:40 UTC
  • mfrom: (4.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20140119141240-nfiw0p8033oitpfz
Tags: 1.9.0~20140119~7dc8c2f-1
* New snapshot release (Closes: #733714)
* Provide sources for javascript and flash. Done in orig-tar.sh
  Available in third_party/websockify/include/web-socket-js/src/
  (Closes: #735903)

Show diffs side-by-side

added added

removed removed

Lines of Context:
248
248
  def merge_tables(self, table, main, side, replacements, f_bases, f_sizes):
249
249
    sig = table.split('_')[-1]
250
250
    side = side[1:-1].split(',')
 
251
    side = map(lambda s: s.strip(), side)
251
252
    side = map(lambda f: replacements[f] if f in replacements else f, side)
252
253
    if not main:
253
254
      f_bases[sig] = 0
254
255
      f_sizes[table] = len(side)
255
256
      return '[' + ','.join(side) + ']'
256
257
    main = main[1:-1].split(',')
 
258
    main = map(lambda m: m.strip(), main)
257
259
    # TODO: handle non-aliasing case too
258
260
    assert len(main) % 2 == 0
259
261
    f_bases[sig] = len(main)