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

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: 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/assembler.h ('k') | src/builtins.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 (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 1315 matching lines...) Expand 10 before | Expand all | Expand 10 after
1326 reinterpret_cast<void*>(&double_constants.canonical_non_hole_nan)); 1326 reinterpret_cast<void*>(&double_constants.canonical_non_hole_nan));
1327 } 1327 }
1328 1328
1329 1329
1330 ExternalReference ExternalReference::address_of_the_hole_nan() { 1330 ExternalReference ExternalReference::address_of_the_hole_nan() {
1331 return ExternalReference( 1331 return ExternalReference(
1332 reinterpret_cast<void*>(&double_constants.the_hole_nan)); 1332 reinterpret_cast<void*>(&double_constants.the_hole_nan));
1333 } 1333 }
1334 1334
1335 1335
1336 ExternalReference ExternalReference::record_object_allocation_function(
1337 Isolate* isolate) {
1338 return ExternalReference(
1339 Redirect(isolate,
1340 FUNCTION_ADDR(HeapProfiler::RecordObjectAllocationFromMasm)));
1341 }
1342
1343
1336 #ifndef V8_INTERPRETED_REGEXP 1344 #ifndef V8_INTERPRETED_REGEXP
1337 1345
1338 ExternalReference ExternalReference::re_check_stack_guard_state( 1346 ExternalReference ExternalReference::re_check_stack_guard_state(
1339 Isolate* isolate) { 1347 Isolate* isolate) {
1340 Address function; 1348 Address function;
1341 #if V8_TARGET_ARCH_X64 1349 #if V8_TARGET_ARCH_X64
1342 function = FUNCTION_ADDR(RegExpMacroAssemblerX64::CheckStackGuardState); 1350 function = FUNCTION_ADDR(RegExpMacroAssemblerX64::CheckStackGuardState);
1343 #elif V8_TARGET_ARCH_IA32 1351 #elif V8_TARGET_ARCH_IA32
1344 function = FUNCTION_ADDR(RegExpMacroAssemblerIA32::CheckStackGuardState); 1352 function = FUNCTION_ADDR(RegExpMacroAssemblerIA32::CheckStackGuardState);
1345 #elif V8_TARGET_ARCH_ARM 1353 #elif V8_TARGET_ARCH_ARM
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
1694 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); 1702 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position);
1695 state_.written_position = state_.current_position; 1703 state_.written_position = state_.current_position;
1696 written = true; 1704 written = true;
1697 } 1705 }
1698 1706
1699 // Return whether something was written. 1707 // Return whether something was written.
1700 return written; 1708 return written;
1701 } 1709 }
1702 1710
1703 } } // namespace v8::internal 1711 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/assembler.h ('k') | src/builtins.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698