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

Side by Side Diff: src/heap.h

Issue 8138003: Make 'Become' safe for retries. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 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/factory.cc ('k') | src/heap.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 1667 matching lines...) Expand 10 before | Expand all | Expand 10 after
1678 void MarkCompactPrologue(); 1678 void MarkCompactPrologue();
1679 1679
1680 // Record statistics before and after garbage collection. 1680 // Record statistics before and after garbage collection.
1681 void ReportStatisticsBeforeGC(); 1681 void ReportStatisticsBeforeGC();
1682 void ReportStatisticsAfterGC(); 1682 void ReportStatisticsAfterGC();
1683 1683
1684 // Slow part of scavenge object. 1684 // Slow part of scavenge object.
1685 static void ScavengeObjectSlow(HeapObject** p, HeapObject* object); 1685 static void ScavengeObjectSlow(HeapObject** p, HeapObject* object);
1686 1686
1687 // Initializes a function with a shared part and prototype. 1687 // Initializes a function with a shared part and prototype.
1688 // Returns the function.
1689 // Note: this code was factored out of AllocateFunction such that 1688 // Note: this code was factored out of AllocateFunction such that
1690 // other parts of the VM could use it. Specifically, a function that creates 1689 // other parts of the VM could use it. Specifically, a function that creates
1691 // instances of type JS_FUNCTION_TYPE benefit from the use of this function. 1690 // instances of type JS_FUNCTION_TYPE benefit from the use of this function.
1692 // Please note this does not perform a garbage collection. 1691 // Please note this does not perform a garbage collection.
1693 MUST_USE_RESULT inline MaybeObject* InitializeFunction( 1692 inline void InitializeFunction(
1694 JSFunction* function, 1693 JSFunction* function,
1695 SharedFunctionInfo* shared, 1694 SharedFunctionInfo* shared,
1696 Object* prototype); 1695 Object* prototype);
1697 1696
1698 // Total RegExp code ever generated 1697 // Total RegExp code ever generated
1699 double total_regexp_code_generated_; 1698 double total_regexp_code_generated_;
1700 1699
1701 GCTracer* tracer_; 1700 GCTracer* tracer_;
1702 1701
1703 1702
(...skipping 780 matching lines...) Expand 10 before | Expand all | Expand 10 after
2484 2483
2485 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2484 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2486 }; 2485 };
2487 #endif // DEBUG || LIVE_OBJECT_LIST 2486 #endif // DEBUG || LIVE_OBJECT_LIST
2488 2487
2489 } } // namespace v8::internal 2488 } } // namespace v8::internal
2490 2489
2491 #undef HEAP 2490 #undef HEAP
2492 2491
2493 #endif // V8_HEAP_H_ 2492 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698