当前位置: 首页>>代码示例>>Java>>正文


Java DataSectionReference.setOffset方法代码示例

本文整理汇总了Java中jdk.vm.ci.code.site.DataSectionReference.setOffset方法的典型用法代码示例。如果您正苦于以下问题:Java DataSectionReference.setOffset方法的具体用法?Java DataSectionReference.setOffset怎么用?Java DataSectionReference.setOffset使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在jdk.vm.ci.code.site.DataSectionReference的用法示例。


在下文中一共展示了DataSectionReference.setOffset方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: emitLoadFloat

import jdk.vm.ci.code.site.DataSectionReference; //导入方法依赖的package包/类
@Override
public Register emitLoadFloat(float c) {
    DataSectionReference ref = new DataSectionReference();
    ref.setOffset(data.position());
    data.emitFloat(c);

    recordDataPatchInCode(ref);
    Register ret = AMD64.xmm0;
    emitREX(false, ret.encoding, 0, 0);
    code.emitByte(0xF3);
    code.emitByte(0x0F);
    code.emitByte(0x10);                               // MOVSS xmm1, xmm2/m32
    code.emitByte(0x05 | ((ret.encoding & 0x7) << 3)); // xmm, [rip+offset]
    code.emitInt(0xDEADDEAD);
    return ret;
}
 
开发者ID:campolake,项目名称:openjdk9,代码行数:17,代码来源:AMD64TestAssembler.java

示例2: emitLoadFloat

import jdk.vm.ci.code.site.DataSectionReference; //导入方法依赖的package包/类
public Register emitLoadFloat(Register ret, float c) {
    DataSectionReference ref = new DataSectionReference();
    ref.setOffset(data.position());
    data.emitFloat(c);

    recordDataPatchInCode(ref);
    emitREX(false, ret.encoding, 0, 0);
    code.emitByte(0xF3);
    code.emitByte(0x0F);
    code.emitByte(0x10);                               // MOVSS xmm1, xmm2/m32
    code.emitByte(0x05 | ((ret.encoding & 0x7) << 3)); // xmm, [rip+offset]
    code.emitInt(0xDEADDEAD);
    return ret;
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:15,代码来源:AMD64TestAssembler.java

示例3: emitLoadDouble

import jdk.vm.ci.code.site.DataSectionReference; //导入方法依赖的package包/类
public Register emitLoadDouble(Register ret, double c) {
    DataSectionReference ref = new DataSectionReference();
    ref.setOffset(data.position());
    data.emitDouble(c);

    recordDataPatchInCode(ref);
    emitREX(false, ret.encoding, 0, 0);
    code.emitByte(0xF2);
    code.emitByte(0x0F);
    code.emitByte(0x10);                               // MOVSD xmm1, xmm2/m32
    code.emitByte(0x05 | ((ret.encoding & 0x7) << 3)); // xmm, [rip+offset]
    code.emitInt(0xDEADDEAD);
    return ret;
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:15,代码来源:AMD64TestAssembler.java

示例4: emitDataItem

import jdk.vm.ci.code.site.DataSectionReference; //导入方法依赖的package包/类
public DataSectionReference emitDataItem(HotSpotConstant c) {
    DataSectionReference ref = new DataSectionReference();
    ref.setOffset(data.position());

    recordDataPatchInData(new ConstantReference((VMConstant) c));
    if (c.isCompressed()) {
        data.emitInt(0xDEADDEAD);
    } else {
        data.emitLong(0xDEADDEADDEADDEADL);
    }

    return ref;
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:14,代码来源:TestAssembler.java

示例5: loadLongToRegister

import jdk.vm.ci.code.site.DataSectionReference; //导入方法依赖的package包/类
private void loadLongToRegister(long c, Register ret) {
    DataSectionReference ref = new DataSectionReference();
    data.align(8);
    ref.setOffset(data.position());
    data.emitLong(c);
    emitLoadPointerToRegister(ref, ret);
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:8,代码来源:SPARCTestAssembler.java

示例6: testInvalidDataSectionReference

import jdk.vm.ci.code.site.DataSectionReference; //导入方法依赖的package包/类
@Test(expected = JVMCIError.class)
public void testInvalidDataSectionReference() {
    DataSectionReference ref = new DataSectionReference();
    ref.setOffset(0);
    installEmptyCode(new Site[0], new Assumption[0], new Comment[0], 16, new DataPatch[]{new DataPatch(0, ref)}, null);
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:7,代码来源:TestInvalidCompilationResult.java

示例7: testOutOfBoundsDataSectionReference

import jdk.vm.ci.code.site.DataSectionReference; //导入方法依赖的package包/类
@Test(expected = JVMCIError.class)
public void testOutOfBoundsDataSectionReference() {
    DataSectionReference ref = new DataSectionReference();
    ref.setOffset(0x1000);
    installEmptyCode(new Site[]{new DataPatch(0, ref)}, new Assumption[0], new Comment[0], 16, new DataPatch[0], null);
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:7,代码来源:TestInvalidCompilationResult.java


注:本文中的jdk.vm.ci.code.site.DataSectionReference.setOffset方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。