| Index: runtime/bin/builtin_gen_snapshot.cc
|
| diff --git a/runtime/bin/builtin_gen_snapshot.cc b/runtime/bin/builtin_gen_snapshot.cc
|
| index 965a86280552f2432bb322d2e1766b9fa85c0a78..3e25004ec2c9d9fe669d66aab57d8ae2afb0a942 100644
|
| --- a/runtime/bin/builtin_gen_snapshot.cc
|
| +++ b/runtime/bin/builtin_gen_snapshot.cc
|
| @@ -49,6 +49,18 @@ Dart_NativeFunction Builtin::NativeLookup(Dart_Handle name,
|
| }
|
|
|
|
|
| +const uint8_t* Builtin::NativeSymbol(Dart_NativeFunction nf) {
|
| + int num_entries = sizeof(BuiltinEntries) / sizeof(struct NativeEntries);
|
| + for (int i = 0; i < num_entries; i++) {
|
| + struct NativeEntries* entry = &(BuiltinEntries[i]);
|
| + if (reinterpret_cast<Dart_NativeFunction>(entry->function_) == nf) {
|
| + return reinterpret_cast<const uint8_t*>(entry->name_);
|
| + }
|
| + }
|
| + return NULL;
|
| +}
|
| +
|
| +
|
| // Implementation of native functions which are used for some
|
| // test/debug functionality in standalone dart mode.
|
| void FUNCTION_NAME(Logger_PrintString)(Dart_NativeArguments args) {
|
|
|