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

Side by Side Diff: src/heap.h

Issue 226153002: Callers of ElementsAccessor::Validate() handlified. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressing review notes Created 6 years, 8 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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 711 matching lines...) Expand 10 before | Expand all | Expand 10 after
722 int capacity, 722 int capacity,
723 ArrayStorageAllocationMode mode = DONT_INITIALIZE_ARRAY_ELEMENTS, 723 ArrayStorageAllocationMode mode = DONT_INITIALIZE_ARRAY_ELEMENTS,
724 PretenureFlag pretenure = NOT_TENURED); 724 PretenureFlag pretenure = NOT_TENURED);
725 725
726 MUST_USE_RESULT MaybeObject* AllocateJSArrayStorage( 726 MUST_USE_RESULT MaybeObject* AllocateJSArrayStorage(
727 JSArray* array, 727 JSArray* array,
728 int length, 728 int length,
729 int capacity, 729 int capacity,
730 ArrayStorageAllocationMode mode = DONT_INITIALIZE_ARRAY_ELEMENTS); 730 ArrayStorageAllocationMode mode = DONT_INITIALIZE_ARRAY_ELEMENTS);
731 731
732 // Allocate a JSArray with no elements
733 MUST_USE_RESULT MaybeObject* AllocateJSArrayWithElements(
734 FixedArrayBase* array_base,
735 ElementsKind elements_kind,
736 int length,
737 PretenureFlag pretenure = NOT_TENURED);
738
739 // Returns a deep copy of the JavaScript object. 732 // Returns a deep copy of the JavaScript object.
740 // Properties and elements are copied too. 733 // Properties and elements are copied too.
741 // Returns failure if allocation failed. 734 // Returns failure if allocation failed.
742 // Optionally takes an AllocationSite to be appended in an AllocationMemento. 735 // Optionally takes an AllocationSite to be appended in an AllocationMemento.
743 MUST_USE_RESULT MaybeObject* CopyJSObject(JSObject* source, 736 MUST_USE_RESULT MaybeObject* CopyJSObject(JSObject* source,
744 AllocationSite* site = NULL); 737 AllocationSite* site = NULL);
745 738
746 // Allocates a JS ArrayBuffer object. 739 // Allocates a JS ArrayBuffer object.
747 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation 740 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
748 // failed. 741 // failed.
(...skipping 2389 matching lines...) Expand 10 before | Expand all | Expand 10 after
3138 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 3131 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
3139 3132
3140 private: 3133 private:
3141 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 3134 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
3142 }; 3135 };
3143 #endif // DEBUG 3136 #endif // DEBUG
3144 3137
3145 } } // namespace v8::internal 3138 } } // namespace v8::internal
3146 3139
3147 #endif // V8_HEAP_H_ 3140 #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