| 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 #ifndef SRC_VM_SELECTOR_ROW_H_ | 5 #ifndef SRC_VM_SELECTOR_ROW_H_ | 
| 6 #define SRC_VM_SELECTOR_ROW_H_ | 6 #define SRC_VM_SELECTOR_ROW_H_ | 
| 7 | 7 | 
| 8 #ifdef FLETCH_ENABLE_LIVE_CODING | 8 #ifdef DARTINO_ENABLE_LIVE_CODING | 
| 9 | 9 | 
| 10 #include "src/shared/assert.h" | 10 #include "src/shared/assert.h" | 
| 11 #include "src/shared/globals.h" | 11 #include "src/shared/globals.h" | 
| 12 #include "src/shared/utils.h" | 12 #include "src/shared/utils.h" | 
| 13 | 13 | 
| 14 #include "src/vm/hash_set.h" | 14 #include "src/vm/hash_set.h" | 
| 15 #include "src/vm/object.h" | 15 #include "src/vm/object.h" | 
| 16 #include "src/vm/vector.h" | 16 #include "src/vm/vector.h" | 
| 17 | 17 | 
| 18 namespace fletch { | 18 namespace dartino { | 
| 19 | 19 | 
| 20 typedef Vector<Class*> ClassVector; | 20 typedef Vector<Class*> ClassVector; | 
| 21 typedef Vector<Function*> FunctionVector; | 21 typedef Vector<Function*> FunctionVector; | 
| 22 | 22 | 
| 23 class Range { | 23 class Range { | 
| 24  public: | 24  public: | 
| 25   typedef Vector<Range> List; | 25   typedef Vector<Range> List; | 
| 26 | 26 | 
| 27   Range(int begin, int end) : begin_(begin), end_(end) { ASSERT(end > begin); } | 27   Range(int begin, int end) : begin_(begin), end_(end) { ASSERT(end > begin); } | 
| 28 | 28 | 
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 173                        size_t slot_index); | 173                        size_t slot_index); | 
| 174 | 174 | 
| 175   size_t FitInFreeSlot(const Range range, size_t slot_index); | 175   size_t FitInFreeSlot(const Range range, size_t slot_index); | 
| 176 | 176 | 
| 177   HashSet<intptr_t> used_offsets_; | 177   HashSet<intptr_t> used_offsets_; | 
| 178   Range::List free_slots_; | 178   Range::List free_slots_; | 
| 179   int single_range_start_index_; | 179   int single_range_start_index_; | 
| 180   int limit_; | 180   int limit_; | 
| 181 }; | 181 }; | 
| 182 | 182 | 
| 183 }  // namespace fletch | 183 }  // namespace dartino | 
| 184 | 184 | 
| 185 #endif  // FLETCH_ENABLE_LIVE_CODING | 185 #endif  // DARTINO_ENABLE_LIVE_CODING | 
| 186 | 186 | 
| 187 #endif  // SRC_VM_SELECTOR_ROW_H_ | 187 #endif  // SRC_VM_SELECTOR_ROW_H_ | 
| OLD | NEW | 
|---|