| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "vm/object.h" | 5 #include "vm/object.h" |
| 6 | 6 |
| 7 #include "include/dart_api.h" | 7 #include "include/dart_api.h" |
| 8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
| 9 #include "vm/assembler.h" | 9 #include "vm/assembler.h" |
| 10 #include "vm/bigint_operations.h" | 10 #include "vm/bigint_operations.h" |
| (...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 // Set up names for all VM singleton classes. | 389 // Set up names for all VM singleton classes. |
| 390 SET_CLASS_NAME(class, Class); | 390 SET_CLASS_NAME(class, Class); |
| 391 SET_CLASS_NAME(null, Null); | 391 SET_CLASS_NAME(null, Null); |
| 392 SET_CLASS_NAME(dynamic, Dynamic); | 392 SET_CLASS_NAME(dynamic, Dynamic); |
| 393 SET_CLASS_NAME(void, Void); | 393 SET_CLASS_NAME(void, Void); |
| 394 SET_CLASS_NAME(unresolved_class, UnresolvedClass); | 394 SET_CLASS_NAME(unresolved_class, UnresolvedClass); |
| 395 SET_CLASS_NAME(type, Type); | 395 SET_CLASS_NAME(type, Type); |
| 396 SET_CLASS_NAME(type_parameter, TypeParameter); | 396 SET_CLASS_NAME(type_parameter, TypeParameter); |
| 397 SET_CLASS_NAME(type_arguments, TypeArguments); | 397 SET_CLASS_NAME(type_arguments, TypeArguments); |
| 398 SET_CLASS_NAME(instantiated_type_arguments, InstantiatedTypeArguments); | 398 SET_CLASS_NAME(instantiated_type_arguments, InstantiatedTypeArguments); |
| 399 SET_CLASS_NAME(patch_class, PatchClass); |
| 399 SET_CLASS_NAME(function, Function); | 400 SET_CLASS_NAME(function, Function); |
| 400 SET_CLASS_NAME(field, Field); | 401 SET_CLASS_NAME(field, Field); |
| 401 SET_CLASS_NAME(literal_token, LiteralToken); | 402 SET_CLASS_NAME(literal_token, LiteralToken); |
| 402 SET_CLASS_NAME(token_stream, TokenStream); | 403 SET_CLASS_NAME(token_stream, TokenStream); |
| 403 SET_CLASS_NAME(script, Script); | 404 SET_CLASS_NAME(script, Script); |
| 404 SET_CLASS_NAME(library, LibraryClass); | 405 SET_CLASS_NAME(library, LibraryClass); |
| 405 SET_CLASS_NAME(library_prefix, LibraryPrefix); | 406 SET_CLASS_NAME(library_prefix, LibraryPrefix); |
| 406 SET_CLASS_NAME(code, Code); | 407 SET_CLASS_NAME(code, Code); |
| 407 SET_CLASS_NAME(instructions, Instructions); | 408 SET_CLASS_NAME(instructions, Instructions); |
| 408 SET_CLASS_NAME(pc_descriptors, PcDescriptors); | 409 SET_CLASS_NAME(pc_descriptors, PcDescriptors); |
| (...skipping 10896 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11305 const char* JSRegExp::ToCString() const { | 11306 const char* JSRegExp::ToCString() const { |
| 11306 const String& str = String::Handle(pattern()); | 11307 const String& str = String::Handle(pattern()); |
| 11307 const char* format = "JSRegExp: pattern=%s flags=%s"; | 11308 const char* format = "JSRegExp: pattern=%s flags=%s"; |
| 11308 intptr_t len = OS::SNPrint(NULL, 0, format, str.ToCString(), Flags()); | 11309 intptr_t len = OS::SNPrint(NULL, 0, format, str.ToCString(), Flags()); |
| 11309 char* chars = Isolate::Current()->current_zone()->Alloc<char>(len + 1); | 11310 char* chars = Isolate::Current()->current_zone()->Alloc<char>(len + 1); |
| 11310 OS::SNPrint(chars, (len + 1), format, str.ToCString(), Flags()); | 11311 OS::SNPrint(chars, (len + 1), format, str.ToCString(), Flags()); |
| 11311 return chars; | 11312 return chars; |
| 11312 } | 11313 } |
| 11313 | 11314 |
| 11314 } // namespace dart | 11315 } // namespace dart |
| OLD | NEW |