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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 | 240 |
241 | 241 |
242 HEADER_TEMPLATE = """\ | 242 HEADER_TEMPLATE = """\ |
243 // Copyright 2011 Google Inc. All Rights Reserved. | 243 // Copyright 2011 Google Inc. All Rights Reserved. |
244 | 244 |
245 // This file was generated from .js source files by GYP. If you | 245 // This file was generated from .js source files by GYP. If you |
246 // want to make changes to this file you should either change the | 246 // want to make changes to this file you should either change the |
247 // javascript source files or the GYP script. | 247 // javascript source files or the GYP script. |
248 | 248 |
249 #include "src/v8.h" | 249 #include "src/v8.h" |
250 #include "src/natives.h" | 250 #include "src/snapshot/natives.h" |
251 #include "src/utils.h" | 251 #include "src/utils.h" |
252 | 252 |
253 namespace v8 { | 253 namespace v8 { |
254 namespace internal { | 254 namespace internal { |
255 | 255 |
256 %(sources_declaration)s\ | 256 %(sources_declaration)s\ |
257 | 257 |
258 template <> | 258 template <> |
259 int NativesCollection<%(type)s>::GetBuiltinsCount() { | 259 int NativesCollection<%(type)s>::GetBuiltinsCount() { |
260 return %(builtin_count)i; | 260 return %(builtin_count)i; |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
525 out.cc: C code to be generated. | 525 out.cc: C code to be generated. |
526 type: type parameter for NativesCollection template. | 526 type: type parameter for NativesCollection template. |
527 sources.js: JS internal sources or macros.py.""") | 527 sources.js: JS internal sources or macros.py.""") |
528 (options, args) = parser.parse_args() | 528 (options, args) = parser.parse_args() |
529 | 529 |
530 JS2C(args[2:], args[0], args[1], options.raw, options.startup_blob) | 530 JS2C(args[2:], args[0], args[1], options.raw, options.startup_blob) |
531 | 531 |
532 | 532 |
533 if __name__ == "__main__": | 533 if __name__ == "__main__": |
534 main() | 534 main() |
OLD | NEW |