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

Side by Side Diff: src/heap.h

Issue 8551006: Version 3.7.9. (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 9 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/hashmap.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 819 matching lines...) Expand 10 before | Expand all | Expand 10 after
830 MUST_USE_RESULT MaybeObject* AllocateHeapNumber( 830 MUST_USE_RESULT MaybeObject* AllocateHeapNumber(
831 double value, 831 double value,
832 PretenureFlag pretenure); 832 PretenureFlag pretenure);
833 // pretenure = NOT_TENURED 833 // pretenure = NOT_TENURED
834 MUST_USE_RESULT MaybeObject* AllocateHeapNumber(double value); 834 MUST_USE_RESULT MaybeObject* AllocateHeapNumber(double value);
835 835
836 // Converts an int into either a Smi or a HeapNumber object. 836 // Converts an int into either a Smi or a HeapNumber object.
837 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation 837 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
838 // failed. 838 // failed.
839 // Please note this does not perform a garbage collection. 839 // Please note this does not perform a garbage collection.
840 MUST_USE_RESULT inline MaybeObject* NumberFromInt32(int32_t value); 840 MUST_USE_RESULT inline MaybeObject* NumberFromInt32(
841 int32_t value, PretenureFlag pretenure = NOT_TENURED);
841 842
842 // Converts an int into either a Smi or a HeapNumber object. 843 // Converts an int into either a Smi or a HeapNumber object.
843 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation 844 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
844 // failed. 845 // failed.
845 // Please note this does not perform a garbage collection. 846 // Please note this does not perform a garbage collection.
846 MUST_USE_RESULT inline MaybeObject* NumberFromUint32(uint32_t value); 847 MUST_USE_RESULT inline MaybeObject* NumberFromUint32(
848 uint32_t value, PretenureFlag pretenure = NOT_TENURED);
847 849
848 // Allocates a new foreign object. 850 // Allocates a new foreign object.
849 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation 851 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
850 // failed. 852 // failed.
851 // Please note this does not perform a garbage collection. 853 // Please note this does not perform a garbage collection.
852 MUST_USE_RESULT MaybeObject* AllocateForeign( 854 MUST_USE_RESULT MaybeObject* AllocateForeign(
853 Address address, PretenureFlag pretenure = NOT_TENURED); 855 Address address, PretenureFlag pretenure = NOT_TENURED);
854 856
855 // Allocates a new SharedFunctionInfo object. 857 // Allocates a new SharedFunctionInfo object.
856 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation 858 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
(...skipping 1672 matching lines...) Expand 10 before | Expand all | Expand 10 after
2529 2531
2530 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2532 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2531 }; 2533 };
2532 #endif // DEBUG || LIVE_OBJECT_LIST 2534 #endif // DEBUG || LIVE_OBJECT_LIST
2533 2535
2534 } } // namespace v8::internal 2536 } } // namespace v8::internal
2535 2537
2536 #undef HEAP 2538 #undef HEAP
2537 2539
2538 #endif // V8_HEAP_H_ 2540 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « src/hashmap.cc ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698