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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 // backing is indirectly referred to so we can reuse it on subsequent matches | 105 // backing is indirectly referred to so we can reuse it on subsequent matches |
106 // even in the case where the backing has been enlarged and thus reallocated. | 106 // even in the case where the backing has been enlarged and thus reallocated. |
107 stack_array_cell_.SetAt(0, TypedData::Handle(zone, | 107 stack_array_cell_.SetAt(0, TypedData::Handle(zone, |
108 TypedData::New(kTypedDataInt32ArrayCid, kMinStackSize / 4, Heap::kOld))); | 108 TypedData::New(kTypedDataInt32ArrayCid, kMinStackSize / 4, Heap::kOld))); |
109 | 109 |
110 // Create and generate all preset blocks. | 110 // Create and generate all preset blocks. |
111 entry_block_ = | 111 entry_block_ = |
112 new(zone) GraphEntryInstr( | 112 new(zone) GraphEntryInstr( |
113 *parsed_function_, | 113 *parsed_function_, |
114 new(zone) TargetEntryInstr(block_id_.Alloc(), kInvalidTryIndex), | 114 new(zone) TargetEntryInstr(block_id_.Alloc(), kInvalidTryIndex), |
115 Thread::kNoDeoptId); | 115 Compiler::kNoOSRDeoptId); |
116 start_block_ = | 116 start_block_ = |
117 new(zone) JoinEntryInstr(block_id_.Alloc(), kInvalidTryIndex); | 117 new(zone) JoinEntryInstr(block_id_.Alloc(), kInvalidTryIndex); |
118 success_block_ = | 118 success_block_ = |
119 new(zone) JoinEntryInstr(block_id_.Alloc(), kInvalidTryIndex); | 119 new(zone) JoinEntryInstr(block_id_.Alloc(), kInvalidTryIndex); |
120 backtrack_block_ = | 120 backtrack_block_ = |
121 new(zone) JoinEntryInstr(block_id_.Alloc(), kInvalidTryIndex); | 121 new(zone) JoinEntryInstr(block_id_.Alloc(), kInvalidTryIndex); |
122 exit_block_ = | 122 exit_block_ = |
123 new(zone) JoinEntryInstr(block_id_.Alloc(), kInvalidTryIndex); | 123 new(zone) JoinEntryInstr(block_id_.Alloc(), kInvalidTryIndex); |
124 | 124 |
125 GenerateEntryBlock(); | 125 GenerateEntryBlock(); |
(...skipping 1800 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1926 index_val, | 1926 index_val, |
1927 characters, | 1927 characters, |
1928 specialization_cid_, | 1928 specialization_cid_, |
1929 Scanner::kNoSourcePos)); | 1929 Scanner::kNoSourcePos)); |
1930 } | 1930 } |
1931 | 1931 |
1932 | 1932 |
1933 #undef __ | 1933 #undef __ |
1934 | 1934 |
1935 } // namespace dart | 1935 } // namespace dart |
OLD | NEW |