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

Side by Side Diff: tools/js2c.py

Issue 430503007: Rename ASSERT* to DCHECK*. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE and fixes Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « test/cctest/test-weaksets.cc ('k') | tools/lexer-shell.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 return Vector<const char>("", 0); 269 return Vector<const char>("", 0);
270 } 270 }
271 271
272 template <> 272 template <>
273 Vector<const byte> NativesCollection<%(type)s>::GetScriptsSource() { 273 Vector<const byte> NativesCollection<%(type)s>::GetScriptsSource() {
274 return Vector<const byte>(sources, %(total_length)i); 274 return Vector<const byte>(sources, %(total_length)i);
275 } 275 }
276 276
277 template <> 277 template <>
278 void NativesCollection<%(type)s>::SetRawScriptsSource(Vector<const char> raw_s ource) { 278 void NativesCollection<%(type)s>::SetRawScriptsSource(Vector<const char> raw_s ource) {
279 ASSERT(%(raw_total_length)i == raw_source.length()); 279 DCHECK(%(raw_total_length)i == raw_source.length());
280 raw_sources = raw_source.start(); 280 raw_sources = raw_source.start();
281 } 281 }
282 282
283 } // internal 283 } // internal
284 } // v8 284 } // v8
285 """ 285 """
286 286
287 SOURCES_DECLARATION = """\ 287 SOURCES_DECLARATION = """\
288 static const byte sources[] = { %s }; 288 static const byte sources[] = { %s };
289 """ 289 """
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 type: type parameter for NativesCollection template. 547 type: type parameter for NativesCollection template.
548 compression: type of compression used. [off|bz2] 548 compression: type of compression used. [off|bz2]
549 sources.js: JS internal sources or macros.py.""") 549 sources.js: JS internal sources or macros.py.""")
550 (options, args) = parser.parse_args() 550 (options, args) = parser.parse_args()
551 551
552 JS2C(args[3:], args[0], args[1], args[2], options.raw, options.startup_blob) 552 JS2C(args[3:], args[0], args[1], args[2], options.raw, options.startup_blob)
553 553
554 554
555 if __name__ == "__main__": 555 if __name__ == "__main__":
556 main() 556 main()
OLDNEW
« no previous file with comments | « test/cctest/test-weaksets.cc ('k') | tools/lexer-shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698