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

Side by Side Diff: src/ia32/macro-assembler-ia32.h

Issue 12440041: Generalizing remaining Allocate functions in the macro assemblers used in pretenuring. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 9 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/lithium-codegen-ia32.cc ('k') | src/ia32/macro-assembler-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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 564 matching lines...) Expand 10 before | Expand all | Expand 10 after
575 // result is known to be the allocation top on entry (could be result_end 575 // result is known to be the allocation top on entry (could be result_end
576 // from a previous call). If result_contains_top_on_entry is true scratch 576 // from a previous call). If result_contains_top_on_entry is true scratch
577 // should be no_reg as it is never used. 577 // should be no_reg as it is never used.
578 void Allocate(int object_size, 578 void Allocate(int object_size,
579 Register result, 579 Register result,
580 Register result_end, 580 Register result_end,
581 Register scratch, 581 Register scratch,
582 Label* gc_required, 582 Label* gc_required,
583 AllocationFlags flags); 583 AllocationFlags flags);
584 584
585 void AllocateInNewSpace(int header_size, 585 void Allocate(int header_size,
586 ScaleFactor element_size, 586 ScaleFactor element_size,
587 Register element_count, 587 Register element_count,
588 RegisterValueType element_count_type, 588 RegisterValueType element_count_type,
589 Register result, 589 Register result,
590 Register result_end, 590 Register result_end,
591 Register scratch, 591 Register scratch,
592 Label* gc_required, 592 Label* gc_required,
593 AllocationFlags flags); 593 AllocationFlags flags);
594 594
595 void AllocateInNewSpace(Register object_size, 595 void Allocate(Register object_size,
596 Register result, 596 Register result,
597 Register result_end, 597 Register result_end,
598 Register scratch, 598 Register scratch,
599 Label* gc_required, 599 Label* gc_required,
600 AllocationFlags flags); 600 AllocationFlags flags);
601 601
602 // Undo allocation in new space. The object passed and objects allocated after 602 // Undo allocation in new space. The object passed and objects allocated after
603 // it will no longer be allocated. Make sure that no pointers are left to the 603 // it will no longer be allocated. Make sure that no pointers are left to the
604 // object(s) no longer allocated as they would be invalid when allocation is 604 // object(s) no longer allocated as they would be invalid when allocation is
605 // un-done. 605 // un-done.
606 void UndoAllocationInNewSpace(Register object); 606 void UndoAllocationInNewSpace(Register object);
607 607
608 // Allocate a heap number in new space with undefined value. The 608 // Allocate a heap number in new space with undefined value. The
609 // register scratch2 can be passed as no_reg; the others must be 609 // register scratch2 can be passed as no_reg; the others must be
610 // valid registers. Returns tagged pointer in result register, or 610 // valid registers. Returns tagged pointer in result register, or
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
1022 } \ 1022 } \
1023 masm-> 1023 masm->
1024 #else 1024 #else
1025 #define ACCESS_MASM(masm) masm-> 1025 #define ACCESS_MASM(masm) masm->
1026 #endif 1026 #endif
1027 1027
1028 1028
1029 } } // namespace v8::internal 1029 } } // namespace v8::internal
1030 1030
1031 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ 1031 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/macro-assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698