Revision f230a1cf deps/v8/src/ia32/code-stubs-ia32.h
deps/v8/src/ia32/code-stubs-ia32.h | ||
---|---|---|
217 | 217 |
}; |
218 | 218 |
|
219 | 219 |
|
220 |
class NumberToStringStub: public PlatformCodeStub { |
|
221 |
public: |
|
222 |
NumberToStringStub() { } |
|
223 |
|
|
224 |
// Generate code to do a lookup in the number string cache. If the number in |
|
225 |
// the register object is found in the cache the generated code falls through |
|
226 |
// with the result in the result register. The object and the result register |
|
227 |
// can be the same. If the number is not found in the cache the code jumps to |
|
228 |
// the label not_found with only the content of register object unchanged. |
|
229 |
static void GenerateLookupNumberStringCache(MacroAssembler* masm, |
|
230 |
Register object, |
|
231 |
Register result, |
|
232 |
Register scratch1, |
|
233 |
Register scratch2, |
|
234 |
Label* not_found); |
|
235 |
|
|
236 |
private: |
|
237 |
Major MajorKey() { return NumberToString; } |
|
238 |
int MinorKey() { return 0; } |
|
239 |
|
|
240 |
void Generate(MacroAssembler* masm); |
|
241 |
}; |
|
242 |
|
|
243 |
|
|
244 | 220 |
class NameDictionaryLookupStub: public PlatformCodeStub { |
245 | 221 |
public: |
246 | 222 |
enum LookupMode { POSITIVE_LOOKUP, NEGATIVE_LOOKUP }; |
... | ... | |
468 | 444 |
// Save all XMM registers except XMM0. |
469 | 445 |
for (int i = XMMRegister::kNumRegisters - 1; i > 0; i--) { |
470 | 446 |
XMMRegister reg = XMMRegister::from_code(i); |
471 |
masm->movdbl(Operand(esp, (i - 1) * kDoubleSize), reg);
|
|
447 |
masm->movsd(Operand(esp, (i - 1) * kDoubleSize), reg);
|
|
472 | 448 |
} |
473 | 449 |
} |
474 | 450 |
} |
... | ... | |
480 | 456 |
// Restore all XMM registers except XMM0. |
481 | 457 |
for (int i = XMMRegister::kNumRegisters - 1; i > 0; i--) { |
482 | 458 |
XMMRegister reg = XMMRegister::from_code(i); |
483 |
masm->movdbl(reg, Operand(esp, (i - 1) * kDoubleSize));
|
|
459 |
masm->movsd(reg, Operand(esp, (i - 1) * kDoubleSize));
|
|
484 | 460 |
} |
485 | 461 |
masm->add(esp, |
486 | 462 |
Immediate(kDoubleSize * (XMMRegister::kNumRegisters - 1))); |
Also available in: Unified diff