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

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

Issue 1387043002: Make dart:_vmservice a proper builtin library (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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/object_store.h » ('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 10241 matching lines...) Expand 10 before | Expand all | Expand 10 after
10252 RawLibrary* Library::ProfilerLibrary() { 10252 RawLibrary* Library::ProfilerLibrary() {
10253 return Isolate::Current()->object_store()->profiler_library(); 10253 return Isolate::Current()->object_store()->profiler_library();
10254 } 10254 }
10255 10255
10256 10256
10257 RawLibrary* Library::TypedDataLibrary() { 10257 RawLibrary* Library::TypedDataLibrary() {
10258 return Isolate::Current()->object_store()->typed_data_library(); 10258 return Isolate::Current()->object_store()->typed_data_library();
10259 } 10259 }
10260 10260
10261 10261
10262 RawLibrary* Library::VMServiceLibrary() {
10263 return Isolate::Current()->object_store()->vmservice_library();
10264 }
10265
10266
10262 const char* Library::ToCString() const { 10267 const char* Library::ToCString() const {
10263 const String& name = String::Handle(url()); 10268 const String& name = String::Handle(url());
10264 return OS::SCreate(Thread::Current()->zone(), 10269 return OS::SCreate(Thread::Current()->zone(),
10265 "Library:'%s'", name.ToCString()); 10270 "Library:'%s'", name.ToCString());
10266 } 10271 }
10267 10272
10268 10273
10269 void Library::PrintJSONImpl(JSONStream* stream, bool ref) const { 10274 void Library::PrintJSONImpl(JSONStream* stream, bool ref) const {
10270 intptr_t id = index(); 10275 intptr_t id = index();
10271 ASSERT(id >= 0); 10276 ASSERT(id >= 0);
(...skipping 11219 matching lines...) Expand 10 before | Expand all | Expand 10 after
21491 return tag_label.ToCString(); 21496 return tag_label.ToCString();
21492 } 21497 }
21493 21498
21494 21499
21495 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { 21500 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const {
21496 Instance::PrintJSONImpl(stream, ref); 21501 Instance::PrintJSONImpl(stream, ref);
21497 } 21502 }
21498 21503
21499 21504
21500 } // namespace dart 21505 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/object_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698