| 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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 lines = ExpandMacroDefinition(lines, pos, name_pattern, macro, non_expander) | 218 lines = ExpandMacroDefinition(lines, pos, name_pattern, macro, non_expander) |
| 219 | 219 |
| 220 | 220 |
| 221 HEADER_TEMPLATE = """\ | 221 HEADER_TEMPLATE = """\ |
| 222 // Copyright 2011 Google Inc. All Rights Reserved. | 222 // Copyright 2011 Google Inc. All Rights Reserved. |
| 223 | 223 |
| 224 // This file was generated from .js source files by GYP. If you | 224 // This file was generated from .js source files by GYP. If you |
| 225 // want to make changes to this file you should either change the | 225 // want to make changes to this file you should either change the |
| 226 // javascript source files or the GYP script. | 226 // javascript source files or the GYP script. |
| 227 | 227 |
| 228 #include "v8.h" | 228 #include "src/v8.h" |
| 229 #include "natives.h" | 229 #include "src/natives.h" |
| 230 #include "utils.h" | 230 #include "src/utils.h" |
| 231 | 231 |
| 232 namespace v8 { | 232 namespace v8 { |
| 233 namespace internal { | 233 namespace internal { |
| 234 | 234 |
| 235 %(sources_declaration)s\ | 235 %(sources_declaration)s\ |
| 236 | 236 |
| 237 %(raw_sources_declaration)s\ | 237 %(raw_sources_declaration)s\ |
| 238 | 238 |
| 239 template <> | 239 template <> |
| 240 int NativesCollection<%(type)s>::GetBuiltinsCount() { | 240 int NativesCollection<%(type)s>::GetBuiltinsCount() { |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 505 type: type parameter for NativesCollection template. | 505 type: type parameter for NativesCollection template. |
| 506 compression: type of compression used. [off|bz2] | 506 compression: type of compression used. [off|bz2] |
| 507 sources.js: JS internal sources or macros.py.""") | 507 sources.js: JS internal sources or macros.py.""") |
| 508 (options, args) = parser.parse_args() | 508 (options, args) = parser.parse_args() |
| 509 | 509 |
| 510 JS2C(args[3:], args[0], args[1], args[2], options.raw, options.omit) | 510 JS2C(args[3:], args[0], args[1], args[2], options.raw, options.omit) |
| 511 | 511 |
| 512 | 512 |
| 513 if __name__ == "__main__": | 513 if __name__ == "__main__": |
| 514 main() | 514 main() |
| OLD | NEW |