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

Side by Side Diff: src/heap.h

Issue 7497010: Fix FixedDoubleArray crashes in chromebot (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: review feedback Created 9 years, 5 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 | « no previous file | 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 599 matching lines...) Expand 10 before | Expand all | Expand 10 after
610 MUST_USE_RESULT MaybeObject* AllocateUninitializedFixedArray(int length); 610 MUST_USE_RESULT MaybeObject* AllocateUninitializedFixedArray(int length);
611 611
612 // Make a copy of src and return it. Returns 612 // Make a copy of src and return it. Returns
613 // Failure::RetryAfterGC(requested_bytes, space) if the allocation failed. 613 // Failure::RetryAfterGC(requested_bytes, space) if the allocation failed.
614 MUST_USE_RESULT inline MaybeObject* CopyFixedArray(FixedArray* src); 614 MUST_USE_RESULT inline MaybeObject* CopyFixedArray(FixedArray* src);
615 615
616 // Make a copy of src, set the map, and return the copy. Returns 616 // Make a copy of src, set the map, and return the copy. Returns
617 // Failure::RetryAfterGC(requested_bytes, space) if the allocation failed. 617 // Failure::RetryAfterGC(requested_bytes, space) if the allocation failed.
618 MUST_USE_RESULT MaybeObject* CopyFixedArrayWithMap(FixedArray* src, Map* map); 618 MUST_USE_RESULT MaybeObject* CopyFixedArrayWithMap(FixedArray* src, Map* map);
619 619
620 // Make a copy of src and return it. Returns
621 // Failure::RetryAfterGC(requested_bytes, space) if the allocation failed.
622 MUST_USE_RESULT inline MaybeObject* CopyFixedDoubleArray(
623 FixedDoubleArray* src);
624
625 // Make a copy of src, set the map, and return the copy. Returns
626 // Failure::RetryAfterGC(requested_bytes, space) if the allocation failed.
627 MUST_USE_RESULT MaybeObject* CopyFixedDoubleArrayWithMap(
628 FixedDoubleArray* src, Map* map);
629
620 // Allocates a fixed array initialized with the hole values. 630 // Allocates a fixed array initialized with the hole values.
621 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation 631 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
622 // failed. 632 // failed.
623 // Please note this does not perform a garbage collection. 633 // Please note this does not perform a garbage collection.
624 MUST_USE_RESULT MaybeObject* AllocateFixedArrayWithHoles( 634 MUST_USE_RESULT MaybeObject* AllocateFixedArrayWithHoles(
625 int length, 635 int length,
626 PretenureFlag pretenure = NOT_TENURED); 636 PretenureFlag pretenure = NOT_TENURED);
627 637
628 MUST_USE_RESULT MaybeObject* AllocateRawFixedDoubleArray( 638 MUST_USE_RESULT MaybeObject* AllocateRawFixedDoubleArray(
629 int length, 639 int length,
(...skipping 1665 matching lines...) Expand 10 before | Expand all | Expand 10 after
2295 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2305 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2296 }; 2306 };
2297 #endif // DEBUG || LIVE_OBJECT_LIST 2307 #endif // DEBUG || LIVE_OBJECT_LIST
2298 2308
2299 2309
2300 } } // namespace v8::internal 2310 } } // namespace v8::internal
2301 2311
2302 #undef HEAP 2312 #undef HEAP
2303 2313
2304 #endif // V8_HEAP_H_ 2314 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « no previous file | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698