Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
936dcbcc
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
936dcbcc
编写于
2月 04, 2013
作者:
M
mikael
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8007403: Incorrect format arguments in adlparse.cpp
Reviewed-by: kvn, twisti
上级
e1092eb6
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
27 addition
and
27 deletion
+27
-27
src/share/vm/adlc/adlparse.cpp
src/share/vm/adlc/adlparse.cpp
+27
-27
未找到文件。
src/share/vm/adlc/adlparse.cpp
浏览文件 @
936dcbcc
...
...
@@ -168,7 +168,7 @@ void ADLParser::instr_parse(void) {
// Check for block delimiter
if
(
(
_curchar
!=
'%'
)
||
(
next_char
(),
(
_curchar
!=
'{'
))
)
{
parse_err
(
SYNERR
,
"missing '%{' in instruction definition
\n
"
);
parse_err
(
SYNERR
,
"missing '%
%
{' in instruction definition
\n
"
);
return
;
}
next_char
();
// Maintain the invariant
...
...
@@ -253,7 +253,7 @@ void ADLParser::instr_parse(void) {
}
while
(
_curchar
!=
'%'
);
next_char
();
if
(
_curchar
!=
'}'
)
{
parse_err
(
SYNERR
,
"missing '%}' in instruction definition
\n
"
);
parse_err
(
SYNERR
,
"missing '%
%
}' in instruction definition
\n
"
);
return
;
}
// Check for "Set" form of chain rule
...
...
@@ -423,7 +423,7 @@ void ADLParser::oper_parse(void) {
skipws
();
// Check for block delimiter
if
((
_curchar
!=
'%'
)
||
(
*
(
_ptr
+
1
)
!=
'{'
))
{
// If not open block
parse_err
(
SYNERR
,
"missing '%
c{' in operand definition
\n
"
,
"%
"
);
parse_err
(
SYNERR
,
"missing '%
%{' in operand definition
\n
"
);
return
;
}
next_char
();
next_char
();
// Skip over "%{" symbol
...
...
@@ -483,7 +483,7 @@ void ADLParser::oper_parse(void) {
}
while
(
_curchar
!=
'%'
);
next_char
();
if
(
_curchar
!=
'}'
)
{
parse_err
(
SYNERR
,
"missing '%}' in operand definition
\n
"
);
parse_err
(
SYNERR
,
"missing '%
%
}' in operand definition
\n
"
);
return
;
}
// Add operand to tail of operand list
...
...
@@ -1324,7 +1324,7 @@ void ADLParser::pipe_parse(void) {
// Check for block delimiter
if
(
(
_curchar
!=
'%'
)
||
(
next_char
(),
(
_curchar
!=
'{'
))
)
{
parse_err
(
SYNERR
,
"missing '%{' in pipeline definition
\n
"
);
parse_err
(
SYNERR
,
"missing '%
%
{' in pipeline definition
\n
"
);
return
;
}
next_char
();
// Maintain the invariant
...
...
@@ -1341,7 +1341,7 @@ void ADLParser::pipe_parse(void) {
skipws
();
if
(
(
_curchar
!=
'%'
)
||
(
next_char
(),
(
_curchar
!=
'{'
))
)
{
parse_err
(
SYNERR
,
"expected '%{'
\n
"
);
parse_err
(
SYNERR
,
"expected '%
%
{'
\n
"
);
return
;
}
next_char
();
skipws
();
...
...
@@ -1397,7 +1397,7 @@ void ADLParser::pipe_parse(void) {
skipws
();
if
(
(
_curchar
!=
'%'
)
||
(
next_char
(),
(
_curchar
!=
'{'
))
)
{
parse_err
(
SYNERR
,
"expected '%{'
\n
"
);
parse_err
(
SYNERR
,
"expected '%
%
{'
\n
"
);
return
;
}
next_char
();
skipws
();
...
...
@@ -1586,7 +1586,7 @@ void ADLParser::pipe_parse(void) {
if
(
(
_curchar
!=
'%'
)
||
(
next_char
(),
(
_curchar
!=
'}'
))
)
{
parse_err
(
SYNERR
,
"expected '%}', found
\"
%c
\"\n
"
,
_curchar
);
parse_err
(
SYNERR
,
"expected '%
%
}', found
\"
%c
\"\n
"
,
_curchar
);
}
next_char
();
skipws
();
...
...
@@ -1612,7 +1612,7 @@ void ADLParser::pipe_parse(void) {
next_char
();
if
(
_curchar
!=
'}'
)
{
parse_err
(
SYNERR
,
"missing
\"
%}
\"
in pipeline definition
\n
"
);
parse_err
(
SYNERR
,
"missing
\"
%
%
}
\"
in pipeline definition
\n
"
);
return
;
}
...
...
@@ -1775,7 +1775,7 @@ void ADLParser::pipe_class_parse(PipelineForm &pipeline) {
// Check for block delimiter
if
(
(
_curchar
!=
'%'
)
||
(
next_char
(),
(
_curchar
!=
'{'
))
)
{
parse_err
(
SYNERR
,
"missing
\"
%{
\"
in pipe_class definition
\n
"
);
parse_err
(
SYNERR
,
"missing
\"
%
%
{
\"
in pipe_class definition
\n
"
);
return
;
}
next_char
();
...
...
@@ -2062,7 +2062,7 @@ void ADLParser::pipe_class_parse(PipelineForm &pipeline) {
next_char
();
if
(
_curchar
!=
'}'
)
{
parse_err
(
SYNERR
,
"missing
\"
%}
\"
in pipe_class definition
\n
"
);
parse_err
(
SYNERR
,
"missing
\"
%
%
}
\"
in pipe_class definition
\n
"
);
return
;
}
...
...
@@ -3341,12 +3341,12 @@ Interface *ADLParser::mem_interface_parse(void) {
char
*
disp
=
NULL
;
if
(
_curchar
!=
'%'
)
{
parse_err
(
SYNERR
,
"Missing '%{' for 'interface' block.
\n
"
);
parse_err
(
SYNERR
,
"Missing '%
%
{' for 'interface' block.
\n
"
);
return
NULL
;
}
next_char
();
// Skip '%'
if
(
_curchar
!=
'{'
)
{
parse_err
(
SYNERR
,
"Missing '%{' for 'interface' block.
\n
"
);
parse_err
(
SYNERR
,
"Missing '%
%
{' for 'interface' block.
\n
"
);
return
NULL
;
}
next_char
();
// Skip '{'
...
...
@@ -3354,7 +3354,7 @@ Interface *ADLParser::mem_interface_parse(void) {
do
{
char
*
field
=
get_ident
();
if
(
field
==
NULL
)
{
parse_err
(
SYNERR
,
"Expected keyword, base|index|scale|disp, or '%}' ending interface.
\n
"
);
parse_err
(
SYNERR
,
"Expected keyword, base|index|scale|disp, or '%
%
}' ending interface.
\n
"
);
return
NULL
;
}
if
(
strcmp
(
field
,
"base"
)
==
0
)
{
...
...
@@ -3370,13 +3370,13 @@ Interface *ADLParser::mem_interface_parse(void) {
disp
=
interface_field_parse
();
}
else
{
parse_err
(
SYNERR
,
"Expected keyword, base|index|scale|disp, or '%}' ending interface.
\n
"
);
parse_err
(
SYNERR
,
"Expected keyword, base|index|scale|disp, or '%
%
}' ending interface.
\n
"
);
return
NULL
;
}
}
while
(
_curchar
!=
'%'
);
next_char
();
// Skip '%'
if
(
_curchar
!=
'}'
)
{
parse_err
(
SYNERR
,
"Missing '%}' for 'interface' block.
\n
"
);
parse_err
(
SYNERR
,
"Missing '%
%
}' for 'interface' block.
\n
"
);
return
NULL
;
}
next_char
();
// Skip '}'
...
...
@@ -3403,12 +3403,12 @@ Interface *ADLParser::cond_interface_parse(void) {
const
char
*
greater_format
=
"gt"
;
if
(
_curchar
!=
'%'
)
{
parse_err
(
SYNERR
,
"Missing '%{' for 'cond_interface' block.
\n
"
);
parse_err
(
SYNERR
,
"Missing '%
%
{' for 'cond_interface' block.
\n
"
);
return
NULL
;
}
next_char
();
// Skip '%'
if
(
_curchar
!=
'{'
)
{
parse_err
(
SYNERR
,
"Missing '%{' for 'cond_interface' block.
\n
"
);
parse_err
(
SYNERR
,
"Missing '%
%
{' for 'cond_interface' block.
\n
"
);
return
NULL
;
}
next_char
();
// Skip '{'
...
...
@@ -3416,7 +3416,7 @@ Interface *ADLParser::cond_interface_parse(void) {
do
{
char
*
field
=
get_ident
();
if
(
field
==
NULL
)
{
parse_err
(
SYNERR
,
"Expected keyword, base|index|scale|disp, or '%}' ending interface.
\n
"
);
parse_err
(
SYNERR
,
"Expected keyword, base|index|scale|disp, or '%
%
}' ending interface.
\n
"
);
return
NULL
;
}
if
(
strcmp
(
field
,
"equal"
)
==
0
)
{
...
...
@@ -3438,13 +3438,13 @@ Interface *ADLParser::cond_interface_parse(void) {
greater
=
interface_field_parse
(
&
greater_format
);
}
else
{
parse_err
(
SYNERR
,
"Expected keyword, base|index|scale|disp, or '%}' ending interface.
\n
"
);
parse_err
(
SYNERR
,
"Expected keyword, base|index|scale|disp, or '%
%
}' ending interface.
\n
"
);
return
NULL
;
}
}
while
(
_curchar
!=
'%'
);
next_char
();
// Skip '%'
if
(
_curchar
!=
'}'
)
{
parse_err
(
SYNERR
,
"Missing '%}' for 'interface' block.
\n
"
);
parse_err
(
SYNERR
,
"Missing '%
%
}' for 'interface' block.
\n
"
);
return
NULL
;
}
next_char
();
// Skip '}'
...
...
@@ -3543,7 +3543,7 @@ MatchRule *ADLParser::match_parse(FormDict &operands) {
}
else
if
((
cnstr
=
find_cpp_block
(
"match constructor"
))
==
NULL
)
{
parse_err
(
SYNERR
,
"invalid construction of match rule
\n
"
"Missing ';' or invalid '%
{' and '
%}' constructor
\n
"
);
"Missing ';' or invalid '%
%{' and '%
%}' constructor
\n
"
);
return
NULL
;
// No MatchRule to return
}
if
(
_AD
.
_adl_debug
>
1
)
...
...
@@ -3646,7 +3646,7 @@ FormatRule* ADLParser::format_parse(void) {
// Check for closing '"' and '%}' in format description
skipws
();
// Move to closing '%}'
if
(
_curchar
!=
'%'
)
{
parse_err
(
SYNERR
,
"non-blank characters between closing '
\"
' and '%' in format"
);
parse_err
(
SYNERR
,
"non-blank characters between closing '
\"
' and '%
%
' in format"
);
return
NULL
;
}
}
// Done with format description inside
...
...
@@ -3654,7 +3654,7 @@ FormatRule* ADLParser::format_parse(void) {
skipws
();
// Past format description, at '%'
if
(
_curchar
!=
'%'
||
*
(
_ptr
+
1
)
!=
'}'
)
{
parse_err
(
SYNERR
,
"missing '%}' at end of format block"
);
parse_err
(
SYNERR
,
"missing '%
%
}' at end of format block"
);
return
NULL
;
}
next_char
();
// Move past the '%'
...
...
@@ -3785,7 +3785,7 @@ FormatRule* ADLParser::template_parse(void) {
skipws
();
// Past format description, at '%'
if
(
_curchar
!=
'%'
||
*
(
_ptr
+
1
)
!=
'}'
)
{
parse_err
(
SYNERR
,
"missing '%}' at end of format block"
);
parse_err
(
SYNERR
,
"missing '%
%
}' at end of format block"
);
return
NULL
;
}
next_char
();
// Move past the '%'
...
...
@@ -3834,7 +3834,7 @@ ExpandRule* ADLParser::expand_parse(InstructForm *instr) {
skipws
();
// Skip leading whitespace
if
((
_curchar
!=
'%'
)
||
(
next_char
(),
(
_curchar
!=
'{'
))
)
{
// If not open block
parse_err
(
SYNERR
,
"missing '%{' in expand definition
\n
"
);
parse_err
(
SYNERR
,
"missing '%
%
{' in expand definition
\n
"
);
return
(
NULL
);
}
next_char
();
// Maintain the invariant
...
...
@@ -3933,7 +3933,7 @@ ExpandRule* ADLParser::expand_parse(InstructForm *instr) {
}
while
(
_curchar
!=
'%'
);
next_char
();
if
(
_curchar
!=
'}'
)
{
parse_err
(
SYNERR
,
"missing '%}' in expand rule definition
\n
"
);
parse_err
(
SYNERR
,
"missing '%
%
}' in expand rule definition
\n
"
);
return
(
NULL
);
}
next_char
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录