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

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

Issue 7122003: Make x64 to use the RecordWrite stub. This is a step towards getting (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: '' Created 9 years, 6 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/ia32/assembler-ia32.h ('k') | src/ia32/code-stubs-ia32.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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 559 matching lines...) Expand 10 before | Expand all | Expand 10 after
570 public: 570 public:
571 RegisterAllocation(Register object, 571 RegisterAllocation(Register object,
572 Register address, 572 Register address,
573 Register scratch0) 573 Register scratch0)
574 : object_orig_(object), 574 : object_orig_(object),
575 address_orig_(address), 575 address_orig_(address),
576 scratch0_orig_(scratch0), 576 scratch0_orig_(scratch0),
577 object_(object), 577 object_(object),
578 address_(address), 578 address_(address),
579 scratch0_(scratch0) { 579 scratch0_(scratch0) {
580 ASSERT(!Aliasing(scratch0, object, address, no_reg)); 580 ASSERT(!AreAliased(scratch0, object, address, no_reg));
581 scratch1_ = GetRegThatIsNotEcxOr(object_, address_, scratch0_); 581 scratch1_ = GetRegThatIsNotEcxOr(object_, address_, scratch0_);
582 if (scratch0.is(ecx)) { 582 if (scratch0.is(ecx)) {
583 scratch0_ = GetRegThatIsNotEcxOr(object_, address_, scratch1_); 583 scratch0_ = GetRegThatIsNotEcxOr(object_, address_, scratch1_);
584 } 584 }
585 if (object.is(ecx)) { 585 if (object.is(ecx)) {
586 object_ = GetRegThatIsNotEcxOr(address_, scratch0_, scratch1_); 586 object_ = GetRegThatIsNotEcxOr(address_, scratch0_, scratch1_);
587 } 587 }
588 if (address.is(ecx)) { 588 if (address.is(ecx)) {
589 address_ = GetRegThatIsNotEcxOr(object_, scratch0_, scratch1_); 589 address_ = GetRegThatIsNotEcxOr(object_, scratch0_, scratch1_);
590 } 590 }
591 ASSERT(!Aliasing(scratch0_, object_, address_, ecx)); 591 ASSERT(!AreAliased(scratch0_, object_, address_, ecx));
592 } 592 }
593 593
594 void Save(MacroAssembler* masm) { 594 void Save(MacroAssembler* masm) {
595 ASSERT(!address_orig_.is(object_)); 595 ASSERT(!address_orig_.is(object_));
596 ASSERT(object_.is(object_orig_) || address_.is(address_orig_)); 596 ASSERT(object_.is(object_orig_) || address_.is(address_orig_));
597 ASSERT(!Aliasing(object_, address_, scratch1_, scratch0_)); 597 ASSERT(!AreAliased(object_, address_, scratch1_, scratch0_));
598 ASSERT(!Aliasing(object_orig_, address_, scratch1_, scratch0_)); 598 ASSERT(!AreAliased(object_orig_, address_, scratch1_, scratch0_));
599 ASSERT(!Aliasing(object_, address_orig_, scratch1_, scratch0_)); 599 ASSERT(!AreAliased(object_, address_orig_, scratch1_, scratch0_));
600 // We don't have to save scratch0_orig_ because it was given to us as 600 // We don't have to save scratch0_orig_ because it was given to us as
601 // a scratch register. But if we had to switch to a different reg then 601 // a scratch register. But if we had to switch to a different reg then
602 // we should save the new scratch0_. 602 // we should save the new scratch0_.
603 if (!scratch0_.is(scratch0_orig_)) masm->push(scratch0_); 603 if (!scratch0_.is(scratch0_orig_)) masm->push(scratch0_);
604 if (!ecx.is(scratch0_orig_) && 604 if (!ecx.is(scratch0_orig_) &&
605 !ecx.is(object_orig_) && 605 !ecx.is(object_orig_) &&
606 !ecx.is(address_orig_)) { 606 !ecx.is(address_orig_)) {
607 masm->push(ecx); 607 masm->push(ecx);
608 } 608 }
609 masm->push(scratch1_); 609 masm->push(scratch1_);
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
779 Register scratch1, 779 Register scratch1,
780 bool load_elements_from_receiver, 780 bool load_elements_from_receiver,
781 Label* key_not_smi, 781 Label* key_not_smi,
782 Label* value_not_smi, 782 Label* value_not_smi,
783 Label* not_pixel_array, 783 Label* not_pixel_array,
784 Label* out_of_range); 784 Label* out_of_range);
785 785
786 } } // namespace v8::internal 786 } } // namespace v8::internal
787 787
788 #endif // V8_IA32_CODE_STUBS_IA32_H_ 788 #endif // V8_IA32_CODE_STUBS_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/assembler-ia32.h ('k') | src/ia32/code-stubs-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698