| 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 #include "vm/code_generator.h" | 5 #include "vm/code_generator.h" |
| 6 | 6 |
| 7 #include "vm/assembler.h" | 7 #include "vm/assembler.h" |
| 8 #include "vm/ast.h" | 8 #include "vm/ast.h" |
| 9 #include "vm/bigint_operations.h" | 9 #include "vm/bigint_operations.h" |
| 10 #include "vm/code_patcher.h" | 10 #include "vm/code_patcher.h" |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 } | 199 } |
| 200 } else { | 200 } else { |
| 201 type_arguments = | 201 type_arguments = |
| 202 type_arguments.InstantiateAndCanonicalizeFrom(instantiator, NULL); | 202 type_arguments.InstantiateAndCanonicalizeFrom(instantiator, NULL); |
| 203 } | 203 } |
| 204 ASSERT(type_arguments.IsInstantiated()); | 204 ASSERT(type_arguments.IsInstantiated()); |
| 205 arguments.SetReturn(type_arguments); | 205 arguments.SetReturn(type_arguments); |
| 206 } | 206 } |
| 207 | 207 |
| 208 | 208 |
| 209 // TODO(regis): Not used anymore. Delete. |
| 210 |
| 209 // Allocate a new closure. | 211 // Allocate a new closure. |
| 210 // The type argument vector of a closure is always the vector of type parameters | 212 // The type argument vector of a closure is always the vector of type parameters |
| 211 // of its signature class, i.e. an uninstantiated identity vector. Therefore, | 213 // of its signature class, i.e. an uninstantiated identity vector. Therefore, |
| 212 // the instantiator type arguments can be used as the instantiated closure type | 214 // the instantiator type arguments can be used as the instantiated closure type |
| 213 // arguments and is passed here as the type arguments. | 215 // arguments and is passed here as the type arguments. |
| 214 // Arg0: local function. | 216 // Arg0: local function. |
| 215 // Arg1: type arguments of the closure (i.e. instantiator). | 217 // Arg1: type arguments of the closure (i.e. instantiator). |
| 216 // Return value: newly allocated closure. | 218 // Return value: newly allocated closure. |
| 217 DEFINE_RUNTIME_ENTRY(AllocateClosure, 2) { | 219 DEFINE_RUNTIME_ENTRY(AllocateClosure, 2) { |
| 218 const Function& function = Function::CheckedHandle(arguments.ArgAt(0)); | 220 const Function& function = Function::CheckedHandle(arguments.ArgAt(0)); |
| (...skipping 1374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1593 // of the given value. | 1595 // of the given value. |
| 1594 // Arg0: Field object; | 1596 // Arg0: Field object; |
| 1595 // Arg1: Value that is being stored. | 1597 // Arg1: Value that is being stored. |
| 1596 DEFINE_RUNTIME_ENTRY(UpdateFieldCid, 2) { | 1598 DEFINE_RUNTIME_ENTRY(UpdateFieldCid, 2) { |
| 1597 const Field& field = Field::CheckedHandle(arguments.ArgAt(0)); | 1599 const Field& field = Field::CheckedHandle(arguments.ArgAt(0)); |
| 1598 const Object& value = Object::Handle(arguments.ArgAt(1)); | 1600 const Object& value = Object::Handle(arguments.ArgAt(1)); |
| 1599 field.UpdateGuardedCidAndLength(value); | 1601 field.UpdateGuardedCidAndLength(value); |
| 1600 } | 1602 } |
| 1601 | 1603 |
| 1602 } // namespace dart | 1604 } // namespace dart |
| OLD | NEW |