| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "tonic/dart_builtin.h" | 5 #include "tonic/dart_builtin.h" |
| 6 | 6 |
| 7 #include <stdlib.h> | 7 #include <stdlib.h> |
| 8 #include <string.h> | 8 #include <string.h> |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "tonic/dart_converter.h" | 11 #include "tonic/dart_converter.h" |
| 12 | 12 |
| 13 namespace blink { | 13 namespace tonic { |
| 14 | 14 |
| 15 DartBuiltin::DartBuiltin(const Natives* natives, size_t count) | 15 DartBuiltin::DartBuiltin(const Natives* natives, size_t count) |
| 16 : natives_(natives), count_(count) { | 16 : natives_(natives), count_(count) { |
| 17 } | 17 } |
| 18 | 18 |
| 19 DartBuiltin::~DartBuiltin() { | 19 DartBuiltin::~DartBuiltin() { |
| 20 } | 20 } |
| 21 | 21 |
| 22 Dart_NativeFunction DartBuiltin::Resolver(Dart_Handle name, | 22 Dart_NativeFunction DartBuiltin::Resolver(Dart_Handle name, |
| 23 int argument_count, | 23 int argument_count, |
| (...skipping 22 matching lines...) Expand all Loading... |
| 46 } | 46 } |
| 47 return nullptr; | 47 return nullptr; |
| 48 } | 48 } |
| 49 | 49 |
| 50 Dart_Handle DartBuiltin::LookupLibrary(const char* name) { | 50 Dart_Handle DartBuiltin::LookupLibrary(const char* name) { |
| 51 Dart_Handle library = Dart_LookupLibrary(ToDart(name)); | 51 Dart_Handle library = Dart_LookupLibrary(ToDart(name)); |
| 52 DCHECK(!Dart_IsError(library)); | 52 DCHECK(!Dart_IsError(library)); |
| 53 return library; | 53 return library; |
| 54 } | 54 } |
| 55 | 55 |
| 56 } // namespace blink | 56 } // namespace tonic |
| OLD | NEW |