~ubuntu-branches/ubuntu/wily/luajit/wily

« back to all changes in this revision

Viewing changes to src/lj_asm_ppc.h

  • Committer: Package Import Robot
  • Author(s): Enrico Tassi
  • Date: 2015-08-14 16:40:52 UTC
  • mfrom: (1.2.5)
  • Revision ID: package-import@ubuntu.com-20150814164052-prd0p1tz8zdupc28
Tags: 2.0.4+dfsg-1
* New upstream release (Close: #789321)
* Build on Hurd (Close: #712975)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
** PPC IR assembler (SSA IR -> machine code).
3
 
** Copyright (C) 2005-2014 Mike Pall. See Copyright Notice in luajit.h
 
3
** Copyright (C) 2005-2015 Mike Pall. See Copyright Notice in luajit.h
4
4
*/
5
5
 
6
6
/* -- Register allocator extensions --------------------------------------- */
49
49
{
50
50
  ExitNo i;
51
51
  MCode *mxp = as->mctop;
 
52
  if (mxp - (nexits + 3 + MCLIM_REDZONE) < as->mclim)
 
53
    asm_mclimit(as);
52
54
  /* 1: mflr r0; bl ->vm_exit_handler; li r0, traceno; bl <1; bl <1; ... */
53
55
  for (i = nexits-1; (int32_t)i >= 0; i--)
54
56
    *--mxp = PPCI_BL|(((-3-i)&0x00ffffffu)<<2);