Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
dc1d89ab
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看板
提交
dc1d89ab
编写于
5月 26, 2011
作者:
N
never
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
730a6a98
d6ee3a9b
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
15 addition
and
36 deletion
+15
-36
src/cpu/x86/vm/c1_LIRAssembler_x86.cpp
src/cpu/x86/vm/c1_LIRAssembler_x86.cpp
+15
-36
未找到文件。
src/cpu/x86/vm/c1_LIRAssembler_x86.cpp
浏览文件 @
dc1d89ab
...
@@ -3113,7 +3113,6 @@ void LIR_Assembler::emit_arraycopy(LIR_OpArrayCopy* op) {
...
@@ -3113,7 +3113,6 @@ void LIR_Assembler::emit_arraycopy(LIR_OpArrayCopy* op) {
// reload the register args properly if we go slow path. Yuck
// reload the register args properly if we go slow path. Yuck
// These are proper for the calling convention
// These are proper for the calling convention
store_parameter
(
length
,
2
);
store_parameter
(
length
,
2
);
store_parameter
(
dst_pos
,
1
);
store_parameter
(
dst_pos
,
1
);
store_parameter
(
dst
,
0
);
store_parameter
(
dst
,
0
);
...
@@ -3351,12 +3350,15 @@ void LIR_Assembler::emit_arraycopy(LIR_OpArrayCopy* op) {
...
@@ -3351,12 +3350,15 @@ void LIR_Assembler::emit_arraycopy(LIR_OpArrayCopy* op) {
__
jcc
(
Assembler
::
notEqual
,
*
stub
->
entry
());
__
jcc
(
Assembler
::
notEqual
,
*
stub
->
entry
());
}
}
#ifndef _LP64
// Spill because stubs can use any register they like and it's
// save caller save registers
// easier to restore just those that we care about.
store_parameter
(
rax
,
2
);
store_parameter
(
dst
,
0
);
store_parameter
(
rcx
,
1
);
store_parameter
(
dst_pos
,
1
);
store_parameter
(
rdx
,
0
);
store_parameter
(
length
,
2
);
store_parameter
(
src_pos
,
3
);
store_parameter
(
src
,
4
);
#ifndef _LP64
__
movptr
(
tmp
,
dst_klass_addr
);
__
movptr
(
tmp
,
dst_klass_addr
);
__
movptr
(
tmp
,
Address
(
tmp
,
objArrayKlass
::
element_klass_offset_in_bytes
()
+
sizeof
(
oopDesc
)));
__
movptr
(
tmp
,
Address
(
tmp
,
objArrayKlass
::
element_klass_offset_in_bytes
()
+
sizeof
(
oopDesc
)));
__
push
(
tmp
);
__
push
(
tmp
);
...
@@ -3372,17 +3374,6 @@ void LIR_Assembler::emit_arraycopy(LIR_OpArrayCopy* op) {
...
@@ -3372,17 +3374,6 @@ void LIR_Assembler::emit_arraycopy(LIR_OpArrayCopy* op) {
#else
#else
__
movl2ptr
(
length
,
length
);
//higher 32bits must be null
__
movl2ptr
(
length
,
length
);
//higher 32bits must be null
// save caller save registers: copy them to callee save registers
__
mov
(
rbx
,
rdx
);
__
mov
(
r13
,
r8
);
__
mov
(
r14
,
r9
);
#ifndef _WIN64
store_parameter
(
rsi
,
1
);
store_parameter
(
rcx
,
0
);
// on WIN64 other incoming parameters are in rdi and rsi saved
// across the call
#endif
__
lea
(
c_rarg0
,
Address
(
src
,
src_pos
,
scale
,
arrayOopDesc
::
base_offset_in_bytes
(
basic_type
)));
__
lea
(
c_rarg0
,
Address
(
src
,
src_pos
,
scale
,
arrayOopDesc
::
base_offset_in_bytes
(
basic_type
)));
assert_different_registers
(
c_rarg0
,
dst
,
dst_pos
,
length
);
assert_different_registers
(
c_rarg0
,
dst
,
dst_pos
,
length
);
__
lea
(
c_rarg1
,
Address
(
dst
,
dst_pos
,
scale
,
arrayOopDesc
::
base_offset_in_bytes
(
basic_type
)));
__
lea
(
c_rarg1
,
Address
(
dst
,
dst_pos
,
scale
,
arrayOopDesc
::
base_offset_in_bytes
(
basic_type
)));
...
@@ -3432,25 +3423,13 @@ void LIR_Assembler::emit_arraycopy(LIR_OpArrayCopy* op) {
...
@@ -3432,25 +3423,13 @@ void LIR_Assembler::emit_arraycopy(LIR_OpArrayCopy* op) {
__
xorl
(
tmp
,
-
1
);
__
xorl
(
tmp
,
-
1
);
#ifndef _LP64
// Restore previously spilled arguments
// restore caller save registers
__
movptr
(
dst
,
Address
(
rsp
,
0
*
BytesPerWord
));
assert_different_registers
(
tmp
,
rdx
,
rcx
,
rax
);
// result of stub will be lost
__
movptr
(
dst_pos
,
Address
(
rsp
,
1
*
BytesPerWord
));
__
movptr
(
rdx
,
Address
(
rsp
,
0
*
BytesPerWord
));
__
movptr
(
length
,
Address
(
rsp
,
2
*
BytesPerWord
));
__
movptr
(
rcx
,
Address
(
rsp
,
1
*
BytesPerWord
));
__
movptr
(
src_pos
,
Address
(
rsp
,
3
*
BytesPerWord
));
__
movptr
(
rax
,
Address
(
rsp
,
2
*
BytesPerWord
));
__
movptr
(
src
,
Address
(
rsp
,
4
*
BytesPerWord
));
#else
// restore caller save registers
__
mov
(
rdx
,
rbx
);
__
mov
(
r8
,
r13
);
__
mov
(
r9
,
r14
);
#ifndef _WIN64
assert_different_registers
(
tmp
,
rdx
,
r8
,
r9
,
rcx
,
rsi
);
// result of stub will be lost
__
movptr
(
rcx
,
Address
(
rsp
,
0
*
BytesPerWord
));
__
movptr
(
rsi
,
Address
(
rsp
,
1
*
BytesPerWord
));
#else
assert_different_registers
(
tmp
,
rdx
,
r8
,
r9
);
// result of stub will be lost
#endif
#endif
__
subl
(
length
,
tmp
);
__
subl
(
length
,
tmp
);
__
addl
(
src_pos
,
tmp
);
__
addl
(
src_pos
,
tmp
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录