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

Side by Side Diff: src/vm/ffi_disabled.cc

Issue 1659163007: Rename fletch -> dartino (Closed) Base URL: https://github.com/dartino/sdk.git@master
Patch Set: address comments Created 4 years, 10 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
« no previous file with comments | « src/vm/ffi.cc ('k') | src/vm/ffi_linux.cc » ('j') | 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) 2015, the Dartino project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dartino 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.md file. 3 // BSD-style license that can be found in the LICENSE.md file.
4 4
5 #ifndef FLETCH_ENABLE_FFI 5 #ifndef DARTINO_ENABLE_FFI
6 6
7 #include "src/vm/ffi.h" 7 #include "src/vm/ffi.h"
8 #include "src/vm/natives.h" 8 #include "src/vm/natives.h"
9 #include "src/shared/assert.h" 9 #include "src/shared/assert.h"
10 10
11 namespace fletch { 11 namespace dartino {
12 12
13 void ForeignFunctionInterface::Setup() {} 13 void ForeignFunctionInterface::Setup() {}
14 14
15 void ForeignFunctionInterface::TearDown() {} 15 void ForeignFunctionInterface::TearDown() {}
16 16
17 void ForeignFunctionInterface::AddDefaultSharedLibrary(const char* library) { 17 void ForeignFunctionInterface::AddDefaultSharedLibrary(const char* library) {
18 FATAL("fletch vm was built without FFI support."); 18 FATAL("dartino vm was built without FFI support.");
19 } 19 }
20 20
21 void* ForeignFunctionInterface::LookupInDefaultLibraries(const char* symbol) { 21 void* ForeignFunctionInterface::LookupInDefaultLibraries(const char* symbol) {
22 UNIMPLEMENTED(); 22 UNIMPLEMENTED();
23 return NULL; 23 return NULL;
24 } 24 }
25 25
26 DefaultLibraryEntry* ForeignFunctionInterface::libraries_ = NULL; 26 DefaultLibraryEntry* ForeignFunctionInterface::libraries_ = NULL;
27 Mutex* ForeignFunctionInterface::mutex_ = NULL; 27 Mutex* ForeignFunctionInterface::mutex_ = NULL;
28 28
29 #define UNIMPLEMENTED_NATIVE(name) \ 29 #define UNIMPLEMENTED_NATIVE(name) \
30 BEGIN_NATIVE(name) { \ 30 BEGIN_NATIVE(name) { \
31 UNIMPLEMENTED(); \ 31 UNIMPLEMENTED(); \
32 return NULL; \ 32 return NULL; \
33 } \ 33 } \
34 END_NATIVE() 34 END_NATIVE()
35 35
36 UNIMPLEMENTED_NATIVE(ForeignLibraryLookup) 36 UNIMPLEMENTED_NATIVE(ForeignLibraryLookup)
37 UNIMPLEMENTED_NATIVE(ForeignLibraryGetFunction) 37 UNIMPLEMENTED_NATIVE(ForeignLibraryGetFunction)
38 UNIMPLEMENTED_NATIVE(ForeignLibraryBundlePath) 38 UNIMPLEMENTED_NATIVE(ForeignLibraryBundlePath)
39 39
40 UNIMPLEMENTED_NATIVE(ForeignErrno) 40 UNIMPLEMENTED_NATIVE(ForeignErrno)
41 41
42 } // namespace fletch 42 } // namespace dartino
43 43
44 #endif // not FLETCH_ENABLE_FFI 44 #endif // not DARTINO_ENABLE_FFI
OLDNEW
« no previous file with comments | « src/vm/ffi.cc ('k') | src/vm/ffi_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698