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

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

Issue 10829332: - Split functionality of adding implicit constructors and checking (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 months 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
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "platform/utils.h" 10 #include "platform/utils.h"
(...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after
667 667
668 RawCode* allocation_stub() const { 668 RawCode* allocation_stub() const {
669 return raw_ptr()->allocation_stub_; 669 return raw_ptr()->allocation_stub_;
670 } 670 }
671 void set_allocation_stub(const Code& value) const; 671 void set_allocation_stub(const Code& value) const;
672 672
673 RawArray* constants() const; 673 RawArray* constants() const;
674 674
675 void Finalize() const; 675 void Finalize() const;
676 676
677 void ApplyPatch(const Class& with) const; 677 void ApplyPatch(const Class& patch) const;
678 678
679 // Allocate a class used for VM internal objects. 679 // Allocate a class used for VM internal objects.
680 template <class FakeObject> static RawClass* New(); 680 template <class FakeObject> static RawClass* New();
681 681
682 // Allocate instance classes and interfaces. 682 // Allocate instance classes and interfaces.
683 static RawClass* New(const String& name, 683 static RawClass* New(const String& name,
684 const Script& script, 684 const Script& script,
685 intptr_t token_pos); 685 intptr_t token_pos);
686 static RawClass* NewInterface(const String& name, 686 static RawClass* NewInterface(const String& name,
687 const Script& script, 687 const Script& script,
(...skipping 914 matching lines...) Expand 10 before | Expand all | Expand 10 after
1602 static intptr_t InstanceSize() { 1602 static intptr_t InstanceSize() {
1603 return RoundedAllocationSize(sizeof(RawFunction)); 1603 return RoundedAllocationSize(sizeof(RawFunction));
1604 } 1604 }
1605 1605
1606 static RawFunction* New(const String& name, 1606 static RawFunction* New(const String& name,
1607 RawFunction::Kind kind, 1607 RawFunction::Kind kind,
1608 bool is_static, 1608 bool is_static,
1609 bool is_const, 1609 bool is_const,
1610 bool is_abstract, 1610 bool is_abstract,
1611 bool is_external, 1611 bool is_external,
1612 const Class& owner, 1612 const Object& owner,
1613 intptr_t token_pos); 1613 intptr_t token_pos);
1614 1614
1615 // Allocates a new Function object representing a closure function, as well as 1615 // Allocates a new Function object representing a closure function, as well as
1616 // a new associated Class object representing the signature class of the 1616 // a new associated Class object representing the signature class of the
1617 // function. 1617 // function.
1618 // The function and the class share the same given name. 1618 // The function and the class share the same given name.
1619 static RawFunction* NewClosureFunction(const String& name, 1619 static RawFunction* NewClosureFunction(const String& name,
1620 const Function& parent, 1620 const Function& parent,
1621 intptr_t token_pos); 1621 intptr_t token_pos);
1622 1622
(...skipping 3891 matching lines...) Expand 10 before | Expand all | Expand 10 after
5514 if (this->CharAt(i) != str.CharAt(begin_index + i)) { 5514 if (this->CharAt(i) != str.CharAt(begin_index + i)) {
5515 return false; 5515 return false;
5516 } 5516 }
5517 } 5517 }
5518 return true; 5518 return true;
5519 } 5519 }
5520 5520
5521 } // namespace dart 5521 } // namespace dart
5522 5522
5523 #endif // VM_OBJECT_H_ 5523 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/dart_api_impl_test.cc ('k') | runtime/vm/object.cc » ('j') | runtime/vm/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698