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

Side by Side Diff: src/heap.h

Issue 304143002: Add support for extended constant pool arrays. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Sync Created 6 years, 6 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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_HEAP_H_ 5 #ifndef V8_HEAP_H_
6 #define V8_HEAP_H_ 6 #define V8_HEAP_H_
7 7
8 #include <cmath> 8 #include <cmath>
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 1855 matching lines...) Expand 10 before | Expand all | Expand 10 after
1866 uint16_t code); 1866 uint16_t code);
1867 1867
1868 // Allocate a symbol in old space. 1868 // Allocate a symbol in old space.
1869 MUST_USE_RESULT AllocationResult AllocateSymbol(); 1869 MUST_USE_RESULT AllocationResult AllocateSymbol();
1870 1870
1871 // Make a copy of src, set the map, and return the copy. 1871 // Make a copy of src, set the map, and return the copy.
1872 MUST_USE_RESULT AllocationResult CopyConstantPoolArrayWithMap( 1872 MUST_USE_RESULT AllocationResult CopyConstantPoolArrayWithMap(
1873 ConstantPoolArray* src, Map* map); 1873 ConstantPoolArray* src, Map* map);
1874 1874
1875 MUST_USE_RESULT AllocationResult AllocateConstantPoolArray( 1875 MUST_USE_RESULT AllocationResult AllocateConstantPoolArray(
1876 int number_of_int64_entries, 1876 const ConstantPoolArray::NumberOfEntries& small);
1877 int number_of_code_ptr_entries, 1877
1878 int number_of_heap_ptr_entries, 1878 MUST_USE_RESULT AllocationResult AllocateExtendedConstantPoolArray(
1879 int number_of_int32_entries); 1879 const ConstantPoolArray::NumberOfEntries& small,
1880 const ConstantPoolArray::NumberOfEntries& extended);
1880 1881
1881 // Allocates an external array of the specified length and type. 1882 // Allocates an external array of the specified length and type.
1882 MUST_USE_RESULT AllocationResult AllocateExternalArray( 1883 MUST_USE_RESULT AllocationResult AllocateExternalArray(
1883 int length, 1884 int length,
1884 ExternalArrayType array_type, 1885 ExternalArrayType array_type,
1885 void* external_pointer, 1886 void* external_pointer,
1886 PretenureFlag pretenure); 1887 PretenureFlag pretenure);
1887 1888
1888 // Allocates a fixed typed array of the specified length and type. 1889 // Allocates a fixed typed array of the specified length and type.
1889 MUST_USE_RESULT AllocationResult AllocateFixedTypedArray( 1890 MUST_USE_RESULT AllocationResult AllocateFixedTypedArray(
(...skipping 885 matching lines...) Expand 10 before | Expand all | Expand 10 after
2775 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 2776 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
2776 2777
2777 private: 2778 private:
2778 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2779 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2779 }; 2780 };
2780 #endif // DEBUG 2781 #endif // DEBUG
2781 2782
2782 } } // namespace v8::internal 2783 } } // namespace v8::internal
2783 2784
2784 #endif // V8_HEAP_H_ 2785 #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