OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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/regexp_assembler_ir.h" | 5 #include "vm/regexp_assembler_ir.h" |
6 | 6 |
7 #include "vm/bit_vector.h" | 7 #include "vm/bit_vector.h" |
8 #include "vm/compiler.h" | 8 #include "vm/compiler.h" |
9 #include "vm/dart_entry.h" | 9 #include "vm/dart_entry.h" |
10 #include "vm/flow_graph_builder.h" | 10 #include "vm/flow_graph_builder.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 String::Handle(String::New(__FUNCTION__)), Heap::kOld)))))); | 29 String::Handle(String::New(__FUNCTION__)), Heap::kOld)))))); |
30 | 30 |
31 #define PRINT(arg) if (FLAG_trace_irregexp) { Print(arg); } | 31 #define PRINT(arg) if (FLAG_trace_irregexp) { Print(arg); } |
32 | 32 |
33 namespace dart { | 33 namespace dart { |
34 | 34 |
35 DEFINE_FLAG(bool, trace_irregexp, false, "Trace irregexps"); | 35 DEFINE_FLAG(bool, trace_irregexp, false, "Trace irregexps"); |
36 | 36 |
37 | 37 |
38 static const intptr_t kInvalidTryIndex = CatchClauseNode::kInvalidTryIndex; | 38 static const intptr_t kInvalidTryIndex = CatchClauseNode::kInvalidTryIndex; |
39 static const intptr_t kNoSourcePos = Token::kNoSourcePos; | 39 static const TokenPosition kNoSourcePos = TokenPosition::kNoSource; |
40 static const intptr_t kMinStackSize = 512; | 40 static const intptr_t kMinStackSize = 512; |
41 | 41 |
42 | 42 |
43 void PrintUtf16(uint16_t c) { | 43 void PrintUtf16(uint16_t c) { |
44 const char* format = (0x20 <= c && c <= 0x7F) ? | 44 const char* format = (0x20 <= c && c <= 0x7F) ? |
45 "%c" : (c <= 0xff) ? "\\x%02x" : "\\u%04x"; | 45 "%c" : (c <= 0xff) ? "\\x%02x" : "\\u%04x"; |
46 OS::Print(format, c); | 46 OS::Print(format, c); |
47 } | 47 } |
48 | 48 |
49 | 49 |
(...skipping 1874 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1924 index_val, | 1924 index_val, |
1925 characters, | 1925 characters, |
1926 specialization_cid_, | 1926 specialization_cid_, |
1927 kNoSourcePos)); | 1927 kNoSourcePos)); |
1928 } | 1928 } |
1929 | 1929 |
1930 | 1930 |
1931 #undef __ | 1931 #undef __ |
1932 | 1932 |
1933 } // namespace dart | 1933 } // namespace dart |
OLD | NEW |