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

« back to all changes in this revision

Viewing changes to src/mips/assembler-mips-inl.h

  • 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:
30
30
 
31
31
// The original source code covered by the above license above has been
32
32
// modified significantly by Google Inc.
33
 
// Copyright 2011 the V8 project authors. All rights reserved.
 
33
// Copyright 2012 the V8 project authors. All rights reserved.
34
34
 
35
35
 
36
36
#ifndef V8_MIPS_ASSEMBLER_MIPS_INL_H_
37
37
#define V8_MIPS_ASSEMBLER_MIPS_INL_H_
38
38
 
39
39
#include "mips/assembler-mips.h"
 
40
 
40
41
#include "cpu.h"
41
42
#include "debug.h"
42
43
 
78
79
}
79
80
 
80
81
 
 
82
int FPURegister::ToAllocationIndex(FPURegister reg) {
 
83
  ASSERT(reg.code() % 2 == 0);
 
84
  ASSERT(reg.code() / 2 < kNumAllocatableRegisters);
 
85
  ASSERT(reg.is_valid());
 
86
  ASSERT(!reg.is(kDoubleRegZero));
 
87
  ASSERT(!reg.is(kLithiumScratchDouble));
 
88
  return (reg.code() / 2);
 
89
}
 
90
 
 
91
 
81
92
// -----------------------------------------------------------------------------
82
93
// RelocInfo.
83
94
 
133
144
}
134
145
 
135
146
 
136
 
Handle<Object> RelocInfo::target_object_handle(Assembler *origin) {
 
147
Handle<Object> RelocInfo::target_object_handle(Assembler* origin) {
137
148
  ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT);
138
149
  return Handle<Object>(reinterpret_cast<Object**>(
139
150
      Assembler::target_address_at(pc_)));