| Index: runtime/bin/builtin_natives.cc
|
| ===================================================================
|
| --- runtime/bin/builtin_natives.cc (revision 31283)
|
| +++ runtime/bin/builtin_natives.cc (working copy)
|
| @@ -85,11 +85,14 @@
|
| * Looks up native functions in both libdart_builtin and libdart_io.
|
| */
|
| Dart_NativeFunction Builtin::NativeLookup(Dart_Handle name,
|
| - int argument_count) {
|
| + int argument_count,
|
| + bool* auto_setup_scope) {
|
| const char* function_name = NULL;
|
| Dart_Handle result = Dart_StringToCString(name, &function_name);
|
| DART_CHECK_VALID(result);
|
| ASSERT(function_name != NULL);
|
| + ASSERT(auto_setup_scope != NULL);
|
| + *auto_setup_scope = true;
|
| int num_entries = sizeof(BuiltinEntries) / sizeof(struct NativeEntries);
|
| for (int i = 0; i < num_entries; i++) {
|
| struct NativeEntries* entry = &(BuiltinEntries[i]);
|
| @@ -98,7 +101,7 @@
|
| return reinterpret_cast<Dart_NativeFunction>(entry->function_);
|
| }
|
| }
|
| - return IONativeLookup(name, argument_count);
|
| + return IONativeLookup(name, argument_count, auto_setup_scope);
|
| }
|
|
|
|
|
|
|