Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
35663fc8
D
dragonwell8_hotspot
项目概览
openanolis
/
dragonwell8_hotspot
通知
2
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_hotspot
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
35663fc8
编写于
6月 25, 2014
作者:
S
stefank
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8047326: Consolidate all CompiledIC::CompiledIC implementations and move it to compiledIC.cpp
Reviewed-by: vlivanov, ehelin
上级
f1dae986
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
24 addition
and
112 deletion
+24
-112
src/cpu/ppc/vm/compiledIC_ppc.cpp
src/cpu/ppc/vm/compiledIC_ppc.cpp
+0
-28
src/cpu/sparc/vm/compiledIC_sparc.cpp
src/cpu/sparc/vm/compiledIC_sparc.cpp
+0
-28
src/cpu/x86/vm/compiledIC_x86.cpp
src/cpu/x86/vm/compiledIC_x86.cpp
+0
-28
src/cpu/zero/vm/compiledIC_zero.cpp
src/cpu/zero/vm/compiledIC_zero.cpp
+0
-28
src/share/vm/code/compiledIC.cpp
src/share/vm/code/compiledIC.cpp
+24
-0
未找到文件。
src/cpu/ppc/vm/compiledIC_ppc.cpp
浏览文件 @
35663fc8
...
...
@@ -50,34 +50,6 @@ bool CompiledIC::is_icholder_call_site(virtual_call_Relocation* call_site) {
return
is_icholder_entry
(
call
->
destination
());
}
//-----------------------------------------------------------------------------
// High-level access to an inline cache. Guaranteed to be MT-safe.
CompiledIC
::
CompiledIC
(
nmethod
*
nm
,
NativeCall
*
call
)
:
_ic_call
(
call
)
{
address
ic_call
=
call
->
instruction_address
();
assert
(
ic_call
!=
NULL
,
"ic_call address must be set"
);
assert
(
nm
!=
NULL
,
"must pass nmethod"
);
assert
(
nm
->
contains
(
ic_call
),
"must be in nmethod"
);
// Search for the ic_call at the given address.
RelocIterator
iter
(
nm
,
ic_call
,
ic_call
+
1
);
bool
ret
=
iter
.
next
();
assert
(
ret
==
true
,
"relocInfo must exist at this address"
);
assert
(
iter
.
addr
()
==
ic_call
,
"must find ic_call"
);
if
(
iter
.
type
()
==
relocInfo
::
virtual_call_type
)
{
virtual_call_Relocation
*
r
=
iter
.
virtual_call_reloc
();
_is_optimized
=
false
;
_value
=
nativeMovConstReg_at
(
r
->
cached_value
());
}
else
{
assert
(
iter
.
type
()
==
relocInfo
::
opt_virtual_call_type
,
"must be a virtual call"
);
_is_optimized
=
true
;
_value
=
NULL
;
}
}
// ----------------------------------------------------------------------------
// A PPC CompiledStaticCall looks like this:
...
...
src/cpu/sparc/vm/compiledIC_sparc.cpp
浏览文件 @
35663fc8
...
...
@@ -50,34 +50,6 @@ bool CompiledIC::is_icholder_call_site(virtual_call_Relocation* call_site) {
return
is_icholder_entry
(
call
->
destination
());
}
//-----------------------------------------------------------------------------
// High-level access to an inline cache. Guaranteed to be MT-safe.
CompiledIC
::
CompiledIC
(
nmethod
*
nm
,
NativeCall
*
call
)
:
_ic_call
(
call
)
{
address
ic_call
=
call
->
instruction_address
();
assert
(
ic_call
!=
NULL
,
"ic_call address must be set"
);
assert
(
nm
!=
NULL
,
"must pass nmethod"
);
assert
(
nm
->
contains
(
ic_call
),
"must be in nmethod"
);
// Search for the ic_call at the given address.
RelocIterator
iter
(
nm
,
ic_call
,
ic_call
+
1
);
bool
ret
=
iter
.
next
();
assert
(
ret
==
true
,
"relocInfo must exist at this address"
);
assert
(
iter
.
addr
()
==
ic_call
,
"must find ic_call"
);
if
(
iter
.
type
()
==
relocInfo
::
virtual_call_type
)
{
virtual_call_Relocation
*
r
=
iter
.
virtual_call_reloc
();
_is_optimized
=
false
;
_value
=
nativeMovConstReg_at
(
r
->
cached_value
());
}
else
{
assert
(
iter
.
type
()
==
relocInfo
::
opt_virtual_call_type
,
"must be a virtual call"
);
_is_optimized
=
true
;
_value
=
NULL
;
}
}
// ----------------------------------------------------------------------------
#define __ _masm.
...
...
src/cpu/x86/vm/compiledIC_x86.cpp
浏览文件 @
35663fc8
...
...
@@ -47,34 +47,6 @@ bool CompiledIC::is_icholder_call_site(virtual_call_Relocation* call_site) {
return
is_icholder_entry
(
call
->
destination
());
}
//-----------------------------------------------------------------------------
// High-level access to an inline cache. Guaranteed to be MT-safe.
CompiledIC
::
CompiledIC
(
nmethod
*
nm
,
NativeCall
*
call
)
:
_ic_call
(
call
)
{
address
ic_call
=
call
->
instruction_address
();
assert
(
ic_call
!=
NULL
,
"ic_call address must be set"
);
assert
(
nm
!=
NULL
,
"must pass nmethod"
);
assert
(
nm
->
contains
(
ic_call
),
"must be in nmethod"
);
// Search for the ic_call at the given address.
RelocIterator
iter
(
nm
,
ic_call
,
ic_call
+
1
);
bool
ret
=
iter
.
next
();
assert
(
ret
==
true
,
"relocInfo must exist at this address"
);
assert
(
iter
.
addr
()
==
ic_call
,
"must find ic_call"
);
if
(
iter
.
type
()
==
relocInfo
::
virtual_call_type
)
{
virtual_call_Relocation
*
r
=
iter
.
virtual_call_reloc
();
_is_optimized
=
false
;
_value
=
nativeMovConstReg_at
(
r
->
cached_value
());
}
else
{
assert
(
iter
.
type
()
==
relocInfo
::
opt_virtual_call_type
,
"must be a virtual call"
);
_is_optimized
=
true
;
_value
=
NULL
;
}
}
// ----------------------------------------------------------------------------
#define __ _masm.
...
...
src/cpu/zero/vm/compiledIC_zero.cpp
浏览文件 @
35663fc8
...
...
@@ -58,34 +58,6 @@ bool CompiledIC::is_icholder_call_site(virtual_call_Relocation* call_site) {
return
is_icholder_entry
(
call
->
destination
());
}
//-----------------------------------------------------------------------------
// High-level access to an inline cache. Guaranteed to be MT-safe.
CompiledIC
::
CompiledIC
(
nmethod
*
nm
,
NativeCall
*
call
)
:
_ic_call
(
call
)
{
address
ic_call
=
call
->
instruction_address
();
assert
(
ic_call
!=
NULL
,
"ic_call address must be set"
);
assert
(
nm
!=
NULL
,
"must pass nmethod"
);
assert
(
nm
->
contains
(
ic_call
),
"must be in nmethod"
);
// Search for the ic_call at the given address.
RelocIterator
iter
(
nm
,
ic_call
,
ic_call
+
1
);
bool
ret
=
iter
.
next
();
assert
(
ret
==
true
,
"relocInfo must exist at this address"
);
assert
(
iter
.
addr
()
==
ic_call
,
"must find ic_call"
);
if
(
iter
.
type
()
==
relocInfo
::
virtual_call_type
)
{
virtual_call_Relocation
*
r
=
iter
.
virtual_call_reloc
();
_is_optimized
=
false
;
_value
=
nativeMovConstReg_at
(
r
->
cached_value
());
}
else
{
assert
(
iter
.
type
()
==
relocInfo
::
opt_virtual_call_type
,
"must be a virtual call"
);
_is_optimized
=
true
;
_value
=
NULL
;
}
}
// ----------------------------------------------------------------------------
void
CompiledStaticCall
::
emit_to_interp_stub
(
CodeBuffer
&
cbuf
)
{
...
...
src/share/vm/code/compiledIC.cpp
浏览文件 @
35663fc8
...
...
@@ -159,6 +159,30 @@ address CompiledIC::stub_address() const {
//-----------------------------------------------------------------------------
// High-level access to an inline cache. Guaranteed to be MT-safe.
CompiledIC
::
CompiledIC
(
nmethod
*
nm
,
NativeCall
*
call
)
:
_ic_call
(
call
)
{
address
ic_call
=
call
->
instruction_address
();
assert
(
ic_call
!=
NULL
,
"ic_call address must be set"
);
assert
(
nm
!=
NULL
,
"must pass nmethod"
);
assert
(
nm
->
contains
(
ic_call
),
"must be in nmethod"
);
// Search for the ic_call at the given address.
RelocIterator
iter
(
nm
,
ic_call
,
ic_call
+
1
);
bool
ret
=
iter
.
next
();
assert
(
ret
==
true
,
"relocInfo must exist at this address"
);
assert
(
iter
.
addr
()
==
ic_call
,
"must find ic_call"
);
if
(
iter
.
type
()
==
relocInfo
::
virtual_call_type
)
{
virtual_call_Relocation
*
r
=
iter
.
virtual_call_reloc
();
_is_optimized
=
false
;
_value
=
nativeMovConstReg_at
(
r
->
cached_value
());
}
else
{
assert
(
iter
.
type
()
==
relocInfo
::
opt_virtual_call_type
,
"must be a virtual call"
);
_is_optimized
=
true
;
_value
=
NULL
;
}
}
bool
CompiledIC
::
set_to_megamorphic
(
CallInfo
*
call_info
,
Bytecodes
::
Code
bytecode
,
TRAPS
)
{
assert
(
CompiledIC_lock
->
is_locked
()
||
SafepointSynchronize
::
is_at_safepoint
(),
""
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录