Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_nashorn
提交
0c927f53
D
dragonwell8_nashorn
项目概览
openanolis
/
dragonwell8_nashorn
通知
2
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_nashorn
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
0c927f53
编写于
1月 18, 2013
作者:
S
sundar
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8006562: findOwnMH in nashorn "objects" package should be cleaned up
Reviewed-by: jlaskey, lagergren
上级
8236c510
变更
11
隐藏空白更改
内联
并排
Showing
11 changed file
with
24 addition
and
12 deletion
+24
-12
make/project.properties
make/project.properties
+5
-2
src/jdk/nashorn/internal/objects/Global.java
src/jdk/nashorn/internal/objects/Global.java
+1
-1
src/jdk/nashorn/internal/objects/NativeArguments.java
src/jdk/nashorn/internal/objects/NativeArguments.java
+1
-1
src/jdk/nashorn/internal/objects/NativeBoolean.java
src/jdk/nashorn/internal/objects/NativeBoolean.java
+2
-1
src/jdk/nashorn/internal/objects/NativeError.java
src/jdk/nashorn/internal/objects/NativeError.java
+1
-1
src/jdk/nashorn/internal/objects/NativeJSAdapter.java
src/jdk/nashorn/internal/objects/NativeJSAdapter.java
+2
-1
src/jdk/nashorn/internal/objects/NativeNumber.java
src/jdk/nashorn/internal/objects/NativeNumber.java
+2
-1
src/jdk/nashorn/internal/objects/NativeStrictArguments.java
src/jdk/nashorn/internal/objects/NativeStrictArguments.java
+1
-1
src/jdk/nashorn/internal/objects/NativeString.java
src/jdk/nashorn/internal/objects/NativeString.java
+2
-1
src/jdk/nashorn/internal/objects/PrototypeObject.java
src/jdk/nashorn/internal/objects/PrototypeObject.java
+1
-1
src/jdk/nashorn/internal/objects/ScriptFunctionImpl.java
src/jdk/nashorn/internal/objects/ScriptFunctionImpl.java
+6
-1
未找到文件。
make/project.properties
浏览文件 @
0c927f53
...
...
@@ -209,11 +209,14 @@ run.test.classpath=\
src.dir
=
src
test.src.dir
=
test/src
run.test.xmx
=
3G
run.test.xms
=
2G
# -XX:+PrintCompilation -XX:+UnlockDiagnosticVMOptions -XX:+PrintNMethods
# add '-Dtest.js.outofprocess' to run each test in a new sub-process
run.test.jvmargs
=
-server -Xmx
3G
-XX:-TieredCompilation -esa -ea -Dnashorn.debug=true -Dfile.encoding=UTF-8
run.test.jvmargs
=
-server -Xmx
${run.test.xmx}
-XX:-TieredCompilation -esa -ea -Dnashorn.debug=true -Dfile.encoding=UTF-8
#-XX:+HeapDumpOnOutOfMemoryError -XX:-UseCompressedKlassPointers -XX:+PrintHeapAtGC -XX:ClassMetaspaceSize=300M
run.test.jvmargs.octane
=
-Xms
2G -Xmx2G
${run.test.jvmargs}
run.test.jvmargs.octane
=
-Xms
${run.test.xms} -
${run.test.jvmargs}
run.test.jvmsecurityargs
=
-Xverify:all -Djava.security.manager -Djava.security.policy=${basedir}/build/nashorn.policy
...
...
src/jdk/nashorn/internal/objects/Global.java
浏览文件 @
0c927f53
...
...
@@ -1658,6 +1658,6 @@ public final class Global extends ScriptObject implements GlobalObject, Scope {
private
static
MethodHandle
findOwnMH
(
final
String
name
,
final
Class
<?>
rtype
,
final
Class
<?>...
types
)
{
return
MH
.
findStatic
(
MethodHandles
.
l
ookup
(),
Global
.
class
,
name
,
MH
.
type
(
rtype
,
types
));
return
MH
.
findStatic
(
MethodHandles
.
publicL
ookup
(),
Global
.
class
,
name
,
MH
.
type
(
rtype
,
types
));
}
}
src/jdk/nashorn/internal/objects/NativeArguments.java
浏览文件 @
0c927f53
...
...
@@ -619,7 +619,7 @@ public final class NativeArguments extends ScriptObject {
}
private
static
MethodHandle
findOwnMH
(
final
String
name
,
final
Class
<?>
rtype
,
final
Class
<?>...
types
)
{
return
MH
.
findStatic
(
MethodHandles
.
l
ookup
(),
NativeArguments
.
class
,
name
,
MH
.
type
(
rtype
,
types
));
return
MH
.
findStatic
(
MethodHandles
.
publicL
ookup
(),
NativeArguments
.
class
,
name
,
MH
.
type
(
rtype
,
types
));
}
}
src/jdk/nashorn/internal/objects/NativeBoolean.java
浏览文件 @
0c927f53
...
...
@@ -37,6 +37,7 @@ import jdk.nashorn.internal.objects.annotations.ScriptClass;
import
jdk.nashorn.internal.runtime.JSType
;
import
jdk.nashorn.internal.runtime.ScriptObject
;
import
jdk.nashorn.internal.runtime.ScriptRuntime
;
import
jdk.nashorn.internal.runtime.linker.MethodHandleFactory
;
import
jdk.nashorn.internal.runtime.linker.NashornCallSiteDescriptor
;
import
jdk.nashorn.internal.runtime.linker.PrimitiveLookup
;
import
org.dynalang.dynalink.linker.GuardedInvocation
;
...
...
@@ -175,7 +176,7 @@ public final class NativeBoolean extends ScriptObject {
try
{
return
MethodHandles
.
lookup
().
findStatic
(
NativeBoolean
.
class
,
"wrapFilter"
,
MH
.
type
(
NativeBoolean
.
class
,
Object
.
class
));
}
catch
(
NoSuchMethodException
|
IllegalAccessException
e
)
{
throw
new
AssertionError
(
e
);
throw
new
MethodHandleFactory
.
LookupException
(
e
);
}
}
}
src/jdk/nashorn/internal/objects/NativeError.java
浏览文件 @
0c927f53
...
...
@@ -320,6 +320,6 @@ public class NativeError extends ScriptObject {
}
private
static
MethodHandle
findOwnMH
(
final
String
name
,
final
Class
<?>
rtype
,
final
Class
<?>...
types
)
{
return
MH
.
findStatic
(
MethodHandles
.
l
ookup
(),
NativeError
.
class
,
name
,
MH
.
type
(
rtype
,
types
));
return
MH
.
findStatic
(
MethodHandles
.
publicL
ookup
(),
NativeError
.
class
,
name
,
MH
.
type
(
rtype
,
types
));
}
}
src/jdk/nashorn/internal/objects/NativeJSAdapter.java
浏览文件 @
0c927f53
...
...
@@ -44,6 +44,7 @@ import jdk.nashorn.internal.runtime.ScriptObject;
import
jdk.nashorn.internal.runtime.ScriptRuntime
;
import
jdk.nashorn.internal.runtime.arrays.ArrayLikeIterator
;
import
jdk.nashorn.internal.runtime.linker.Lookup
;
import
jdk.nashorn.internal.runtime.linker.MethodHandleFactory
;
import
org.dynalang.dynalink.CallSiteDescriptor
;
import
org.dynalang.dynalink.linker.GuardedInvocation
;
...
...
@@ -737,7 +738,7 @@ public final class NativeJSAdapter extends ScriptObject {
try
{
return
MethodHandles
.
lookup
().
findStatic
(
NativeJSAdapter
.
class
,
name
,
MH
.
type
(
rtype
,
types
));
}
catch
(
final
NoSuchMethodException
|
IllegalAccessException
e
)
{
throw
new
AssertionError
(
e
);
throw
new
MethodHandleFactory
.
LookupException
(
e
);
}
}
}
src/jdk/nashorn/internal/objects/NativeNumber.java
浏览文件 @
0c927f53
...
...
@@ -45,6 +45,7 @@ import jdk.nashorn.internal.objects.annotations.Where;
import
jdk.nashorn.internal.runtime.JSType
;
import
jdk.nashorn.internal.runtime.ScriptObject
;
import
jdk.nashorn.internal.runtime.ScriptRuntime
;
import
jdk.nashorn.internal.runtime.linker.MethodHandleFactory
;
import
jdk.nashorn.internal.runtime.linker.NashornCallSiteDescriptor
;
import
jdk.nashorn.internal.runtime.linker.PrimitiveLookup
;
import
org.dynalang.dynalink.linker.GuardedInvocation
;
...
...
@@ -382,7 +383,7 @@ public final class NativeNumber extends ScriptObject {
try
{
return
MethodHandles
.
lookup
().
findStatic
(
NativeNumber
.
class
,
"wrapFilter"
,
MH
.
type
(
NativeNumber
.
class
,
Object
.
class
));
}
catch
(
final
NoSuchMethodException
|
IllegalAccessException
e
)
{
throw
new
AssertionError
(
e
);
throw
new
MethodHandleFactory
.
LookupException
(
e
);
}
}
}
src/jdk/nashorn/internal/objects/NativeStrictArguments.java
浏览文件 @
0c927f53
...
...
@@ -142,6 +142,6 @@ public final class NativeStrictArguments extends ScriptObject {
}
private
static
MethodHandle
findOwnMH
(
final
String
name
,
final
Class
<?>
rtype
,
final
Class
<?>...
types
)
{
return
MH
.
findStatic
(
MethodHandles
.
l
ookup
(),
NativeStrictArguments
.
class
,
name
,
MH
.
type
(
rtype
,
types
));
return
MH
.
findStatic
(
MethodHandles
.
publicL
ookup
(),
NativeStrictArguments
.
class
,
name
,
MH
.
type
(
rtype
,
types
));
}
}
src/jdk/nashorn/internal/objects/NativeString.java
浏览文件 @
0c927f53
...
...
@@ -53,6 +53,7 @@ import jdk.nashorn.internal.runtime.ScriptFunction;
import
jdk.nashorn.internal.runtime.ScriptObject
;
import
jdk.nashorn.internal.runtime.ScriptRuntime
;
import
jdk.nashorn.internal.runtime.arrays.ArrayIndex
;
import
jdk.nashorn.internal.runtime.linker.MethodHandleFactory
;
import
jdk.nashorn.internal.runtime.linker.NashornCallSiteDescriptor
;
import
jdk.nashorn.internal.runtime.linker.NashornGuards
;
import
jdk.nashorn.internal.runtime.linker.PrimitiveLookup
;
...
...
@@ -931,7 +932,7 @@ public final class NativeString extends ScriptObject {
try
{
return
MethodHandles
.
lookup
().
findStatic
(
NativeString
.
class
,
"wrapFilter"
,
MH
.
type
(
NativeString
.
class
,
Object
.
class
));
}
catch
(
final
NoSuchMethodException
|
IllegalAccessException
e
)
{
throw
new
AssertionError
(
e
);
throw
new
MethodHandleFactory
.
LookupException
(
e
);
}
}
}
src/jdk/nashorn/internal/objects/PrototypeObject.java
浏览文件 @
0c927f53
...
...
@@ -106,6 +106,6 @@ public class PrototypeObject extends ScriptObject {
}
private
static
MethodHandle
findOwnMH
(
final
String
name
,
final
Class
<?>
rtype
,
final
Class
<?>...
types
)
{
return
MH
.
findStatic
(
MethodHandles
.
l
ookup
(),
PrototypeObject
.
class
,
name
,
MH
.
type
(
rtype
,
types
));
return
MH
.
findStatic
(
MethodHandles
.
publicL
ookup
(),
PrototypeObject
.
class
,
name
,
MH
.
type
(
rtype
,
types
));
}
}
src/jdk/nashorn/internal/objects/ScriptFunctionImpl.java
浏览文件 @
0c927f53
...
...
@@ -39,6 +39,7 @@ import jdk.nashorn.internal.runtime.ScriptObject;
import
jdk.nashorn.internal.runtime.ScriptRuntime
;
import
jdk.nashorn.internal.runtime.Source
;
import
jdk.nashorn.internal.runtime.linker.Lookup
;
import
jdk.nashorn.internal.runtime.linker.MethodHandleFactory
;
/**
* Concrete implementation of ScriptFunction. This sets correct map for the
...
...
@@ -340,6 +341,10 @@ public class ScriptFunctionImpl extends ScriptFunction {
}
private
static
MethodHandle
findOwnMH
(
final
String
name
,
final
Class
<?>
rtype
,
final
Class
<?>...
types
)
{
return
MH
.
findStatic
(
MethodHandles
.
lookup
(),
ScriptFunctionImpl
.
class
,
name
,
MH
.
type
(
rtype
,
types
));
try
{
return
MethodHandles
.
lookup
().
findStatic
(
ScriptFunctionImpl
.
class
,
name
,
MH
.
type
(
rtype
,
types
));
}
catch
(
final
NoSuchMethodException
|
IllegalAccessException
e
)
{
throw
new
MethodHandleFactory
.
LookupException
(
e
);
}
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录