OLD | NEW |
1 // Copyright (c) 2011, 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 "platform/assert.h" |
7 #include "vm/assembler.h" | 8 #include "vm/assembler.h" |
8 #include "vm/assert.h" | |
9 #include "vm/bigint_operations.h" | 9 #include "vm/bigint_operations.h" |
10 #include "vm/bootstrap.h" | 10 #include "vm/bootstrap.h" |
11 #include "vm/code_generator.h" | 11 #include "vm/code_generator.h" |
12 #include "vm/code_index_table.h" | 12 #include "vm/code_index_table.h" |
13 #include "vm/code_patcher.h" | 13 #include "vm/code_patcher.h" |
14 #include "vm/compiler.h" | 14 #include "vm/compiler.h" |
15 #include "vm/compiler_stats.h" | 15 #include "vm/compiler_stats.h" |
16 #include "vm/class_finalizer.h" | 16 #include "vm/class_finalizer.h" |
17 #include "vm/dart.h" | 17 #include "vm/dart.h" |
18 #include "vm/dart_entry.h" | 18 #include "vm/dart_entry.h" |
(...skipping 7590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7609 const String& str = String::Handle(pattern()); | 7609 const String& str = String::Handle(pattern()); |
7610 const char* format = "JSRegExp: pattern=%s flags=%s"; | 7610 const char* format = "JSRegExp: pattern=%s flags=%s"; |
7611 intptr_t len = OS::SNPrint(NULL, 0, format, str.ToCString(), Flags()); | 7611 intptr_t len = OS::SNPrint(NULL, 0, format, str.ToCString(), Flags()); |
7612 char* chars = reinterpret_cast<char*>( | 7612 char* chars = reinterpret_cast<char*>( |
7613 Isolate::Current()->current_zone()->Allocate(len + 1)); | 7613 Isolate::Current()->current_zone()->Allocate(len + 1)); |
7614 OS::SNPrint(chars, (len + 1), format, str.ToCString(), Flags()); | 7614 OS::SNPrint(chars, (len + 1), format, str.ToCString(), Flags()); |
7615 return chars; | 7615 return chars; |
7616 } | 7616 } |
7617 | 7617 |
7618 } // namespace dart | 7618 } // namespace dart |
OLD | NEW |