| OLD | NEW |
| 1 // Copyright (c) 2014, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Fletch 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_SHARED_NAMES_H_ | 5 #ifndef SRC_SHARED_NAMES_H_ |
| 6 #define SRC_SHARED_NAMES_H_ | 6 #define SRC_SHARED_NAMES_H_ |
| 7 | 7 |
| 8 namespace fletch { | 8 namespace fletch { |
| 9 | 9 |
| 10 #define NAMES_LIST(N) \ | 10 #define NAMES_LIST(N) \ |
| 11 N(Illegal, "<illegal>") \ | 11 N(Illegal, "<illegal>") \ |
| 12 N(Object, "Object") \ | 12 N(Object, "Object") \ |
| 13 N(Bool, "bool") \ | 13 N(Bool, "bool") \ |
| 14 N(Null, "Null") \ | 14 N(Null, "Null") \ |
| 15 N(Double, "_DoubleImpl") \ | 15 N(Double, "_DoubleImpl") \ |
| 16 N(Int, "int") \ | 16 N(Int, "int") \ |
| 17 N(Smi, "_Smi") \ | 17 N(Smi, "_Smi") \ |
| 18 N(Mint, "_Mint") \ | 18 N(Mint, "_Mint") \ |
| 19 N(ConstantList, "_ConstantList") \ | 19 N(ConstantList, "_ConstantList") \ |
| 20 N(ConstantMap, "_ConstantMap") \ | 20 N(ConstantMap, "_ConstantMap") \ |
| 21 N(Num, "num") \ | 21 N(Num, "num") \ |
| 22 N(Coroutine, "Coroutine") \ | 22 N(Coroutine, "Coroutine") \ |
| 23 N(Port, "Port") \ | 23 N(Port, "Port") \ |
| 24 N(Foreign, "Foreign") \ | 24 N(ForeignMemory, "ForeignMemory") \ |
| 25 N(ForeignFunction, "ForeignFunction") \ |
| 25 N(String, "_StringImpl") \ | 26 N(String, "_StringImpl") \ |
| 26 \ | 27 \ |
| 27 N(Equals, "==") \ | 28 N(Equals, "==") \ |
| 28 N(LessThan, "<") \ | 29 N(LessThan, "<") \ |
| 29 N(LessEqual, "<=") \ | 30 N(LessEqual, "<=") \ |
| 30 N(GreaterThan, ">") \ | 31 N(GreaterThan, ">") \ |
| 31 N(GreaterEqual, ">=") \ | 32 N(GreaterEqual, ">=") \ |
| 32 \ | 33 \ |
| 33 N(Add, "+") \ | 34 N(Add, "+") \ |
| 34 N(Sub, "-") \ | 35 N(Sub, "-") \ |
| (...skipping 28 matching lines...) Expand all Loading... |
| 63 }; | 64 }; |
| 64 | 65 |
| 65 static bool IsBuiltinClassName(int id) { | 66 static bool IsBuiltinClassName(int id) { |
| 66 return id >= kObject && id <= kString; | 67 return id >= kObject && id <= kString; |
| 67 } | 68 } |
| 68 }; | 69 }; |
| 69 | 70 |
| 70 } // namespace fletch | 71 } // namespace fletch |
| 71 | 72 |
| 72 #endif // SRC_SHARED_NAMES_H_ | 73 #endif // SRC_SHARED_NAMES_H_ |
| OLD | NEW |