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

Unified Diff: lib/isolate.cc

Issue 9616044: Adds new apis Dart_GetField/Dart_SetField. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 9 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
Index: lib/isolate.cc
===================================================================
--- lib/isolate.cc (revision 4977)
+++ lib/isolate.cc (working copy)
@@ -85,8 +85,10 @@
RawObject* ReceivePortCreate(intptr_t port_id) {
Library& isolate_lib = Library::Handle(Library::IsolateLibrary());
ASSERT(!isolate_lib.IsNull());
+ const String& public_class_name =
+ String::Handle(String::NewSymbol("_ReceivePortImpl"));
const String& class_name =
- String::Handle(isolate_lib.PrivateName("_ReceivePortImpl"));
+ String::Handle(isolate_lib.PrivateName(public_class_name));
const String& function_name =
String::Handle(String::NewSymbol("_get_or_create"));
const int kNumArguments = 1;
@@ -113,8 +115,10 @@
static RawObject* SendPortCreate(intptr_t port_id) {
Library& isolate_lib = Library::Handle(Library::IsolateLibrary());
ASSERT(!isolate_lib.IsNull());
+ const String& public_class_name =
+ String::Handle(String::NewSymbol("_ReceivePortImpl"));
const String& class_name =
- String::Handle(isolate_lib.PrivateName("_SendPortImpl"));
+ String::Handle(isolate_lib.PrivateName(public_class_name));
const String& function_name = String::Handle(String::NewSymbol("_create"));
const int kNumArguments = 1;
const Array& kNoArgumentNames = Array::Handle();

Powered by Google App Engine
This is Rietveld 408576698