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

Side by Side Diff: src/heap/heap.h

Issue 1314953004: [interpreter] Add constant_pool() to BytecodeArray. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@int_args
Patch Set: Fix test flag. Created 5 years, 3 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
« no previous file with comments | « src/factory.cc ('k') | src/heap/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_HEAP_H_ 5 #ifndef V8_HEAP_HEAP_H_
6 #define V8_HEAP_HEAP_H_ 6 #define V8_HEAP_HEAP_H_
7 7
8 #include <cmath> 8 #include <cmath>
9 #include <map> 9 #include <map>
10 10
(...skipping 1979 matching lines...) Expand 10 before | Expand all | Expand 10 after
1990 SIMD128_TYPES(SIMD_ALLOCATE_DECLARATION) 1990 SIMD128_TYPES(SIMD_ALLOCATE_DECLARATION)
1991 #undef SIMD_ALLOCATE_DECLARATION 1991 #undef SIMD_ALLOCATE_DECLARATION
1992 1992
1993 // Allocates a byte array of the specified length 1993 // Allocates a byte array of the specified length
1994 MUST_USE_RESULT AllocationResult 1994 MUST_USE_RESULT AllocationResult
1995 AllocateByteArray(int length, PretenureFlag pretenure = NOT_TENURED); 1995 AllocateByteArray(int length, PretenureFlag pretenure = NOT_TENURED);
1996 1996
1997 // Allocates a bytecode array with given contents. 1997 // Allocates a bytecode array with given contents.
1998 MUST_USE_RESULT AllocationResult 1998 MUST_USE_RESULT AllocationResult
1999 AllocateBytecodeArray(int length, const byte* raw_bytecodes, int frame_size, 1999 AllocateBytecodeArray(int length, const byte* raw_bytecodes, int frame_size,
2000 int parameter_count); 2000 int parameter_count, FixedArray* constant_pool);
2001 2001
2002 // Copy the code and scope info part of the code object, but insert 2002 // Copy the code and scope info part of the code object, but insert
2003 // the provided data as the relocation information. 2003 // the provided data as the relocation information.
2004 MUST_USE_RESULT AllocationResult CopyCode(Code* code, 2004 MUST_USE_RESULT AllocationResult CopyCode(Code* code,
2005 Vector<byte> reloc_info); 2005 Vector<byte> reloc_info);
2006 2006
2007 MUST_USE_RESULT AllocationResult CopyCode(Code* code); 2007 MUST_USE_RESULT AllocationResult CopyCode(Code* code);
2008 2008
2009 // Allocates a fixed array initialized with undefined values 2009 // Allocates a fixed array initialized with undefined values
2010 MUST_USE_RESULT AllocationResult 2010 MUST_USE_RESULT AllocationResult
(...skipping 776 matching lines...) Expand 10 before | Expand all | Expand 10 after
2787 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 2787 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
2788 2788
2789 private: 2789 private:
2790 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2790 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2791 }; 2791 };
2792 #endif // DEBUG 2792 #endif // DEBUG
2793 } 2793 }
2794 } // namespace v8::internal 2794 } // namespace v8::internal
2795 2795
2796 #endif // V8_HEAP_HEAP_H_ 2796 #endif // V8_HEAP_HEAP_H_
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/heap/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698