~ubuntu-branches/ubuntu/trusty/libv8/trusty

« back to all changes in this revision

Viewing changes to src/lithium.cc

  • Committer: Package Import Robot
  • Author(s): Jérémy Lal
  • Date: 2012-02-20 14:08:17 UTC
  • mfrom: (15.1.24 sid)
  • Revision ID: package-import@ubuntu.com-20120220140817-bsvmeoa4sxsj5hbz
Tags: 3.7.12.22-3
Fix mipsel build, allow test debug-step-3 to fail (non-crucial)

Show diffs side-by-side

added added

removed removed

Lines of Context:
156
156
}
157
157
 
158
158
 
 
159
void LPointerMap::RemovePointer(LOperand* op) {
 
160
  // Do not record arguments as pointers.
 
161
  if (op->IsStackSlot() && op->index() < 0) return;
 
162
  ASSERT(!op->IsDoubleRegister() && !op->IsDoubleStackSlot());
 
163
  for (int i = 0; i < pointer_operands_.length(); ++i) {
 
164
    if (pointer_operands_[i]->Equals(op)) {
 
165
      pointer_operands_.Remove(i);
 
166
      --i;
 
167
    }
 
168
  }
 
169
}
 
170
 
 
171
 
 
172
void LPointerMap::RecordUntagged(LOperand* op) {
 
173
  // Do not record arguments as pointers.
 
174
  if (op->IsStackSlot() && op->index() < 0) return;
 
175
  ASSERT(!op->IsDoubleRegister() && !op->IsDoubleStackSlot());
 
176
  untagged_operands_.Add(op);
 
177
}
 
178
 
 
179
 
159
180
void LPointerMap::PrintTo(StringStream* stream) {
160
181
  stream->Add("{");
161
182
  for (int i = 0; i < pointer_operands_.length(); ++i) {
182
203
    case EXTERNAL_DOUBLE_ELEMENTS:
183
204
    case FAST_DOUBLE_ELEMENTS:
184
205
      return 3;
 
206
    case FAST_SMI_ONLY_ELEMENTS:
185
207
    case FAST_ELEMENTS:
186
208
    case DICTIONARY_ELEMENTS:
187
209
    case NON_STRICT_ARGUMENTS_ELEMENTS: