Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
f344c5d7
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
4
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_jdk
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
f344c5d7
编写于
10月 24, 2014
作者:
K
ksrini
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8061830: [asm] refresh internal ASM version v5.0.3
Reviewed-by: psandoz, sundar
上级
ba6b9da6
变更
11
隐藏空白更改
内联
并排
Showing
11 changed file
with
42 addition
and
35 deletion
+42
-35
src/share/classes/jdk/internal/org/objectweb/asm/ClassReader.java
...e/classes/jdk/internal/org/objectweb/asm/ClassReader.java
+9
-9
src/share/classes/jdk/internal/org/objectweb/asm/TypePath.java
...hare/classes/jdk/internal/org/objectweb/asm/TypePath.java
+5
-2
src/share/classes/jdk/internal/org/objectweb/asm/commons/GeneratorAdapter.java
.../internal/org/objectweb/asm/commons/GeneratorAdapter.java
+8
-6
src/share/classes/jdk/internal/org/objectweb/asm/commons/InstructionAdapter.java
...nternal/org/objectweb/asm/commons/InstructionAdapter.java
+4
-4
src/share/classes/jdk/internal/org/objectweb/asm/commons/SerialVersionUIDAdder.java
...rnal/org/objectweb/asm/commons/SerialVersionUIDAdder.java
+1
-2
src/share/classes/jdk/internal/org/objectweb/asm/tree/AnnotationNode.java
...s/jdk/internal/org/objectweb/asm/tree/AnnotationNode.java
+6
-4
src/share/classes/jdk/internal/org/objectweb/asm/tree/LookupSwitchInsnNode.java
...internal/org/objectweb/asm/tree/LookupSwitchInsnNode.java
+1
-1
src/share/classes/jdk/internal/org/objectweb/asm/tree/MethodInsnNode.java
...s/jdk/internal/org/objectweb/asm/tree/MethodInsnNode.java
+1
-0
src/share/classes/jdk/internal/org/objectweb/asm/util/CheckMethodAdapter.java
...k/internal/org/objectweb/asm/util/CheckMethodAdapter.java
+1
-1
src/share/classes/jdk/internal/org/objectweb/asm/util/Textifier.java
...lasses/jdk/internal/org/objectweb/asm/util/Textifier.java
+1
-1
src/share/classes/jdk/internal/org/objectweb/asm/version.txt
src/share/classes/jdk/internal/org/objectweb/asm/version.txt
+5
-5
未找到文件。
src/share/classes/jdk/internal/org/objectweb/asm/ClassReader.java
浏览文件 @
f344c5d7
...
...
@@ -1858,7 +1858,7 @@ public class ClassReader {
break
;
case
'B'
:
// pointer to CONSTANT_Byte
av
.
visit
(
name
,
new
Byte
((
byte
)
readInt
(
items
[
readUnsignedShort
(
v
)])
));
(
byte
)
readInt
(
items
[
readUnsignedShort
(
v
)]
));
v
+=
2
;
break
;
case
'Z'
:
// pointer to CONSTANT_Boolean
...
...
@@ -1868,13 +1868,13 @@ public class ClassReader {
v
+=
2
;
break
;
case
'S'
:
// pointer to CONSTANT_Short
av
.
visit
(
name
,
new
Short
(
(
short
)
readInt
(
items
[
readUnsignedShort
(
v
)]))
)
;
av
.
visit
(
name
,
(
short
)
readInt
(
items
[
readUnsignedShort
(
v
)]));
v
+=
2
;
break
;
case
'C'
:
// pointer to CONSTANT_Char
av
.
visit
(
name
,
new
Character
(
(
char
)
readInt
(
items
[
readUnsignedShort
(
v
)]))
)
;
av
.
visit
(
name
,
(
char
)
readInt
(
items
[
readUnsignedShort
(
v
)]));
v
+=
2
;
break
;
case
's'
:
// pointer to CONSTANT_Utf8
...
...
@@ -2498,13 +2498,13 @@ public class ClassReader {
int
index
=
items
[
item
];
switch
(
b
[
index
-
1
])
{
case
ClassWriter
.
INT
:
return
new
Integer
(
readInt
(
index
)
);
return
readInt
(
index
);
case
ClassWriter
.
FLOAT
:
return
new
Float
(
Float
.
intBitsToFloat
(
readInt
(
index
)
));
return
Float
.
intBitsToFloat
(
readInt
(
index
));
case
ClassWriter
.
LONG
:
return
new
Long
(
readLong
(
index
)
);
return
readLong
(
index
);
case
ClassWriter
.
DOUBLE
:
return
new
Double
(
Double
.
longBitsToDouble
(
readLong
(
index
)
));
return
Double
.
longBitsToDouble
(
readLong
(
index
));
case
ClassWriter
.
CLASS
:
return
Type
.
getObjectType
(
readUTF8
(
index
,
buf
));
case
ClassWriter
.
STR
:
...
...
src/share/classes/jdk/internal/org/objectweb/asm/TypePath.java
浏览文件 @
f344c5d7
...
...
@@ -181,6 +181,9 @@ public class TypePath {
typeArg
=
typeArg
*
10
+
c
-
'0'
;
i
+=
1
;
}
if
(
i
<
n
&&
typePath
.
charAt
(
i
)
==
';'
)
{
i
+=
1
;
}
out
.
put11
(
TYPE_ARGUMENT
,
typeArg
);
}
}
...
...
@@ -193,7 +196,7 @@ public class TypePath {
* ARRAY_ELEMENT} steps are represented with '[', {@link #INNER_TYPE
* INNER_TYPE} steps with '.', {@link #WILDCARD_BOUND WILDCARD_BOUND} steps
* with '*' and {@link #TYPE_ARGUMENT TYPE_ARGUMENT} steps with their type
* argument index in decimal form.
* argument index in decimal form
followed by ';'
.
*/
@Override
public
String
toString
()
{
...
...
@@ -211,7 +214,7 @@ public class TypePath {
result
.
append
(
'*'
);
break
;
case
TYPE_ARGUMENT:
result
.
append
(
getStepArgument
(
i
));
result
.
append
(
getStepArgument
(
i
))
.
append
(
';'
)
;
break
;
default
:
result
.
append
(
'_'
);
...
...
src/share/classes/jdk/internal/org/objectweb/asm/commons/GeneratorAdapter.java
浏览文件 @
f344c5d7
...
...
@@ -408,7 +408,7 @@ public class GeneratorAdapter extends LocalVariablesSorter {
}
else
if
(
value
>=
Short
.
MIN_VALUE
&&
value
<=
Short
.
MAX_VALUE
)
{
mv
.
visitIntInsn
(
Opcodes
.
SIPUSH
,
value
);
}
else
{
mv
.
visitLdcInsn
(
new
Integer
(
value
)
);
mv
.
visitLdcInsn
(
value
);
}
}
...
...
@@ -422,7 +422,7 @@ public class GeneratorAdapter extends LocalVariablesSorter {
if
(
value
==
0L
||
value
==
1L
)
{
mv
.
visitInsn
(
Opcodes
.
LCONST_0
+
(
int
)
value
);
}
else
{
mv
.
visitLdcInsn
(
new
Long
(
value
)
);
mv
.
visitLdcInsn
(
value
);
}
}
...
...
@@ -437,7 +437,7 @@ public class GeneratorAdapter extends LocalVariablesSorter {
if
(
bits
==
0L
||
bits
==
0x3f800000
||
bits
==
0x40000000
)
{
// 0..2
mv
.
visitInsn
(
Opcodes
.
FCONST_0
+
(
int
)
value
);
}
else
{
mv
.
visitLdcInsn
(
new
Float
(
value
)
);
mv
.
visitLdcInsn
(
value
);
}
}
...
...
@@ -452,7 +452,7 @@ public class GeneratorAdapter extends LocalVariablesSorter {
if
(
bits
==
0L
||
bits
==
0x3ff0000000000000
L
)
{
// +0.0d and 1.0d
mv
.
visitInsn
(
Opcodes
.
DCONST_0
+
(
int
)
value
);
}
else
{
mv
.
visitLdcInsn
(
new
Double
(
value
)
);
mv
.
visitLdcInsn
(
value
);
}
}
...
...
@@ -1647,11 +1647,13 @@ public class GeneratorAdapter extends LocalVariablesSorter {
*/
public
void
catchException
(
final
Label
start
,
final
Label
end
,
final
Type
exception
)
{
Label
doCatch
=
new
Label
();
if
(
exception
==
null
)
{
mv
.
visitTryCatchBlock
(
start
,
end
,
mark
()
,
null
);
mv
.
visitTryCatchBlock
(
start
,
end
,
doCatch
,
null
);
}
else
{
mv
.
visitTryCatchBlock
(
start
,
end
,
mark
()
,
mv
.
visitTryCatchBlock
(
start
,
end
,
doCatch
,
exception
.
getInternalName
());
}
mark
(
doCatch
);
}
}
src/share/classes/jdk/internal/org/objectweb/asm/commons/InstructionAdapter.java
浏览文件 @
f344c5d7
...
...
@@ -737,7 +737,7 @@ public class InstructionAdapter extends MethodVisitor {
}
else
if
(
cst
>=
Short
.
MIN_VALUE
&&
cst
<=
Short
.
MAX_VALUE
)
{
mv
.
visitIntInsn
(
Opcodes
.
SIPUSH
,
cst
);
}
else
{
mv
.
visitLdcInsn
(
new
Integer
(
cst
)
);
mv
.
visitLdcInsn
(
cst
);
}
}
...
...
@@ -745,7 +745,7 @@ public class InstructionAdapter extends MethodVisitor {
if
(
cst
==
0L
||
cst
==
1L
)
{
mv
.
visitInsn
(
Opcodes
.
LCONST_0
+
(
int
)
cst
);
}
else
{
mv
.
visitLdcInsn
(
new
Long
(
cst
)
);
mv
.
visitLdcInsn
(
cst
);
}
}
...
...
@@ -754,7 +754,7 @@ public class InstructionAdapter extends MethodVisitor {
if
(
bits
==
0L
||
bits
==
0x3f800000
||
bits
==
0x40000000
)
{
// 0..2
mv
.
visitInsn
(
Opcodes
.
FCONST_0
+
(
int
)
cst
);
}
else
{
mv
.
visitLdcInsn
(
new
Float
(
cst
)
);
mv
.
visitLdcInsn
(
cst
);
}
}
...
...
@@ -763,7 +763,7 @@ public class InstructionAdapter extends MethodVisitor {
if
(
bits
==
0L
||
bits
==
0x3ff0000000000000
L
)
{
// +0.0d and 1.0d
mv
.
visitInsn
(
Opcodes
.
DCONST_0
+
(
int
)
cst
);
}
else
{
mv
.
visitLdcInsn
(
new
Double
(
cst
)
);
mv
.
visitLdcInsn
(
cst
);
}
}
...
...
src/share/classes/jdk/internal/org/objectweb/asm/commons/SerialVersionUIDAdder.java
浏览文件 @
f344c5d7
...
...
@@ -366,8 +366,7 @@ public class SerialVersionUIDAdder extends ClassVisitor {
protected
void
addSVUID
(
long
svuid
)
{
FieldVisitor
fv
=
super
.
visitField
(
Opcodes
.
ACC_FINAL
+
Opcodes
.
ACC_STATIC
,
"serialVersionUID"
,
"J"
,
null
,
new
Long
(
svuid
));
+
Opcodes
.
ACC_STATIC
,
"serialVersionUID"
,
"J"
,
null
,
svuid
);
if
(
fv
!=
null
)
{
fv
.
visitEnd
();
}
...
...
src/share/classes/jdk/internal/org/objectweb/asm/tree/AnnotationNode.java
浏览文件 @
f344c5d7
...
...
@@ -247,11 +247,13 @@ public class AnnotationNode extends AnnotationVisitor {
an
.
accept
(
av
.
visitAnnotation
(
name
,
an
.
desc
));
}
else
if
(
value
instanceof
List
)
{
AnnotationVisitor
v
=
av
.
visitArray
(
name
);
List
<?>
array
=
(
List
<?>)
value
;
for
(
int
j
=
0
;
j
<
array
.
size
();
++
j
)
{
accept
(
v
,
null
,
array
.
get
(
j
));
if
(
v
!=
null
)
{
List
<?>
array
=
(
List
<?>)
value
;
for
(
int
j
=
0
;
j
<
array
.
size
();
++
j
)
{
accept
(
v
,
null
,
array
.
get
(
j
));
}
v
.
visitEnd
();
}
v
.
visitEnd
();
}
else
{
av
.
visit
(
name
,
value
);
}
...
...
src/share/classes/jdk/internal/org/objectweb/asm/tree/LookupSwitchInsnNode.java
浏览文件 @
f344c5d7
...
...
@@ -110,7 +110,7 @@ public class LookupSwitchInsnNode extends AbstractInsnNode {
:
labels
.
length
);
if
(
keys
!=
null
)
{
for
(
int
i
=
0
;
i
<
keys
.
length
;
++
i
)
{
this
.
keys
.
add
(
new
Integer
(
keys
[
i
])
);
this
.
keys
.
add
(
keys
[
i
]
);
}
}
if
(
labels
!=
null
)
{
...
...
src/share/classes/jdk/internal/org/objectweb/asm/tree/MethodInsnNode.java
浏览文件 @
f344c5d7
...
...
@@ -160,6 +160,7 @@ public class MethodInsnNode extends AbstractInsnNode {
@Override
public
void
accept
(
final
MethodVisitor
mv
)
{
mv
.
visitMethodInsn
(
opcode
,
owner
,
name
,
desc
,
itf
);
acceptAnnotations
(
mv
);
}
@Override
...
...
src/share/classes/jdk/internal/org/objectweb/asm/util/CheckMethodAdapter.java
浏览文件 @
f344c5d7
...
...
@@ -802,7 +802,7 @@ public class CheckMethodAdapter extends MethodVisitor {
if
(
labels
.
get
(
label
)
!=
null
)
{
throw
new
IllegalArgumentException
(
"Already visited label"
);
}
labels
.
put
(
label
,
new
Integer
(
insnCount
)
);
labels
.
put
(
label
,
insnCount
);
super
.
visitLabel
(
label
);
}
...
...
src/share/classes/jdk/internal/org/objectweb/asm/util/Textifier.java
浏览文件 @
f344c5d7
...
...
@@ -732,7 +732,7 @@ public class Textifier extends Printer {
Textifier
t
=
createTextifier
();
text
.
add
(
t
.
getText
());
text
.
add
(
visible
?
") // parameter "
:
") // invisible, parameter "
);
text
.
add
(
new
Integer
(
parameter
)
);
text
.
add
(
parameter
);
text
.
add
(
"\n"
);
return
t
;
}
...
...
src/share/classes/jdk/internal/org/objectweb/asm/version.txt
浏览文件 @
f344c5d7
Path: .
Working Copy Root Path: /hudson/jobs/objectweb-
pull/workspace/asm-svn-2014-06-19
Working Copy Root Path: /hudson/jobs/objectweb-
init/workspace/asm-svn-2014-10-15
URL: file:///svnroot/asm/trunk/asm
Repository Root: file:///svnroot/asm
Repository UUID: 271bd773-ee82-43a6-9b2b-1890ed8ce7f9
Revision: 17
50
Revision: 17
72
Node Kind: directory
Schedule: normal
Last Changed Author:
forax
Last Changed Rev: 17
50
Last Changed Date: 2014-0
6-06 00:31:02 +0200 (Fri, 06 Jun
2014)
Last Changed Author:
ebruneton
Last Changed Rev: 17
72
Last Changed Date: 2014-0
9-06 09:13:07 +0200 (Sat, 06 Sep
2014)
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录