~ubuntu-branches/ubuntu/trusty/luajit/trusty

« back to all changes in this revision

Viewing changes to src/lj_emit_x86.h

  • Committer: Package Import Robot
  • Author(s): Enrico Tassi
  • Date: 2012-11-03 14:07:56 UTC
  • mfrom: (1.2.1) (15.1.1 experimental)
  • Revision ID: package-import@ubuntu.com-20121103140756-z0zcnyrwqlvuc2m5
Tags: 2.0.0+dfsg-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
** x86/x64 instruction emitter.
3
 
** Copyright (C) 2005-2011 Mike Pall. See Copyright Notice in luajit.h
 
3
** Copyright (C) 2005-2012 Mike Pall. See Copyright Notice in luajit.h
4
4
*/
5
5
 
6
6
/* -- Emit basic instructions --------------------------------------------- */
383
383
  as->mcp = p - 6;
384
384
}
385
385
 
 
386
/* jmp target */
 
387
static void emit_jmp(ASMState *as, MCode *target)
 
388
{
 
389
  MCode *p = as->mcp;
 
390
  *(int32_t *)(p-4) = jmprel(p, target);
 
391
  p[-5] = XI_JMP;
 
392
  as->mcp = p - 5;
 
393
}
 
394
 
386
395
/* call target */
387
396
static void emit_call_(ASMState *as, MCode *target)
388
397
{