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

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

Issue 22852024: Track JS allocations as they arrive with no affection on performance when tracking is switched off (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix style + rebase Created 7 years, 2 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/code-stubs-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 1097 matching lines...) Expand 10 before | Expand all | Expand 10 after
1108 Label* gc_required, 1108 Label* gc_required,
1109 AllocationFlags flags); 1109 AllocationFlags flags);
1110 1110
1111 void Allocate(Register object_size, 1111 void Allocate(Register object_size,
1112 Register result, 1112 Register result,
1113 Register result_end, 1113 Register result_end,
1114 Register scratch, 1114 Register scratch,
1115 Label* gc_required, 1115 Label* gc_required,
1116 AllocationFlags flags); 1116 AllocationFlags flags);
1117 1117
1118 // Record a JS object allocation if allocations tracking mode is on.
1119 void RecordObjectAllocation(Isolate* isolate,
1120 Register object,
1121 Register object_size);
1122
1123 void RecordObjectAllocation(Isolate* isolate,
1124 Register object,
1125 int object_size);
1126
1118 // Undo allocation in new space. The object passed and objects allocated after 1127 // Undo allocation in new space. The object passed and objects allocated after
1119 // it will no longer be allocated. Make sure that no pointers are left to the 1128 // it will no longer be allocated. Make sure that no pointers are left to the
1120 // object(s) no longer allocated as they would be invalid when allocation is 1129 // object(s) no longer allocated as they would be invalid when allocation is
1121 // un-done. 1130 // un-done.
1122 void UndoAllocationInNewSpace(Register object); 1131 void UndoAllocationInNewSpace(Register object);
1123 1132
1124 // Allocate a heap number in new space with undefined value. Returns 1133 // Allocate a heap number in new space with undefined value. Returns
1125 // tagged pointer in result register, or jumps to gc_required if new 1134 // tagged pointer in result register, or jumps to gc_required if new
1126 // space is full. 1135 // space is full.
1127 void AllocateHeapNumber(Register result, 1136 void AllocateHeapNumber(Register result,
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
1583 masm->popfq(); \ 1592 masm->popfq(); \
1584 } \ 1593 } \
1585 masm-> 1594 masm->
1586 #else 1595 #else
1587 #define ACCESS_MASM(masm) masm-> 1596 #define ACCESS_MASM(masm) masm->
1588 #endif 1597 #endif
1589 1598
1590 } } // namespace v8::internal 1599 } } // namespace v8::internal
1591 1600
1592 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 1601 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/x64/code-stubs-x64.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698