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

Unified Diff: runtime/bin/file.cc

Issue 296403005: Show actualy FD for files in Observatory. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add dart2js patch function. Created 6 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/bin/file.h ('k') | runtime/bin/file_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/file.cc
diff --git a/runtime/bin/file.cc b/runtime/bin/file.cc
index e4548a51ec4903933bb6f3daa29a64d97660f5d5..a9b13fbc325ac63393e601cf5efa375ead0521b8 100644
--- a/runtime/bin/file.cc
+++ b/runtime/bin/file.cc
@@ -111,6 +111,13 @@ void FUNCTION_NAME(File_Close)(Dart_NativeArguments args) {
}
+void FUNCTION_NAME(File_GetFD)(Dart_NativeArguments args) {
+ File* file = GetFilePointer(Dart_GetNativeArgument(args, 0));
+ ASSERT(file != NULL);
+ Dart_SetReturnValue(args, Dart_NewInteger(file->GetFD()));
+}
+
+
void FUNCTION_NAME(File_ReadByte)(Dart_NativeArguments args) {
File* file = GetFilePointer(Dart_GetNativeArgument(args, 0));
ASSERT(file != NULL);
« no previous file with comments | « runtime/bin/file.h ('k') | runtime/bin/file_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698