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

Side by Side Diff: src/assembler.cc

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: Make separate API for JS allocations recording, add example of checking JS allocations recording in… Created 7 years, 3 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/assembler.h ('k') | src/builtins.cc » ('j') | src/heap.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 1298 matching lines...) Expand 10 before | Expand all | Expand 10 after
1309 reinterpret_cast<void*>(&double_constants.canonical_non_hole_nan)); 1309 reinterpret_cast<void*>(&double_constants.canonical_non_hole_nan));
1310 } 1310 }
1311 1311
1312 1312
1313 ExternalReference ExternalReference::address_of_the_hole_nan() { 1313 ExternalReference ExternalReference::address_of_the_hole_nan() {
1314 return ExternalReference( 1314 return ExternalReference(
1315 reinterpret_cast<void*>(&double_constants.the_hole_nan)); 1315 reinterpret_cast<void*>(&double_constants.the_hole_nan));
1316 } 1316 }
1317 1317
1318 1318
1319 ExternalReference ExternalReference::is_tracking_allocations_address(
1320 Isolate* isolate) {
Hannes Payer (out of office) 2013/08/28 09:51:32 4 spaces indent
Alexandra Mikhaylova 2013/09/19 16:03:38 Removed this function as it became redundant after
1321 return ExternalReference(
1322 isolate->heap_profiler()->is_tracking_allocations_address());
1323 }
1324
1325
1326 ExternalReference ExternalReference::record_object_allocation_function(
1327 Isolate* isolate) {
Hannes Payer (out of office) 2013/08/28 09:51:32 4 spaces indent
Alexandra Mikhaylova 2013/09/19 16:03:38 Done.
1328 return ExternalReference(
1329 Redirect(isolate,
1330 FUNCTION_ADDR(HeapProfiler::RecordObjectAllocationFromMasm)));
1331 }
1332
1333
1319 #ifndef V8_INTERPRETED_REGEXP 1334 #ifndef V8_INTERPRETED_REGEXP
1320 1335
1321 ExternalReference ExternalReference::re_check_stack_guard_state( 1336 ExternalReference ExternalReference::re_check_stack_guard_state(
1322 Isolate* isolate) { 1337 Isolate* isolate) {
1323 Address function; 1338 Address function;
1324 #if V8_TARGET_ARCH_X64 1339 #if V8_TARGET_ARCH_X64
1325 function = FUNCTION_ADDR(RegExpMacroAssemblerX64::CheckStackGuardState); 1340 function = FUNCTION_ADDR(RegExpMacroAssemblerX64::CheckStackGuardState);
1326 #elif V8_TARGET_ARCH_IA32 1341 #elif V8_TARGET_ARCH_IA32
1327 function = FUNCTION_ADDR(RegExpMacroAssemblerIA32::CheckStackGuardState); 1342 function = FUNCTION_ADDR(RegExpMacroAssemblerIA32::CheckStackGuardState);
1328 #elif V8_TARGET_ARCH_ARM 1343 #elif V8_TARGET_ARCH_ARM
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
1677 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); 1692 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position);
1678 state_.written_position = state_.current_position; 1693 state_.written_position = state_.current_position;
1679 written = true; 1694 written = true;
1680 } 1695 }
1681 1696
1682 // Return whether something was written. 1697 // Return whether something was written.
1683 return written; 1698 return written;
1684 } 1699 }
1685 1700
1686 } } // namespace v8::internal 1701 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/assembler.h ('k') | src/builtins.cc » ('j') | src/heap.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698