OLD | NEW |
1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 #ifdef FLETCH_ENABLE_LIVE_CODING | 5 #ifdef DARTINO_ENABLE_LIVE_CODING |
6 | 6 |
7 #include "src/vm/selector_row.h" | 7 #include "src/vm/selector_row.h" |
8 | 8 |
9 #include "src/shared/bytecodes.h" | 9 #include "src/shared/bytecodes.h" |
10 #include "src/shared/names.h" | 10 #include "src/shared/names.h" |
11 #include "src/shared/selectors.h" | 11 #include "src/shared/selectors.h" |
12 | 12 |
13 #include "src/vm/program.h" | 13 #include "src/vm/program.h" |
14 | 14 |
15 namespace fletch { | 15 namespace dartino { |
16 | 16 |
17 void SelectorRow::Finalize() { | 17 void SelectorRow::Finalize() { |
18 ASSERT(IsMatched()); | 18 ASSERT(IsMatched()); |
19 | 19 |
20 int variants = variants_; | 20 int variants = variants_; |
21 | 21 |
22 ASSERT(begin_ == -1 && end_ == -1); | 22 ASSERT(begin_ == -1 && end_ == -1); |
23 Class* first = classes_[0]; | 23 Class* first = classes_[0]; |
24 begin_ = first->id(); | 24 begin_ = first->id(); |
25 end_ = first->child_id(); | 25 end_ = first->child_id(); |
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 } | 309 } |
310 } else if (slot.end() <= range.end()) { | 310 } else if (slot.end() <= range.end()) { |
311 ASSERT(slot.IsSame(range)); | 311 ASSERT(slot.IsSame(range)); |
312 free_slots_.Remove(slot_index); | 312 free_slots_.Remove(slot_index); |
313 } else { | 313 } else { |
314 slot.set_begin(range.end()); | 314 slot.set_begin(range.end()); |
315 } | 315 } |
316 return slot_index; | 316 return slot_index; |
317 } | 317 } |
318 | 318 |
319 } // namespace fletch | 319 } // namespace dartino |
320 | 320 |
321 #endif // FLETCH_ENABLE_LIVE_CODING | 321 #endif // DARTINO_ENABLE_LIVE_CODING |
OLD | NEW |