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

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

Issue 10827434: - Pass the correct version of handle reference to Class::NewNativeWrapper. (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
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 675 matching lines...) Expand 10 before | Expand all | Expand 10 after
686 // Allocate a class used for VM internal objects. 686 // Allocate a class used for VM internal objects.
687 template <class FakeObject> static RawClass* New(); 687 template <class FakeObject> static RawClass* New();
688 688
689 // Allocate instance classes and interfaces. 689 // Allocate instance classes and interfaces.
690 static RawClass* New(const String& name, 690 static RawClass* New(const String& name,
691 const Script& script, 691 const Script& script,
692 intptr_t token_pos); 692 intptr_t token_pos);
693 static RawClass* NewInterface(const String& name, 693 static RawClass* NewInterface(const String& name,
694 const Script& script, 694 const Script& script,
695 intptr_t token_pos); 695 intptr_t token_pos);
696 static RawClass* NewNativeWrapper(Library* library, 696 static RawClass* NewNativeWrapper(const Library& library,
697 const String& name, 697 const String& name,
698 int num_fields); 698 int num_fields);
699 699
700 // Allocate a class representing a function signature described by 700 // Allocate a class representing a function signature described by
701 // signature_function, which must be a closure function or a signature 701 // signature_function, which must be a closure function or a signature
702 // function. 702 // function.
703 // The class may be type parameterized unless the signature_function is in a 703 // The class may be type parameterized unless the signature_function is in a
704 // static scope. In that case, the type parameters are copied from the owner 704 // static scope. In that case, the type parameters are copied from the owner
705 // class of signature_function. 705 // class of signature_function.
706 static RawClass* NewSignatureClass(const String& name, 706 static RawClass* NewSignatureClass(const String& name,
(...skipping 4831 matching lines...) Expand 10 before | Expand all | Expand 10 after
5538 if (this->CharAt(i) != str.CharAt(begin_index + i)) { 5538 if (this->CharAt(i) != str.CharAt(begin_index + i)) {
5539 return false; 5539 return false;
5540 } 5540 }
5541 } 5541 }
5542 return true; 5542 return true;
5543 } 5543 }
5544 5544
5545 } // namespace dart 5545 } // namespace dart
5546 5546
5547 #endif // VM_OBJECT_H_ 5547 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698