Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Side by Side Diff: runtime/vm/object.h

Issue 8664015: Update function type checking in VM after spec change (issue 444): (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | runtime/vm/object.cc » ('j') | runtime/vm/object.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 types (and names, if 'check_names' is true) of the formal
1340 // parameters in the specified range of this function type and of the other
1341 // function type.
srdjan 2011/11/29 01:01:59 Add comment about from/to_parameter
regis 2011/11/29 01:48:21 Function changed.
1342 bool CheckParameters(const TypeArguments& type_arguments,
1343 const Function& other,
1344 const TypeArguments& other_type_arguments,
1345 intptr_t from_parameter,
1346 intptr_t to_parameter,
1347 bool check_names) const;
1348
1339 HEAP_OBJECT_IMPLEMENTATION(Function, Object); 1349 HEAP_OBJECT_IMPLEMENTATION(Function, Object);
1340 friend class Class; 1350 friend class Class;
1341 }; 1351 };
1342 1352
1343 1353
1344 class Field : public Object { 1354 class Field : public Object {
1345 public: 1355 public:
1346 RawString* name() const { return raw_ptr()->name_; } 1356 RawString* name() const { return raw_ptr()->name_; }
1347 bool is_static() const { return raw_ptr()->is_static_; } 1357 bool is_static() const { return raw_ptr()->is_static_; }
1348 bool is_final() const { return raw_ptr()->is_final_; } 1358 bool is_final() const { return raw_ptr()->is_final_; }
(...skipping 1880 matching lines...) Expand 10 before | Expand all | Expand 10 after
3229 } 3239 }
3230 3240
3231 3241
3232 void Context::SetAt(intptr_t index, const Instance& value) const { 3242 void Context::SetAt(intptr_t index, const Instance& value) const {
3233 StorePointer(InstanceAddr(index), value.raw()); 3243 StorePointer(InstanceAddr(index), value.raw());
3234 } 3244 }
3235 3245
3236 } // namespace dart 3246 } // namespace dart
3237 3247
3238 #endif // VM_OBJECT_H_ 3248 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/object.cc » ('j') | runtime/vm/object.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698