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

Side by Side Diff: src/x64/macro-assembler-x64.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/x64/lithium-codegen-x64.cc ('k') | src/x64/macro-assembler-x64.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 1024 matching lines...) Expand 10 before | Expand all | Expand 10 after
1035 // result is known to be the allocation top on entry (could be result_end 1035 // result is known to be the allocation top on entry (could be result_end
1036 // from a previous call). If result_contains_top_on_entry is true scratch 1036 // from a previous call). If result_contains_top_on_entry is true scratch
1037 // should be no_reg as it is never used. 1037 // should be no_reg as it is never used.
1038 void Allocate(int object_size, 1038 void Allocate(int object_size,
1039 Register result, 1039 Register result,
1040 Register result_end, 1040 Register result_end,
1041 Register scratch, 1041 Register scratch,
1042 Label* gc_required, 1042 Label* gc_required,
1043 AllocationFlags flags); 1043 AllocationFlags flags);
1044 1044
1045 void AllocateInNewSpace(int header_size, 1045 void Allocate(int header_size,
1046 ScaleFactor element_size, 1046 ScaleFactor element_size,
1047 Register element_count, 1047 Register element_count,
1048 Register result, 1048 Register result,
1049 Register result_end, 1049 Register result_end,
1050 Register scratch, 1050 Register scratch,
1051 Label* gc_required, 1051 Label* gc_required,
1052 AllocationFlags flags); 1052 AllocationFlags flags);
1053 1053
1054 void AllocateInNewSpace(Register object_size, 1054 void Allocate(Register object_size,
1055 Register result, 1055 Register result,
1056 Register result_end, 1056 Register result_end,
1057 Register scratch, 1057 Register scratch,
1058 Label* gc_required, 1058 Label* gc_required,
1059 AllocationFlags flags); 1059 AllocationFlags flags);
1060 1060
1061 // Undo allocation in new space. The object passed and objects allocated after 1061 // Undo allocation in new space. The object passed and objects allocated after
1062 // it will no longer be allocated. Make sure that no pointers are left to the 1062 // it will no longer be allocated. Make sure that no pointers are left to the
1063 // object(s) no longer allocated as they would be invalid when allocation is 1063 // object(s) no longer allocated as they would be invalid when allocation is
1064 // un-done. 1064 // un-done.
1065 void UndoAllocationInNewSpace(Register object); 1065 void UndoAllocationInNewSpace(Register object);
1066 1066
1067 // Allocate a heap number in new space with undefined value. Returns 1067 // Allocate a heap number in new space with undefined value. Returns
1068 // tagged pointer in result register, or jumps to gc_required if new 1068 // tagged pointer in result register, or jumps to gc_required if new
1069 // space is full. 1069 // space is full.
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
1510 masm->popfq(); \ 1510 masm->popfq(); \
1511 } \ 1511 } \
1512 masm-> 1512 masm->
1513 #else 1513 #else
1514 #define ACCESS_MASM(masm) masm-> 1514 #define ACCESS_MASM(masm) masm->
1515 #endif 1515 #endif
1516 1516
1517 } } // namespace v8::internal 1517 } } // namespace v8::internal
1518 1518
1519 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 1519 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698