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

Unified Diff: runtime/bin/builtin_in.cc

Issue 8492007: Implementation of Platform class that exposes information about the machine and the OS. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/bin.gypi ('k') | runtime/bin/platform.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/builtin_in.cc
diff --git a/runtime/bin/builtin_in.cc b/runtime/bin/builtin_in.cc
index 0d810f91b1cce9c9d91b524c54775a2edb52ad0e..fffcea4235b0253ecb224ec6aad6ecd9a7c04b22 100644
--- a/runtime/bin/builtin_in.cc
+++ b/runtime/bin/builtin_in.cc
@@ -22,12 +22,13 @@ static const char Builtin_source_[] = {
// List all native functions implemented in standalone dart that is used
// to inject additional functionality e.g: Logger, file I/O, socket I/O etc.
#define BUILTIN_NATIVE_LIST(V) \
- V(Logger_PrintString, 1) \
- V(Exit, 1) \
V(Directory_List, 7) \
V(Directory_Exists, 2) \
V(Directory_Create, 2) \
V(Directory_Delete, 2) \
+ V(EventHandler_Start, 1) \
+ V(EventHandler_SendData, 4) \
+ V(Exit, 1) \
V(File_Open, 2) \
V(File_Exists, 1) \
V(File_Close, 1) \
@@ -41,18 +42,20 @@ static const char Builtin_source_[] = {
V(File_Flush, 1) \
V(File_Create, 1) \
V(File_FullPath, 1) \
- V(EventHandler_Start, 1) \
- V(EventHandler_SendData, 4) \
+ V(Logger_PrintString, 1) \
+ V(Platform_NumberOfProcessors, 0) \
+ V(Platform_OperatingSystem, 0) \
+ V(Platform_PathSeparator, 0) \
V(Process_Start, 8) \
V(Process_Kill, 2) \
V(Process_Exit, 2) \
+ V(ServerSocket_CreateBindListen, 4) \
+ V(ServerSocket_Accept, 2) \
V(Socket_CreateConnect, 3) \
V(Socket_Available, 1) \
V(Socket_ReadList, 4) \
V(Socket_WriteList, 4) \
- V(Socket_GetPort, 1) \
- V(ServerSocket_CreateBindListen, 4) \
- V(ServerSocket_Accept, 2) \
+ V(Socket_GetPort, 1)
BUILTIN_NATIVE_LIST(DECLARE_FUNCTION);
« no previous file with comments | « runtime/bin/bin.gypi ('k') | runtime/bin/platform.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698