| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 VM_OBJECT_H_ | 5 #ifndef VM_OBJECT_H_ |
| 6 #define VM_OBJECT_H_ | 6 #define VM_OBJECT_H_ |
| 7 | 7 |
| 8 #include "vm/assert.h" | 8 #include "vm/assert.h" |
| 9 #include "vm/dart.h" | 9 #include "vm/dart.h" |
| 10 #include "vm/globals.h" | 10 #include "vm/globals.h" |
| (...skipping 1318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1329 const TypeArguments& instantiator, | 1329 const TypeArguments& instantiator, |
| 1330 intptr_t offset) const; | 1330 intptr_t offset) const; |
| 1331 | 1331 |
| 1332 // Checks the subtype or assignability relationship between the type of this | 1332 // Checks the subtype or assignability relationship between the type of this |
| 1333 // function and the type of the other function. | 1333 // function and the type of the other function. |
| 1334 bool TestType(TypeTestKind test, | 1334 bool TestType(TypeTestKind test, |
| 1335 const TypeArguments& type_arguments, | 1335 const TypeArguments& type_arguments, |
| 1336 const Function& other, | 1336 const Function& other, |
| 1337 const TypeArguments& other_type_arguments) const; | 1337 const TypeArguments& other_type_arguments) const; |
| 1338 | 1338 |
| 1339 // Checks the type of the formal parameter at the given position for |
| 1340 // assignability relationship between the type of this function and the type |
| 1341 // of the other function. |
| 1342 bool TestParameterType(intptr_t parameter_position, |
| 1343 const TypeArguments& type_arguments, |
| 1344 const Function& other, |
| 1345 const TypeArguments& other_type_arguments) const; |
| 1346 |
| 1339 HEAP_OBJECT_IMPLEMENTATION(Function, Object); | 1347 HEAP_OBJECT_IMPLEMENTATION(Function, Object); |
| 1340 friend class Class; | 1348 friend class Class; |
| 1341 }; | 1349 }; |
| 1342 | 1350 |
| 1343 | 1351 |
| 1344 class Field : public Object { | 1352 class Field : public Object { |
| 1345 public: | 1353 public: |
| 1346 RawString* name() const { return raw_ptr()->name_; } | 1354 RawString* name() const { return raw_ptr()->name_; } |
| 1347 bool is_static() const { return raw_ptr()->is_static_; } | 1355 bool is_static() const { return raw_ptr()->is_static_; } |
| 1348 bool is_final() const { return raw_ptr()->is_final_; } | 1356 bool is_final() const { return raw_ptr()->is_final_; } |
| (...skipping 1880 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3229 } | 3237 } |
| 3230 | 3238 |
| 3231 | 3239 |
| 3232 void Context::SetAt(intptr_t index, const Instance& value) const { | 3240 void Context::SetAt(intptr_t index, const Instance& value) const { |
| 3233 StorePointer(InstanceAddr(index), value.raw()); | 3241 StorePointer(InstanceAddr(index), value.raw()); |
| 3234 } | 3242 } |
| 3235 | 3243 |
| 3236 } // namespace dart | 3244 } // namespace dart |
| 3237 | 3245 |
| 3238 #endif // VM_OBJECT_H_ | 3246 #endif // VM_OBJECT_H_ |
| OLD | NEW |