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

Unified Diff: runtime/vm/dart_api_impl.h

Issue 181843007: 1. Added new versions of Api::UnWrapStringHandle Api::UnWrapInstanceHandle to (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 10 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 | « no previous file | runtime/vm/dart_api_impl.cc » ('j') | runtime/vm/dart_api_impl.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/dart_api_impl.h
===================================================================
--- runtime/vm/dart_api_impl.h (revision 33108)
+++ runtime/vm/dart_api_impl.h (working copy)
@@ -18,6 +18,7 @@
class FinalizablePersistentHandle;
class LocalHandle;
class PersistentHandle;
+class ReusableObjectHandleScope;
const char* CanonicalFunction(const char* func);
@@ -122,6 +123,12 @@
CLASS_LIST_FOR_HANDLES(DECLARE_UNWRAP)
#undef DECLARE_UNWRAP
+ // Unwraps the raw object from the handle using a reused handle.
+ static const String& UnwrapStringHandle(
+ const ReusableObjectHandleScope& reused, Dart_Handle object);
+ static const Instance& UnwrapInstanceHandle(
+ const ReusableObjectHandleScope& reused, Dart_Handle object);
+
// Validates and converts the passed in handle as a persistent handle.
static PersistentHandle* UnwrapAsPersistentHandle(
Dart_PersistentHandle object);
@@ -205,15 +212,15 @@
static void InitHandles();
// Helper function to get the peer value of an external string object.
- static bool StringGetPeerHelper(Dart_NativeArguments args,
+ static bool StringGetPeerHelper(NativeArguments* args,
int arg_index,
void** peer);
// Helper function to get the native field from a native receiver argument.
- static bool GetNativeReceiver(Dart_NativeArguments args, intptr_t* value);
+ static bool GetNativeReceiver(NativeArguments* args, intptr_t* value);
// Helper function to get the boolean value of a Bool native argument.
- static bool GetNativeBooleanArgument(Dart_NativeArguments args,
+ static bool GetNativeBooleanArgument(NativeArguments* args,
int arg_index,
bool* value);
« no previous file with comments | « no previous file | runtime/vm/dart_api_impl.cc » ('j') | runtime/vm/dart_api_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698