| 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_PROGRAM_FOLDER_H_ | 5 #ifndef SRC_VM_PROGRAM_FOLDER_H_ |
| 6 #define SRC_VM_PROGRAM_FOLDER_H_ | 6 #define SRC_VM_PROGRAM_FOLDER_H_ |
| 7 | 7 |
| 8 #ifdef FLETCH_ENABLE_LIVE_CODING | 8 #ifdef DARTINO_ENABLE_LIVE_CODING |
| 9 | 9 |
| 10 namespace fletch { | 10 namespace dartino { |
| 11 | 11 |
| 12 class Function; | 12 class Function; |
| 13 class Object; | 13 class Object; |
| 14 class Program; | 14 class Program; |
| 15 class ProgramTableRewriter; | 15 class ProgramTableRewriter; |
| 16 class SemiSpace; | 16 class SemiSpace; |
| 17 | 17 |
| 18 // ProgramFolder used for folding and unfolding a Program. | 18 // ProgramFolder used for folding and unfolding a Program. |
| 19 class ProgramFolder { | 19 class ProgramFolder { |
| 20 public: | 20 public: |
| (...skipping 14 matching lines...) Expand all Loading... |
| 35 | 35 |
| 36 Program* program() const { return program_; } | 36 Program* program() const { return program_; } |
| 37 | 37 |
| 38 // Will fold the program if not overridden by -Xunfold-program. | 38 // Will fold the program if not overridden by -Xunfold-program. |
| 39 static void FoldProgramByDefault(Program* program); | 39 static void FoldProgramByDefault(Program* program); |
| 40 | 40 |
| 41 private: | 41 private: |
| 42 Program* const program_; | 42 Program* const program_; |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 } // namespace fletch | 45 } // namespace dartino |
| 46 | 46 |
| 47 #endif // FLETCH_ENABLE_LIVE_CODING | 47 #endif // DARTINO_ENABLE_LIVE_CODING |
| 48 | 48 |
| 49 #endif // SRC_VM_PROGRAM_FOLDER_H_ | 49 #endif // SRC_VM_PROGRAM_FOLDER_H_ |
| OLD | NEW |