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

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, 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 | Annotate | Revision Log
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 5383 matching lines...) Expand 10 before | Expand all | Expand 10 after
5394 isolate->object_store()->set_isolate_library(lib); 5394 isolate->object_store()->set_isolate_library(lib);
5395 } 5395 }
5396 5396
5397 5397
5398 void Library::InitMirrorsLibrary(Isolate* isolate) { 5398 void Library::InitMirrorsLibrary(Isolate* isolate) {
5399 const String& url = String::Handle(String::NewSymbol("dart:mirrors")); 5399 const String& url = String::Handle(String::NewSymbol("dart:mirrors"));
5400 const Library& lib = Library::Handle(Library::New(url)); 5400 const Library& lib = Library::Handle(Library::New(url));
5401 lib.Register(); 5401 lib.Register();
5402 const Library& isolate_lib = Library::Handle(Library::IsolateLibrary()); 5402 const Library& isolate_lib = Library::Handle(Library::IsolateLibrary());
5403 lib.AddImport(isolate_lib); 5403 lib.AddImport(isolate_lib);
5404 const Library& wrappers_lib =
5405 Library::Handle(Library::NativeWrappersLibrary());
5406 lib.AddImport(wrappers_lib);
5404 isolate->object_store()->set_mirrors_library(lib); 5407 isolate->object_store()->set_mirrors_library(lib);
5405 } 5408 }
5406 5409
5407 5410
5408 void Library::InitNativeWrappersLibrary(Isolate* isolate) { 5411 void Library::InitNativeWrappersLibrary(Isolate* isolate) {
5409 static const int kNumNativeWrappersClasses = 4; 5412 static const int kNumNativeWrappersClasses = 4;
5410 ASSERT(kNumNativeWrappersClasses > 0 && kNumNativeWrappersClasses < 10); 5413 ASSERT(kNumNativeWrappersClasses > 0 && kNumNativeWrappersClasses < 10);
5411 const String& native_flds_lib_url = String::Handle( 5414 const String& native_flds_lib_url = String::Handle(
5412 String::NewSymbol("dart:nativewrappers")); 5415 String::NewSymbol("dart:nativewrappers"));
5413 Library& native_flds_lib = Library::Handle( 5416 Library& native_flds_lib = Library::Handle(
(...skipping 4656 matching lines...) Expand 10 before | Expand all | Expand 10 after
10070 const String& str = String::Handle(pattern()); 10073 const String& str = String::Handle(pattern());
10071 const char* format = "JSRegExp: pattern=%s flags=%s"; 10074 const char* format = "JSRegExp: pattern=%s flags=%s";
10072 intptr_t len = OS::SNPrint(NULL, 0, format, str.ToCString(), Flags()); 10075 intptr_t len = OS::SNPrint(NULL, 0, format, str.ToCString(), Flags());
10073 char* chars = reinterpret_cast<char*>( 10076 char* chars = reinterpret_cast<char*>(
10074 Isolate::Current()->current_zone()->Allocate(len + 1)); 10077 Isolate::Current()->current_zone()->Allocate(len + 1));
10075 OS::SNPrint(chars, (len + 1), format, str.ToCString(), Flags()); 10078 OS::SNPrint(chars, (len + 1), format, str.ToCString(), Flags());
10076 return chars; 10079 return chars;
10077 } 10080 }
10078 10081
10079 } // namespace dart 10082 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698