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

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

Issue 65043006: Simplify current inline allocation tracking mechanism. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 1 month 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/serialize.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 1098 matching lines...) Expand 10 before | Expand all | Expand 10 after
1109 Label* gc_required, 1109 Label* gc_required,
1110 AllocationFlags flags); 1110 AllocationFlags flags);
1111 1111
1112 void Allocate(Register object_size, 1112 void Allocate(Register object_size,
1113 Register result, 1113 Register result,
1114 Register result_end, 1114 Register result_end,
1115 Register scratch, 1115 Register scratch,
1116 Label* gc_required, 1116 Label* gc_required,
1117 AllocationFlags flags); 1117 AllocationFlags flags);
1118 1118
1119 // Record a JS object allocation if allocations tracking mode is on.
1120 void RecordObjectAllocation(Isolate* isolate,
1121 Register object,
1122 Register object_size);
1123
1124 void RecordObjectAllocation(Isolate* isolate,
1125 Register object,
1126 int object_size);
1127
1128 // Undo allocation in new space. The object passed and objects allocated after 1119 // Undo allocation in new space. The object passed and objects allocated after
1129 // it will no longer be allocated. Make sure that no pointers are left to the 1120 // it will no longer be allocated. Make sure that no pointers are left to the
1130 // object(s) no longer allocated as they would be invalid when allocation is 1121 // object(s) no longer allocated as they would be invalid when allocation is
1131 // un-done. 1122 // un-done.
1132 void UndoAllocationInNewSpace(Register object); 1123 void UndoAllocationInNewSpace(Register object);
1133 1124
1134 // Allocate a heap number in new space with undefined value. Returns 1125 // Allocate a heap number in new space with undefined value. Returns
1135 // tagged pointer in result register, or jumps to gc_required if new 1126 // tagged pointer in result register, or jumps to gc_required if new
1136 // space is full. 1127 // space is full.
1137 void AllocateHeapNumber(Register result, 1128 void AllocateHeapNumber(Register result,
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after
1608 masm->popfq(); \ 1599 masm->popfq(); \
1609 } \ 1600 } \
1610 masm-> 1601 masm->
1611 #else 1602 #else
1612 #define ACCESS_MASM(masm) masm-> 1603 #define ACCESS_MASM(masm) masm->
1613 #endif 1604 #endif
1614 1605
1615 } } // namespace v8::internal 1606 } } // namespace v8::internal
1616 1607
1617 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 1608 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/serialize.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698