Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: src/mips/code-stubs-mips.h

Issue 153953005: A64: Synchronize with r16993. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/mips/builtins-mips.cc ('k') | src/mips/code-stubs-mips.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 return IntRegisterBits::encode(the_int_.code()) 261 return IntRegisterBits::encode(the_int_.code())
262 | HeapNumberRegisterBits::encode(the_heap_number_.code()) 262 | HeapNumberRegisterBits::encode(the_heap_number_.code())
263 | ScratchRegisterBits::encode(scratch_.code()) 263 | ScratchRegisterBits::encode(scratch_.code())
264 | SignRegisterBits::encode(sign_.code()); 264 | SignRegisterBits::encode(sign_.code());
265 } 265 }
266 266
267 void Generate(MacroAssembler* masm); 267 void Generate(MacroAssembler* masm);
268 }; 268 };
269 269
270 270
271 class NumberToStringStub: public PlatformCodeStub {
272 public:
273 NumberToStringStub() { }
274
275 private:
276 Major MajorKey() { return NumberToString; }
277 int MinorKey() { return 0; }
278
279 void Generate(MacroAssembler* masm);
280 };
281
282
283 class RecordWriteStub: public PlatformCodeStub { 271 class RecordWriteStub: public PlatformCodeStub {
284 public: 272 public:
285 RecordWriteStub(Register object, 273 RecordWriteStub(Register object,
286 Register value, 274 Register value,
287 Register address, 275 Register address,
288 RememberedSetAction remembered_set_action, 276 RememberedSetAction remembered_set_action,
289 SaveFPRegsMode fp_mode) 277 SaveFPRegsMode fp_mode)
290 : object_(object), 278 : object_(object),
291 value_(value), 279 value_(value),
292 address_(address), 280 address_(address),
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
460 Register object_; 448 Register object_;
461 Register value_; 449 Register value_;
462 Register address_; 450 Register address_;
463 RememberedSetAction remembered_set_action_; 451 RememberedSetAction remembered_set_action_;
464 SaveFPRegsMode save_fp_regs_mode_; 452 SaveFPRegsMode save_fp_regs_mode_;
465 Label slow_; 453 Label slow_;
466 RegisterAllocation regs_; 454 RegisterAllocation regs_;
467 }; 455 };
468 456
469 457
470 // Enter C code from generated RegExp code in a way that allows
471 // the C code to fix the return address in case of a GC.
472 // Currently only needed on ARM and MIPS.
473 class RegExpCEntryStub: public PlatformCodeStub {
474 public:
475 RegExpCEntryStub() {}
476 virtual ~RegExpCEntryStub() {}
477 void Generate(MacroAssembler* masm);
478
479 private:
480 Major MajorKey() { return RegExpCEntry; }
481 int MinorKey() { return 0; }
482
483 bool NeedsImmovableCode() { return true; }
484 };
485
486 // Trampoline stub to call into native code. To call safely into native code 458 // Trampoline stub to call into native code. To call safely into native code
487 // in the presence of compacting GC (which can move code objects) we need to 459 // in the presence of compacting GC (which can move code objects) we need to
488 // keep the code which called into native pinned in the memory. Currently the 460 // keep the code which called into native pinned in the memory. Currently the
489 // simplest approach is to generate such stub early enough so it can never be 461 // simplest approach is to generate such stub early enough so it can never be
490 // moved by GC 462 // moved by GC
491 class DirectCEntryStub: public PlatformCodeStub { 463 class DirectCEntryStub: public PlatformCodeStub {
492 public: 464 public:
493 DirectCEntryStub() {} 465 DirectCEntryStub() {}
494 void Generate(MacroAssembler* masm); 466 void Generate(MacroAssembler* masm);
495 void GenerateCall(MacroAssembler* masm, Register target); 467 void GenerateCall(MacroAssembler* masm, Register target);
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 520
549 class LookupModeBits: public BitField<LookupMode, 0, 1> {}; 521 class LookupModeBits: public BitField<LookupMode, 0, 1> {};
550 522
551 LookupMode mode_; 523 LookupMode mode_;
552 }; 524 };
553 525
554 526
555 } } // namespace v8::internal 527 } } // namespace v8::internal
556 528
557 #endif // V8_MIPS_CODE_STUBS_ARM_H_ 529 #endif // V8_MIPS_CODE_STUBS_ARM_H_
OLDNEW
« no previous file with comments | « src/mips/builtins-mips.cc ('k') | src/mips/code-stubs-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698