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

Side by Side Diff: runtime/vm/bootstrap_natives.cc

Issue 9691020: Remove unused variable. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/bootstrap.h" 5 #include "vm/bootstrap.h"
6 6
7 #include "include/dart_api.h" 7 #include "include/dart_api.h"
8 8
9 #include "vm/bootstrap_natives.h" 9 #include "vm/bootstrap_natives.h"
10 #include "vm/dart_api_impl.h" 10 #include "vm/dart_api_impl.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 // TODO(regis): Should we pass a buffer for error reporting? 44 // TODO(regis): Should we pass a buffer for error reporting?
45 return NULL; 45 return NULL;
46 } 46 }
47 } 47 }
48 } 48 }
49 return NULL; 49 return NULL;
50 } 50 }
51 51
52 52
53 void Bootstrap::SetupNativeResolver() { 53 void Bootstrap::SetupNativeResolver() {
54 Isolate* isolate = Isolate::Current();
55 Library& library = Library::Handle(); 54 Library& library = Library::Handle();
56 55
57 library = Library::CoreLibrary(); 56 library = Library::CoreLibrary();
58 ASSERT(!library.IsNull()); 57 ASSERT(!library.IsNull());
59 library.set_native_entry_resolver( 58 library.set_native_entry_resolver(
60 reinterpret_cast<Dart_NativeEntryResolver>(NativeLookup)); 59 reinterpret_cast<Dart_NativeEntryResolver>(NativeLookup));
61 60
62 library = Library::CoreImplLibrary(); 61 library = Library::CoreImplLibrary();
63 ASSERT(!library.IsNull()); 62 ASSERT(!library.IsNull());
64 library.set_native_entry_resolver( 63 library.set_native_entry_resolver(
65 reinterpret_cast<Dart_NativeEntryResolver>(NativeLookup)); 64 reinterpret_cast<Dart_NativeEntryResolver>(NativeLookup));
66 65
67 library = Library::MirrorsLibrary(); 66 library = Library::MirrorsLibrary();
68 ASSERT(!library.IsNull()); 67 ASSERT(!library.IsNull());
69 library.set_native_entry_resolver( 68 library.set_native_entry_resolver(
70 reinterpret_cast<Dart_NativeEntryResolver>(NativeLookup)); 69 reinterpret_cast<Dart_NativeEntryResolver>(NativeLookup));
71 70
72 library = Library::IsolateLibrary(); 71 library = Library::IsolateLibrary();
73 ASSERT(!library.IsNull()); 72 ASSERT(!library.IsNull());
74 library.set_native_entry_resolver( 73 library.set_native_entry_resolver(
75 reinterpret_cast<Dart_NativeEntryResolver>(NativeLookup)); 74 reinterpret_cast<Dart_NativeEntryResolver>(NativeLookup));
76 } 75 }
77 76
78 } // namespace dart 77 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698