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

Unified Diff: runtime/bin/stdin.cc

Issue 22303002: Auto create ApiLocalScope before calling native functions, this ensures that (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 4 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/socket.cc ('k') | runtime/vm/ast.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/stdin.cc
===================================================================
--- runtime/bin/stdin.cc (revision 25822)
+++ runtime/bin/stdin.cc (working copy)
@@ -18,27 +18,21 @@
namespace bin {
void FUNCTION_NAME(Stdin_ReadByte)(Dart_NativeArguments args) {
- Dart_EnterScope();
Dart_SetReturnValue(args, Dart_NewInteger(Stdin::ReadByte()));
- Dart_ExitScope();
}
void FUNCTION_NAME(Stdin_SetEchoMode)(Dart_NativeArguments args) {
- Dart_EnterScope();
bool enabled = DartUtils::GetBooleanValue(Dart_GetNativeArgument(args, 1));
Stdin::SetEchoMode(enabled);
Dart_SetReturnValue(args, Dart_Null());
- Dart_ExitScope();
}
void FUNCTION_NAME(Stdin_SetLineMode)(Dart_NativeArguments args) {
- Dart_EnterScope();
bool enabled = DartUtils::GetBooleanValue(Dart_GetNativeArgument(args, 1));
Stdin::SetLineMode(enabled);
Dart_SetReturnValue(args, Dart_Null());
- Dart_ExitScope();
}
} // namespace bin
« no previous file with comments | « runtime/bin/socket.cc ('k') | runtime/vm/ast.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698