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

Side by Side Diff: runtime/lib/isolate.cc

Issue 50523018: Cleanup StaticResolveType, it does not seem to be used anywhere. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 1 month 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 | « no previous file | runtime/vm/dart_api_impl.cc » ('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 "platform/assert.h" 5 #include "platform/assert.h"
6 #include "vm/bootstrap_natives.h" 6 #include "vm/bootstrap_natives.h"
7 #include "vm/class_finalizer.h" 7 #include "vm/class_finalizer.h"
8 #include "vm/dart.h" 8 #include "vm/dart.h"
9 #include "vm/dart_api_impl.h" 9 #include "vm/dart_api_impl.h"
10 #include "vm/dart_entry.h" 10 #include "vm/dart_entry.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 Library& isolate_lib = Library::Handle(Library::IsolateLibrary()); 53 Library& isolate_lib = Library::Handle(Library::IsolateLibrary());
54 ASSERT(!isolate_lib.IsNull()); 54 ASSERT(!isolate_lib.IsNull());
55 const String& class_name = 55 const String& class_name =
56 String::Handle(isolate_lib.PrivateName(Symbols::_RawReceivePortImpl())); 56 String::Handle(isolate_lib.PrivateName(Symbols::_RawReceivePortImpl()));
57 const String& function_name = 57 const String& function_name =
58 String::Handle(isolate_lib.PrivateName(Symbols::_get_or_create())); 58 String::Handle(isolate_lib.PrivateName(Symbols::_get_or_create()));
59 func = Resolver::ResolveStatic(isolate_lib, 59 func = Resolver::ResolveStatic(isolate_lib,
60 class_name, 60 class_name,
61 function_name, 61 function_name,
62 kNumArguments, 62 kNumArguments,
63 Object::empty_array(), 63 Object::empty_array());
64 Resolver::kIsQualified);
65 ASSERT(!func.IsNull()); 64 ASSERT(!func.IsNull());
66 isolate->object_store()->set_receive_port_create_function(func); 65 isolate->object_store()->set_receive_port_create_function(func);
67 } 66 }
68 const Array& args = Array::Handle(isolate, Array::New(kNumArguments)); 67 const Array& args = Array::Handle(isolate, Array::New(kNumArguments));
69 args.SetAt(0, Integer::Handle(isolate, Integer::New(port_id))); 68 args.SetAt(0, Integer::Handle(isolate, Integer::New(port_id)));
70 const Object& result = 69 const Object& result =
71 Object::Handle(isolate, DartEntry::InvokeFunction(func, args)); 70 Object::Handle(isolate, DartEntry::InvokeFunction(func, args));
72 if (!result.IsError()) { 71 if (!result.IsError()) {
73 PortMap::SetLive(port_id); 72 PortMap::SetLive(port_id);
74 } 73 }
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 263
265 DEFINE_NATIVE_ENTRY(Isolate_mainPort, 0) { 264 DEFINE_NATIVE_ENTRY(Isolate_mainPort, 0) {
266 const Object& port = Object::Handle(ReceivePortCreate(isolate->main_port())); 265 const Object& port = Object::Handle(ReceivePortCreate(isolate->main_port()));
267 if (port.IsError()) { 266 if (port.IsError()) {
268 Exceptions::PropagateError(Error::Cast(port)); 267 Exceptions::PropagateError(Error::Cast(port));
269 } 268 }
270 return port.raw(); 269 return port.raw();
271 } 270 }
272 271
273 } // namespace dart 272 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698