| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 part of service; | 5 part of service; |
| 6 | 6 |
| 7 // Some value smaller than the object ring, so requesting a large array | 7 // Some value smaller than the object ring, so requesting a large array |
| 8 // doesn't result in an expired ref because the elements lapped it in the | 8 // doesn't result in an expired ref because the elements lapped it in the |
| 9 // object ring. | 9 // object ring. |
| 10 const int kDefaultFieldLimit = 100; | 10 const int kDefaultFieldLimit = 100; |
| (...skipping 2774 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2785 // We are fully loaded. | 2785 // We are fully loaded. |
| 2786 _loaded = true; | 2786 _loaded = true; |
| 2787 } | 2787 } |
| 2788 | 2788 |
| 2789 String toString() => 'Context($length)'; | 2789 String toString() => 'Context($length)'; |
| 2790 } | 2790 } |
| 2791 | 2791 |
| 2792 class ContextElement extends M.ContextElement { | 2792 class ContextElement extends M.ContextElement { |
| 2793 final Guarded<Instance> value; | 2793 final Guarded<Instance> value; |
| 2794 | 2794 |
| 2795 ContextElement(ServiceMap map) | 2795 ContextElement(ObservableMap map) |
| 2796 : value = new Guarded<Instance>(map['value']); | 2796 : value = new Guarded<Instance>(map['value']); |
| 2797 } | 2797 } |
| 2798 | 2798 |
| 2799 M.FunctionKind stringToFunctionKind(String value) { | 2799 M.FunctionKind stringToFunctionKind(String value) { |
| 2800 switch(value) { | 2800 switch(value) { |
| 2801 case 'RegularFunction': return M.FunctionKind.regular; | 2801 case 'RegularFunction': return M.FunctionKind.regular; |
| 2802 case 'ClosureFunction': return M.FunctionKind.closure; | 2802 case 'ClosureFunction': return M.FunctionKind.closure; |
| 2803 case 'GetterFunction': return M.FunctionKind.getter; | 2803 case 'GetterFunction': return M.FunctionKind.getter; |
| 2804 case 'SetterFunction': return M.FunctionKind.setter; | 2804 case 'SetterFunction': return M.FunctionKind.setter; |
| 2805 case 'Constructor': return M.FunctionKind.constructor; | 2805 case 'Constructor': return M.FunctionKind.constructor; |
| (...skipping 1489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4295 var v = list[i]; | 4295 var v = list[i]; |
| 4296 if ((v is ObservableMap) && _isServiceMap(v)) { | 4296 if ((v is ObservableMap) && _isServiceMap(v)) { |
| 4297 list[i] = owner.getFromMap(v); | 4297 list[i] = owner.getFromMap(v); |
| 4298 } else if (v is ObservableList) { | 4298 } else if (v is ObservableList) { |
| 4299 _upgradeObservableList(v, owner); | 4299 _upgradeObservableList(v, owner); |
| 4300 } else if (v is ObservableMap) { | 4300 } else if (v is ObservableMap) { |
| 4301 _upgradeObservableMap(v, owner); | 4301 _upgradeObservableMap(v, owner); |
| 4302 } | 4302 } |
| 4303 } | 4303 } |
| 4304 } | 4304 } |
| OLD | NEW |