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

Unified Diff: runtime/vm/object.cc

Issue 10386107: Implement spawnUri from dart:isolate. This function allows us to (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/object_store.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
===================================================================
--- runtime/vm/object.cc (revision 7714)
+++ runtime/vm/object.cc (working copy)
@@ -4589,11 +4589,6 @@
}
-void Library::set_import_map(const Array& map) const {
- StorePointer(&raw_ptr()->import_map_, map.raw());
-}
-
-
void Library::SetName(const String& name) const {
// Only set name once.
ASSERT(!Loaded());
@@ -5195,23 +5190,6 @@
}
-RawString* Library::LookupImportMap(const String& ident) const {
- Array& import_map = Array::Handle(this->import_map());
- intptr_t length = import_map.Length();
- intptr_t index = 0;
- String& name = String::Handle();
- while (index < (length - 1)) {
- name ^= import_map.At(index);
- if (name.Equals(ident)) {
- name ^= import_map.At(index + 1);
- return name.raw();
- }
- index += 2;
- }
- return String::null();
-}
-
-
void Library::AddImport(const Library& library) const {
Array& imports = Array::Handle(this->imports());
intptr_t capacity = imports.Length();
@@ -5287,7 +5265,6 @@
result.raw_ptr()->dictionary_ = Array::Empty();
result.raw_ptr()->anonymous_classes_ = Array::Empty();
result.raw_ptr()->num_anonymous_ = 0;
- result.raw_ptr()->import_map_ = Array::Empty();
result.raw_ptr()->imports_ = Array::Empty();
result.raw_ptr()->next_registered_ = Library::null();
result.raw_ptr()->loaded_scripts_ = Array::null();
« 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