| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # | 2 # |
| 3 # Copyright 2012 the V8 project authors. All rights reserved. | 3 # Copyright 2012 the V8 project authors. All rights reserved. |
| 4 # Redistribution and use in source and binary forms, with or without | 4 # Redistribution and use in source and binary forms, with or without |
| 5 # modification, are permitted provided that the following conditions are | 5 # modification, are permitted provided that the following conditions are |
| 6 # met: | 6 # met: |
| 7 # | 7 # |
| 8 # * Redistributions of source code must retain the above copyright | 8 # * Redistributions of source code must retain the above copyright |
| 9 # notice, this list of conditions and the following disclaimer. | 9 # notice, this list of conditions and the following disclaimer. |
| 10 # * Redistributions in binary form must reproduce the above | 10 # * Redistributions in binary form must reproduce the above |
| (...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 337 'fannkuch.js', | 337 'fannkuch.js', |
| 338 'fasta.js', | 338 'fasta.js', |
| 339 'jsmin.py', | 339 'jsmin.py', |
| 340 'libraries.cc', | 340 'libraries.cc', |
| 341 'libraries-empty.cc', | 341 'libraries-empty.cc', |
| 342 'lua_binarytrees.js', | 342 'lua_binarytrees.js', |
| 343 'memops.js', | 343 'memops.js', |
| 344 'primes.js', | 344 'primes.js', |
| 345 'raytrace.js', | 345 'raytrace.js', |
| 346 'regexp-pcre.js', | 346 'regexp-pcre.js', |
| 347 'sqlite.js', |
| 347 'gnuplot-4.6.3-emscripten.js', | 348 'gnuplot-4.6.3-emscripten.js', |
| 348 'zlib.js'] | 349 'zlib.js'] |
| 349 IGNORE_TABS = IGNORE_COPYRIGHTS + ['unicode-test.js', 'html-comments.js'] | 350 IGNORE_TABS = IGNORE_COPYRIGHTS + ['unicode-test.js', 'html-comments.js'] |
| 350 | 351 |
| 351 def EndOfDeclaration(self, line): | 352 def EndOfDeclaration(self, line): |
| 352 return line == "}" or line == "};" | 353 return line == "}" or line == "};" |
| 353 | 354 |
| 354 def StartOfDeclaration(self, line): | 355 def StartOfDeclaration(self, line): |
| 355 return line.find("//") == 0 or \ | 356 return line.find("//") == 0 or \ |
| 356 line.find("/*") == 0 or \ | 357 line.find("/*") == 0 or \ |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 487 success = CheckRuntimeVsNativesNameClashes(workspace) and success | 488 success = CheckRuntimeVsNativesNameClashes(workspace) and success |
| 488 success = CheckExternalReferenceRegistration(workspace) and success | 489 success = CheckExternalReferenceRegistration(workspace) and success |
| 489 if success: | 490 if success: |
| 490 return 0 | 491 return 0 |
| 491 else: | 492 else: |
| 492 return 1 | 493 return 1 |
| 493 | 494 |
| 494 | 495 |
| 495 if __name__ == '__main__': | 496 if __name__ == '__main__': |
| 496 sys.exit(Main()) | 497 sys.exit(Main()) |
| OLD | NEW |