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

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

Issue 10416050: Remove the partially completed code for remote IsolateMirrors and (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 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/message_handler.h ('k') | runtime/vm/port.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 "platform/assert.h" 7 #include "platform/assert.h"
8 #include "vm/assembler.h" 8 #include "vm/assembler.h"
9 #include "vm/bigint_operations.h" 9 #include "vm/bigint_operations.h"
10 #include "vm/bootstrap.h" 10 #include "vm/bootstrap.h"
(...skipping 5416 matching lines...) Expand 10 before | Expand all | Expand 10 after
5427 isolate->object_store()->set_isolate_library(lib); 5427 isolate->object_store()->set_isolate_library(lib);
5428 } 5428 }
5429 5429
5430 5430
5431 void Library::InitMirrorsLibrary(Isolate* isolate) { 5431 void Library::InitMirrorsLibrary(Isolate* isolate) {
5432 const String& url = String::Handle(String::NewSymbol("dart:mirrors")); 5432 const String& url = String::Handle(String::NewSymbol("dart:mirrors"));
5433 const Library& lib = Library::Handle(Library::New(url)); 5433 const Library& lib = Library::Handle(Library::New(url));
5434 lib.Register(); 5434 lib.Register();
5435 const Library& isolate_lib = Library::Handle(Library::IsolateLibrary()); 5435 const Library& isolate_lib = Library::Handle(Library::IsolateLibrary());
5436 lib.AddImport(isolate_lib); 5436 lib.AddImport(isolate_lib);
5437 const Library& wrappers_lib =
5438 Library::Handle(Library::NativeWrappersLibrary());
5439 lib.AddImport(wrappers_lib);
5437 isolate->object_store()->set_mirrors_library(lib); 5440 isolate->object_store()->set_mirrors_library(lib);
5438 } 5441 }
5439 5442
5440 5443
5441 void Library::InitNativeWrappersLibrary(Isolate* isolate) { 5444 void Library::InitNativeWrappersLibrary(Isolate* isolate) {
5442 static const int kNumNativeWrappersClasses = 4; 5445 static const int kNumNativeWrappersClasses = 4;
5443 ASSERT(kNumNativeWrappersClasses > 0 && kNumNativeWrappersClasses < 10); 5446 ASSERT(kNumNativeWrappersClasses > 0 && kNumNativeWrappersClasses < 10);
5444 const String& native_flds_lib_url = String::Handle( 5447 const String& native_flds_lib_url = String::Handle(
5445 String::NewSymbol("dart:nativewrappers")); 5448 String::NewSymbol("dart:nativewrappers"));
5446 Library& native_flds_lib = Library::Handle( 5449 Library& native_flds_lib = Library::Handle(
(...skipping 4665 matching lines...) Expand 10 before | Expand all | Expand 10 after
10112 const String& str = String::Handle(pattern()); 10115 const String& str = String::Handle(pattern());
10113 const char* format = "JSRegExp: pattern=%s flags=%s"; 10116 const char* format = "JSRegExp: pattern=%s flags=%s";
10114 intptr_t len = OS::SNPrint(NULL, 0, format, str.ToCString(), Flags()); 10117 intptr_t len = OS::SNPrint(NULL, 0, format, str.ToCString(), Flags());
10115 char* chars = reinterpret_cast<char*>( 10118 char* chars = reinterpret_cast<char*>(
10116 Isolate::Current()->current_zone()->Allocate(len + 1)); 10119 Isolate::Current()->current_zone()->Allocate(len + 1));
10117 OS::SNPrint(chars, (len + 1), format, str.ToCString(), Flags()); 10120 OS::SNPrint(chars, (len + 1), format, str.ToCString(), Flags());
10118 return chars; 10121 return chars;
10119 } 10122 }
10120 10123
10121 } // namespace dart 10124 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/message_handler.h ('k') | runtime/vm/port.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698