Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
sxychenjing
engine
提交
83034619
E
engine
项目概览
sxychenjing
/
engine
与 Fork 源项目一致
从无法访问的项目Fork
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
E
engine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
83034619
编写于
10月 24, 2016
作者:
R
Ryan Macnak
提交者:
GitHub
10月 24, 2016
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Roll Dart VM. (#3167)
上级
7353495f
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
20 addition
and
21 deletion
+20
-21
DEPS
DEPS
+2
-2
lib/snapshot/snapshot.c.tmpl
lib/snapshot/snapshot.c.tmpl
+2
-2
runtime/dart_controller.cc
runtime/dart_controller.cc
+1
-1
runtime/dart_init.cc
runtime/dart_init.cc
+7
-8
runtime/dart_init.h
runtime/dart_init.h
+4
-4
snapshotter/main.cc
snapshotter/main.cc
+4
-4
未找到文件。
DEPS
浏览文件 @
83034619
...
...
@@ -27,8 +27,8 @@ vars = {
# Note: When updating the Dart revision, ensure that all entries that are
# dependencies of dart are also updated
'dart_revision': '
cfbf1a511e6e64d35789e34e161a7b10a88a439c
',
'dart_boringssl_gen_revision': '
de218d3e1b6d210e1d132ecc748e0125d1020ac9
',
'dart_revision': '
9f0e4e1162298625c2d90213076c3dcac4dc41a5
',
'dart_boringssl_gen_revision': '
62c20247d582444cb2804f9ea4e3abaa6e47f6a5
',
'dart_boringssl_revision': '8d343b44bbab829d1a28fdef650ca95f7db4412e',
'dart_observatory_packages_revision': '26aad88f1c1915d39bbcbff3cad589e2402fdcf1',
'dart_root_certificates_revision': 'aed07942ce98507d2be28cbd29e879525410c7fc',
...
...
lib/snapshot/snapshot.c.tmpl
浏览文件 @
83034619
...
...
@@ -10,12 +10,12 @@
// generated snapshot binary file for the vm isolate.
// This string forms the content of the dart vm isolate snapshot which
// is loaded into the vm isolate.
const uint8_t k
DartVmIsolateSnapshotBuffer
[]
const uint8_t k
VmIsolateSnapshot
[]
__attribute__((visibility("default"), aligned(8), used)) = { %s };
// The string on the next line will be filled in with the contents of the
// generated snapshot binary file for a regular dart isolate.
// This string forms the content of a regular dart isolate snapshot which
// is loaded into an isolate when it is created.
const uint8_t k
DartIsolateSnapshotBuffer
[]
const uint8_t k
IsolateSnapshot
[]
__attribute__((visibility("default"), aligned(8), used)) = { %s };
runtime/dart_controller.cc
浏览文件 @
83034619
...
...
@@ -137,7 +137,7 @@ void DartController::CreateIsolateFor(const std::string& script_uri,
char
*
error
=
nullptr
;
Dart_Isolate
isolate
=
Dart_CreateIsolate
(
script_uri
.
c_str
(),
"main"
,
reinterpret_cast
<
uint8_t
*>
(
DART_SYMBOL
(
k
DartIsolateSnapshotBuffer
)),
reinterpret_cast
<
uint8_t
*>
(
DART_SYMBOL
(
k
IsolateSnapshot
)),
nullptr
,
static_cast
<
tonic
::
DartState
*>
(
state
.
get
()),
&
error
);
FTL_CHECK
(
isolate
)
<<
error
;
ui_dart_state_
=
state
.
release
();
...
...
runtime/dart_init.cc
浏览文件 @
83034619
...
...
@@ -210,7 +210,7 @@ Dart_Isolate ServiceIsolateCreateCallback(const char* script_uri,
tonic
::
DartState
*
dart_state
=
new
tonic
::
DartState
();
Dart_Isolate
isolate
=
Dart_CreateIsolate
(
script_uri
,
"main"
,
reinterpret_cast
<
const
uint8_t
*>
(
DART_SYMBOL
(
k
DartIsolateSnapshotBuffer
)),
reinterpret_cast
<
const
uint8_t
*>
(
DART_SYMBOL
(
k
IsolateSnapshot
)),
nullptr
,
dart_state
,
error
);
FTL_CHECK
(
isolate
)
<<
error
;
dart_state
->
SetIsolate
(
isolate
);
...
...
@@ -287,7 +287,7 @@ Dart_Isolate IsolateCreateCallback(const char* script_uri,
Dart_Isolate
isolate
=
Dart_CreateIsolate
(
script_uri
,
main
,
reinterpret_cast
<
uint8_t
*>
(
DART_SYMBOL
(
k
DartIsolateSnapshotBuffer
)),
reinterpret_cast
<
uint8_t
*>
(
DART_SYMBOL
(
k
IsolateSnapshot
)),
nullptr
,
dart_state
,
error
);
FTL_CHECK
(
isolate
)
<<
error
;
dart_state
->
SetIsolate
(
isolate
);
...
...
@@ -384,9 +384,8 @@ DartJniIsolateData* GetDartJniDataForCurrentIsolate() {
#if DART_ALLOW_DYNAMIC_RESOLUTION
constexpr
char
kDartVmIsolateSnapshotBufferName
[]
=
"kDartVmIsolateSnapshotBuffer"
;
constexpr
char
kDartIsolateSnapshotBufferName
[]
=
"kDartIsolateSnapshotBuffer"
;
constexpr
char
kVmIsolateSnapshotName
[]
=
"kVmIsolateSnapshot"
;
constexpr
char
kIsolateSnapshotName
[]
=
"kIsolateSnapshot"
;
constexpr
char
kInstructionsSnapshotName
[]
=
"kInstructionsSnapshot"
;
constexpr
char
kDataSnapshotName
[]
=
"kDataSnapshot"
;
...
...
@@ -441,9 +440,9 @@ struct SymbolAsset {
};
static
SymbolAsset
g_symbol_assets
[]
=
{
{
k
DartVmIsolateSnapshotBuffer
Name
,
"snapshot_aot_vmisolate"
,
false
,
{
k
VmIsolateSnapshot
Name
,
"snapshot_aot_vmisolate"
,
false
,
offsetof
(
Settings
,
aot_vm_isolate_snapshot_file_name
)},
{
k
DartIsolateSnapshotBuffer
Name
,
"snapshot_aot_isolate"
,
false
,
{
k
IsolateSnapshot
Name
,
"snapshot_aot_isolate"
,
false
,
offsetof
(
Settings
,
aot_isolate_snapshot_file_name
)},
{
kInstructionsSnapshotName
,
"snapshot_aot_instr"
,
true
,
offsetof
(
Settings
,
aot_instructions_blob_file_name
)},
...
...
@@ -657,7 +656,7 @@ void InitDartVM() {
Dart_InitializeParams
params
=
{};
params
.
version
=
DART_INITIALIZE_PARAMS_CURRENT_VERSION
;
params
.
vm_isolate_snapshot
=
reinterpret_cast
<
uint8_t
*>
(
DART_SYMBOL
(
k
DartVmIsolateSnapshotBuffer
));
reinterpret_cast
<
uint8_t
*>
(
DART_SYMBOL
(
k
VmIsolateSnapshot
));
params
.
instructions_snapshot
=
PrecompiledInstructionsSymbolIfPresent
();
params
.
data_snapshot
=
PrecompiledDataSnapshotSymbolIfPresent
();
params
.
create
=
IsolateCreateCallback
;
...
...
runtime/dart_init.h
浏览文件 @
83034619
...
...
@@ -18,8 +18,8 @@ namespace blink {
#if DART_ALLOW_DYNAMIC_RESOLUTION
extern
const
char
k
DartVmIsolateSnapshotBuffer
Name
[];
extern
const
char
k
DartIsolateSnapshotBuffer
Name
[];
extern
const
char
k
VmIsolateSnapshot
Name
[];
extern
const
char
k
IsolateSnapshot
Name
[];
extern
const
char
kInstructionsSnapshotName
[];
extern
const
char
kDataSnapshotName
[];
...
...
@@ -30,8 +30,8 @@ void* _DartSymbolLookup(const char* symbol_name);
#else // DART_ALLOW_DYNAMIC_RESOLUTION
extern
"C"
{
extern
void
*
k
DartVmIsolateSnapshotBuffer
;
extern
void
*
k
DartIsolateSnapshotBuffer
;
extern
void
*
k
VmIsolateSnapshot
;
extern
void
*
k
IsolateSnapshot
;
}
#define DART_SYMBOL(symbol) (&symbol)
...
...
snapshotter/main.cc
浏览文件 @
83034619
...
...
@@ -22,8 +22,8 @@
#include "lib/tonic/file_loader/file_loader.h"
extern
"C"
{
extern
const
uint8_t
k
DartVmIsolateSnapshotBuffer
[];
extern
const
uint8_t
k
DartIsolateSnapshotBuffer
[];
extern
const
uint8_t
k
VmIsolateSnapshot
[];
extern
const
uint8_t
k
IsolateSnapshot
[];
}
namespace
{
...
...
@@ -89,7 +89,7 @@ void InitDartVM() {
FTL_CHECK
(
Dart_SetVMFlags
(
arraysize
(
kDartArgs
),
kDartArgs
));
Dart_InitializeParams
params
=
{};
params
.
version
=
DART_INITIALIZE_PARAMS_CURRENT_VERSION
;
params
.
vm_isolate_snapshot
=
k
DartVmIsolateSnapshotBuffer
;
params
.
vm_isolate_snapshot
=
k
VmIsolateSnapshot
;
char
*
error
=
Dart_Initialize
(
&
params
);
if
(
error
)
FTL_LOG
(
FATAL
)
<<
error
;
...
...
@@ -98,7 +98,7 @@ void InitDartVM() {
Dart_Isolate
CreateDartIsolate
()
{
char
*
error
=
nullptr
;
Dart_Isolate
isolate
=
Dart_CreateIsolate
(
"dart:snapshot"
,
"main"
,
k
DartIsolateSnapshotBuffer
,
Dart_CreateIsolate
(
"dart:snapshot"
,
"main"
,
k
IsolateSnapshot
,
nullptr
,
nullptr
,
&
error
);
FTL_CHECK
(
isolate
)
<<
error
;
Dart_ExitIsolate
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录