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

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

Issue 3010543002: Rename the class "KernelReader" to "KernelLoader". (Closed)
Patch Set: Fix alphabetical order in vm_sources.gni. Created 3 years, 3 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/kernel_to_il.cc ('k') | runtime/vm/vm_sources.gni » ('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/become.h" 10 #include "vm/become.h"
(...skipping 10961 matching lines...) Expand 10 before | Expand all | Expand 10 after
10972 char name_buffer[kNameLength]; 10972 char name_buffer[kNameLength];
10973 String& cls_name = String::Handle(zone); 10973 String& cls_name = String::Handle(zone);
10974 for (int fld_cnt = 1; fld_cnt <= kNumNativeWrappersClasses; fld_cnt++) { 10974 for (int fld_cnt = 1; fld_cnt <= kNumNativeWrappersClasses; fld_cnt++) {
10975 OS::SNPrint(name_buffer, kNameLength, "%s%d", kNativeWrappersClass, 10975 OS::SNPrint(name_buffer, kNameLength, "%s%d", kNativeWrappersClass,
10976 fld_cnt); 10976 fld_cnt);
10977 cls_name = Symbols::New(thread, name_buffer); 10977 cls_name = Symbols::New(thread, name_buffer);
10978 Class::NewNativeWrapper(native_flds_lib, cls_name, fld_cnt); 10978 Class::NewNativeWrapper(native_flds_lib, cls_name, fld_cnt);
10979 } 10979 }
10980 // NOTE: If we bootstrap from a Kernel IR file we want to generate the 10980 // NOTE: If we bootstrap from a Kernel IR file we want to generate the
10981 // synthetic constructors for the native wrapper classes. We leave this up to 10981 // synthetic constructors for the native wrapper classes. We leave this up to
10982 // the [KernelReader] who will take care of it later. 10982 // the [KernelLoader] who will take care of it later.
10983 if (!is_kernel) { 10983 if (!is_kernel) {
10984 native_flds_lib.SetLoaded(); 10984 native_flds_lib.SetLoaded();
10985 } 10985 }
10986 } 10986 }
10987 10987
10988 // LibraryLookupSet maps URIs to libraries. 10988 // LibraryLookupSet maps URIs to libraries.
10989 class LibraryLookupTraits { 10989 class LibraryLookupTraits {
10990 public: 10990 public:
10991 static const char* Name() { return "LibraryLookupTraits"; } 10991 static const char* Name() { return "LibraryLookupTraits"; }
10992 static bool ReportStats() { return false; } 10992 static bool ReportStats() { return false; }
(...skipping 11475 matching lines...) Expand 10 before | Expand all | Expand 10 after
22468 } 22468 }
22469 return UserTag::null(); 22469 return UserTag::null();
22470 } 22470 }
22471 22471
22472 const char* UserTag::ToCString() const { 22472 const char* UserTag::ToCString() const {
22473 const String& tag_label = String::Handle(label()); 22473 const String& tag_label = String::Handle(label());
22474 return tag_label.ToCString(); 22474 return tag_label.ToCString();
22475 } 22475 }
22476 22476
22477 } // namespace dart 22477 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/kernel_to_il.cc ('k') | runtime/vm/vm_sources.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698