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 "platform/assert.h" |
6 | |
7 #include "vm/assembler.h" | 6 #include "vm/assembler.h" |
8 #include "vm/assert.h" | |
9 #include "vm/bigint_operations.h" | 7 #include "vm/bigint_operations.h" |
10 #include "vm/bootstrap.h" | 8 #include "vm/bootstrap.h" |
11 #include "vm/code_generator.h" | 9 #include "vm/code_generator.h" |
12 #include "vm/code_index_table.h" | 10 #include "vm/code_index_table.h" |
13 #include "vm/code_patcher.h" | 11 #include "vm/code_patcher.h" |
14 #include "vm/compiler.h" | 12 #include "vm/compiler.h" |
15 #include "vm/compiler_stats.h" | 13 #include "vm/compiler_stats.h" |
16 #include "vm/class_finalizer.h" | 14 #include "vm/class_finalizer.h" |
17 #include "vm/dart.h" | 15 #include "vm/dart.h" |
18 #include "vm/dart_entry.h" | 16 #include "vm/dart_entry.h" |
19 #include "vm/debuginfo.h" | 17 #include "vm/debuginfo.h" |
20 #include "vm/exceptions.h" | 18 #include "vm/exceptions.h" |
21 #include "vm/growable_array.h" | 19 #include "vm/growable_array.h" |
22 #include "vm/heap.h" | 20 #include "vm/heap.h" |
23 #include "vm/ic_data.h" | 21 #include "vm/ic_data.h" |
22 #include "vm/object.h" | |
Ivan Posva
2012/01/13 23:22:06
First.
Søren Gjesse
2012/01/16 08:58:00
Done.
| |
24 #include "vm/object_store.h" | 23 #include "vm/object_store.h" |
25 #include "vm/parser.h" | 24 #include "vm/parser.h" |
26 #include "vm/runtime_entry.h" | 25 #include "vm/runtime_entry.h" |
27 #include "vm/scopes.h" | 26 #include "vm/scopes.h" |
28 #include "vm/timer.h" | 27 #include "vm/timer.h" |
29 #include "vm/unicode.h" | 28 #include "vm/unicode.h" |
30 | 29 |
31 namespace dart { | 30 namespace dart { |
32 | 31 |
33 DEFINE_FLAG(bool, generate_gdb_symbols, false, | 32 DEFINE_FLAG(bool, generate_gdb_symbols, false, |
(...skipping 7575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
7609 const String& str = String::Handle(pattern()); | 7608 const String& str = String::Handle(pattern()); |
7610 const char* format = "JSRegExp: pattern=%s flags=%s"; | 7609 const char* format = "JSRegExp: pattern=%s flags=%s"; |
7611 intptr_t len = OS::SNPrint(NULL, 0, format, str.ToCString(), Flags()); | 7610 intptr_t len = OS::SNPrint(NULL, 0, format, str.ToCString(), Flags()); |
7612 char* chars = reinterpret_cast<char*>( | 7611 char* chars = reinterpret_cast<char*>( |
7613 Isolate::Current()->current_zone()->Allocate(len + 1)); | 7612 Isolate::Current()->current_zone()->Allocate(len + 1)); |
7614 OS::SNPrint(chars, (len + 1), format, str.ToCString(), Flags()); | 7613 OS::SNPrint(chars, (len + 1), format, str.ToCString(), Flags()); |
7615 return chars; | 7614 return chars; |
7616 } | 7615 } |
7617 | 7616 |
7618 } // namespace dart | 7617 } // namespace dart |
OLD | NEW |