Revision f230a1cf deps/v8/src/mips/code-stubs-mips.h
deps/v8/src/mips/code-stubs-mips.h | ||
---|---|---|
268 | 268 |
}; |
269 | 269 |
|
270 | 270 |
|
271 |
class NumberToStringStub: public PlatformCodeStub { |
|
272 |
public: |
|
273 |
NumberToStringStub() { } |
|
274 |
|
|
275 |
// Generate code to do a lookup in the number string cache. If the number in |
|
276 |
// the register object is found in the cache the generated code falls through |
|
277 |
// with the result in the result register. The object and the result register |
|
278 |
// can be the same. If the number is not found in the cache the code jumps to |
|
279 |
// the label not_found with only the content of register object unchanged. |
|
280 |
static void GenerateLookupNumberStringCache(MacroAssembler* masm, |
|
281 |
Register object, |
|
282 |
Register result, |
|
283 |
Register scratch1, |
|
284 |
Register scratch2, |
|
285 |
Register scratch3, |
|
286 |
Label* not_found); |
|
287 |
|
|
288 |
private: |
|
289 |
Major MajorKey() { return NumberToString; } |
|
290 |
int MinorKey() { return 0; } |
|
291 |
|
|
292 |
void Generate(MacroAssembler* masm); |
|
293 |
}; |
|
294 |
|
|
295 |
|
|
296 | 271 |
class RecordWriteStub: public PlatformCodeStub { |
297 | 272 |
public: |
298 | 273 |
RecordWriteStub(Register object, |
... | ... | |
480 | 455 |
}; |
481 | 456 |
|
482 | 457 |
|
483 |
// Enter C code from generated RegExp code in a way that allows |
|
484 |
// the C code to fix the return address in case of a GC. |
|
485 |
// Currently only needed on ARM and MIPS. |
|
486 |
class RegExpCEntryStub: public PlatformCodeStub { |
|
487 |
public: |
|
488 |
RegExpCEntryStub() {} |
|
489 |
virtual ~RegExpCEntryStub() {} |
|
490 |
void Generate(MacroAssembler* masm); |
|
491 |
|
|
492 |
private: |
|
493 |
Major MajorKey() { return RegExpCEntry; } |
|
494 |
int MinorKey() { return 0; } |
|
495 |
|
|
496 |
bool NeedsImmovableCode() { return true; } |
|
497 |
}; |
|
498 |
|
|
499 | 458 |
// Trampoline stub to call into native code. To call safely into native code |
500 | 459 |
// in the presence of compacting GC (which can move code objects) we need to |
501 | 460 |
// keep the code which called into native pinned in the memory. Currently the |
Also available in: Unified diff