提交 4a0ef22f 编写于 作者: C Chinmay Garde

Rename: DART_ALLOW_DYNAMIC_LOADING to DART_ALLOW_DYNAMIC_RESOLUTION

上级 f5aae58d
......@@ -177,7 +177,7 @@ Dart_Isolate IsolateCreateCallback(const char* script_uri,
} // namespace
#if DART_ALLOW_DYNAMIC_LOADING
#if DART_ALLOW_DYNAMIC_RESOLUTION
const char* kDartVmIsolateSnapshotBufferName = "kDartVmIsolateSnapshotBuffer";
const char* kDartIsolateSnapshotBufferName = "kDartIsolateSnapshotBuffer";
......@@ -227,7 +227,7 @@ bool IsRunningPrecompiledCode() {
return PrecompiledInstructionsSymbolIfPresent() != nullptr;
}
#else // DART_ALLOW_DYNAMIC_LOADING
#else // DART_ALLOW_DYNAMIC_RESOLUTION
static const uint8_t* PrecompiledInstructionsSymbolIfPresent() {
return nullptr;
......@@ -237,7 +237,7 @@ bool IsRunningPrecompiledCode() {
return false;
}
#endif // DART_ALLOW_DYNAMIC_LOADING
#endif // DART_ALLOW_DYNAMIC_RESOLUTION
void InitDartVM() {
dart::bin::BootstrapDartIo();
......
......@@ -10,9 +10,9 @@
namespace blink {
#define DART_ALLOW_DYNAMIC_LOADING (WTF_OS_IOS || WTF_OS_MACOSX)
#define DART_ALLOW_DYNAMIC_RESOLUTION (WTF_OS_IOS || WTF_OS_MACOSX)
#if DART_ALLOW_DYNAMIC_LOADING
#if DART_ALLOW_DYNAMIC_RESOLUTION
extern const char* kDartVmIsolateSnapshotBufferName;
extern const char* kDartIsolateSnapshotBufferName;
......@@ -22,7 +22,7 @@ void* _DartSymbolLookup(const char* symbol_name);
#define DART_SYMBOL(symbol) _DartSymbolLookup(symbol##Name)
#else // DART_ALLOW_DYNAMIC_LOADING
#else // DART_ALLOW_DYNAMIC_RESOLUTION
extern "C" {
extern uint8_t* kDartVmIsolateSnapshotBuffer;
......@@ -31,7 +31,7 @@ extern uint8_t* kDartIsolateSnapshotBuffer;
#define DART_SYMBOL(symbol) (symbol)
#endif // DART_ALLOW_DYNAMIC_LOADING
#endif // DART_ALLOW_DYNAMIC_RESOLUTION
bool IsRunningPrecompiledCode();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册