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

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

Issue 1990613002: Attempt to fix the linker issues by wrapping the template call with a helper (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/raw_object_snapshot.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 #include "vm/object.h" 5 #include "vm/object.h"
6 6
7 #include "include/dart_api.h" 7 #include "include/dart_api.h"
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/assembler.h" 9 #include "vm/assembler.h"
10 #include "vm/cpu.h" 10 #include "vm/cpu.h"
(...skipping 3166 matching lines...) Expand 10 before | Expand all | Expand 10 after
3177 Class& result = Class::Handle(NewCommon<Instance>(kIllegalCid)); 3177 Class& result = Class::Handle(NewCommon<Instance>(kIllegalCid));
3178 result.set_library(lib); 3178 result.set_library(lib);
3179 result.set_name(name); 3179 result.set_name(name);
3180 result.set_script(script); 3180 result.set_script(script);
3181 result.set_token_pos(token_pos); 3181 result.set_token_pos(token_pos);
3182 Isolate::Current()->RegisterClass(result); 3182 Isolate::Current()->RegisterClass(result);
3183 return result.raw(); 3183 return result.raw();
3184 } 3184 }
3185 3185
3186 3186
3187 RawClass* Class::NewInstanceClass() {
3188 return Class::New<Instance>(kIllegalCid);
3189 }
3190
3191
3187 RawClass* Class::NewNativeWrapper(const Library& library, 3192 RawClass* Class::NewNativeWrapper(const Library& library,
3188 const String& name, 3193 const String& name,
3189 int field_count) { 3194 int field_count) {
3190 Class& cls = Class::Handle(library.LookupClass(name)); 3195 Class& cls = Class::Handle(library.LookupClass(name));
3191 if (cls.IsNull()) { 3196 if (cls.IsNull()) {
3192 cls = New(library, name, Script::Handle(), TokenPosition::kNoSource); 3197 cls = New(library, name, Script::Handle(), TokenPosition::kNoSource);
3193 cls.SetFields(Object::empty_array()); 3198 cls.SetFields(Object::empty_array());
3194 cls.SetFunctions(Object::empty_array()); 3199 cls.SetFunctions(Object::empty_array());
3195 // Set super class to Object. 3200 // Set super class to Object.
3196 cls.set_super_type(Type::Handle(Type::ObjectType())); 3201 cls.set_super_type(Type::Handle(Type::ObjectType()));
(...skipping 19625 matching lines...) Expand 10 before | Expand all | Expand 10 after
22822 return UserTag::null(); 22827 return UserTag::null();
22823 } 22828 }
22824 22829
22825 22830
22826 const char* UserTag::ToCString() const { 22831 const char* UserTag::ToCString() const {
22827 const String& tag_label = String::Handle(label()); 22832 const String& tag_label = String::Handle(label());
22828 return tag_label.ToCString(); 22833 return tag_label.ToCString();
22829 } 22834 }
22830 22835
22831 } // namespace dart 22836 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/raw_object_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698