Mercurial > hg > truffle
comparison src/cpu/x86/vm/nativeInst_x86.cpp @ 21559:be896a1983c0
recast all Graal native code as JVMCI code (JBS:GRAAL-53)
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Thu, 28 May 2015 15:36:48 +0200 |
parents | 52b4284cb496 |
children |
comparison
equal
deleted
inserted
replaced
21558:d563baeca9df | 21559:be896a1983c0 |
---|---|
472 // entry point is in same cache line as unverified entry point, and the instruction being | 472 // entry point is in same cache line as unverified entry point, and the instruction being |
473 // patched is >= 5 byte (size of patch). | 473 // patched is >= 5 byte (size of patch). |
474 // | 474 // |
475 // In C2 the 5+ byte sized instruction is enforced by code in MachPrologNode::emit. | 475 // In C2 the 5+ byte sized instruction is enforced by code in MachPrologNode::emit. |
476 // In C1 the restriction is enforced by CodeEmitter::method_entry | 476 // In C1 the restriction is enforced by CodeEmitter::method_entry |
477 // In Graal, the restriction is enforced by HotSpotFrameContext.enter(...) | 477 // In JVMCI, the restriction is enforced by HotSpotFrameContext.enter(...) |
478 // | 478 // |
479 void NativeJump::patch_verified_entry(address entry, address verified_entry, address dest) { | 479 void NativeJump::patch_verified_entry(address entry, address verified_entry, address dest) { |
480 // complete jump instruction (to be inserted) is in code_buffer; | 480 // complete jump instruction (to be inserted) is in code_buffer; |
481 unsigned char code_buffer[5]; | 481 unsigned char code_buffer[5]; |
482 code_buffer[0] = instruction_code; | 482 code_buffer[0] = instruction_code; |