~ubuntu-branches/ubuntu/saucy/libv8/saucy

« back to all changes in this revision

Viewing changes to test/cctest/test-disasm-mips.cc

  • Committer: Package Import Robot
  • Author(s): Jérémy Lal
  • Date: 2012-04-07 16:26:13 UTC
  • mfrom: (15.1.27 sid)
  • Revision ID: package-import@ubuntu.com-20120407162613-dqo1m6w9r3fh8tst
Tags: 3.8.9.16-3
* mipsel build fixes :
  + v8_use_mips_abi_hardfloat=false, this lowers EABI requirements.
  + v8_can_use_fpu_instructions=false, detect if FPU is present.
  + set -Wno-unused-but-set-variable only on mipsel.

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
}
72
72
 
73
73
 
74
 
// Setup V8 to a state where we can at least run the assembler and
 
74
// Set up V8 to a state where we can at least run the assembler and
75
75
// disassembler. Declare the variables and allocate the data structures used
76
76
// in the rest of the macros.
77
 
#define SETUP()                                           \
 
77
#define SET_UP()                                           \
78
78
  InitializeVM();                                         \
79
79
  v8::HandleScope scope;                                  \
80
80
  byte *buffer = reinterpret_cast<byte*>(malloc(4*1024)); \
104
104
 
105
105
 
106
106
TEST(Type0) {
107
 
  SETUP();
 
107
  SET_UP();
108
108
 
109
109
  COMPARE(addu(a0, a1, a2),
110
110
          "00a62021       addu    a0, a1, a2");