| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 #ifndef LIB_INVOCATION_MIRROR_H_ | 5 #ifndef RUNTIME_LIB_INVOCATION_MIRROR_H_ |
| 6 #define LIB_INVOCATION_MIRROR_H_ | 6 #define RUNTIME_LIB_INVOCATION_MIRROR_H_ |
| 7 | 7 |
| 8 #include "vm/allocation.h" | 8 #include "vm/allocation.h" |
| 9 | 9 |
| 10 namespace dart { | 10 namespace dart { |
| 11 | 11 |
| 12 class InvocationMirror : public AllStatic { | 12 class InvocationMirror : public AllStatic { |
| 13 public: | 13 public: |
| 14 // These enum correspond to the constants in invocation_mirror_patch.dart. | 14 // These enum correspond to the constants in invocation_mirror_patch.dart. |
| 15 // It is used to communicate the reason for statically thrown | 15 // It is used to communicate the reason for statically thrown |
| 16 // NoSuchMethodErrors by the compiler. | 16 // NoSuchMethodErrors by the compiler. |
| (...skipping 23 matching lines...) Expand all Loading... |
| 40 kCallMask = (1 << kCallBits) - 1 | 40 kCallMask = (1 << kCallBits) - 1 |
| 41 }; | 41 }; |
| 42 | 42 |
| 43 static int EncodeType(Call call, Type type) { | 43 static int EncodeType(Call call, Type type) { |
| 44 return (call << kCallShift) | type; | 44 return (call << kCallShift) | type; |
| 45 } | 45 } |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 } // namespace dart | 48 } // namespace dart |
| 49 | 49 |
| 50 #endif // LIB_INVOCATION_MIRROR_H_ | 50 #endif // RUNTIME_LIB_INVOCATION_MIRROR_H_ |
| OLD | NEW |