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

Unified Diff: runtime/bin/dartutils.cc

Issue 9642003: Start using Dart_SetField and Dart_GetField in the vm. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
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
« no previous file with comments | « runtime/bin/dartutils.h ('k') | runtime/bin/directory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/dartutils.cc
===================================================================
--- runtime/bin/dartutils.cc (revision 5182)
+++ runtime/bin/dartutils.cc (working copy)
@@ -68,32 +68,31 @@
}
-void DartUtils::SetIntegerInstanceField(Dart_Handle handle,
- const char* name,
- intptr_t val) {
- Dart_Handle result = Dart_SetInstanceField(handle,
- Dart_NewString(name),
- Dart_NewInteger(val));
+void DartUtils::SetIntegerField(Dart_Handle handle,
+ const char* name,
+ intptr_t val) {
+ Dart_Handle result = Dart_SetField(handle,
+ Dart_NewString(name),
+ Dart_NewInteger(val));
ASSERT(!Dart_IsError(result));
}
-intptr_t DartUtils::GetIntegerInstanceField(Dart_Handle handle,
+intptr_t DartUtils::GetIntegerField(Dart_Handle handle,
const char* name) {
- Dart_Handle result =
- Dart_GetInstanceField(handle, Dart_NewString(name));
+ Dart_Handle result = Dart_GetField(handle, Dart_NewString(name));
ASSERT(!Dart_IsError(result));
intptr_t value = DartUtils::GetIntegerValue(result);
return value;
}
-void DartUtils::SetStringInstanceField(Dart_Handle handle,
- const char* name,
- const char* val) {
- Dart_Handle result = Dart_SetInstanceField(handle,
- Dart_NewString(name),
- Dart_NewString(val));
+void DartUtils::SetStringField(Dart_Handle handle,
+ const char* name,
+ const char* val) {
+ Dart_Handle result = Dart_SetField(handle,
+ Dart_NewString(name),
+ Dart_NewString(val));
ASSERT(!Dart_IsError(result));
}
« no previous file with comments | « runtime/bin/dartutils.h ('k') | runtime/bin/directory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698