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

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

Issue 1254873002: [interpreter] A couple of minor tweaks to BytecodeArray. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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
« 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 1664 matching lines...) Expand 10 before | Expand all | Expand 10 after
1675 MUST_USE_RESULT AllocationResult 1675 MUST_USE_RESULT AllocationResult
1676 AllocateFloat32x4(float w, float x, float y, float z, 1676 AllocateFloat32x4(float w, float x, float y, float z,
1677 PretenureFlag pretenure = NOT_TENURED); 1677 PretenureFlag pretenure = NOT_TENURED);
1678 1678
1679 // Allocates a byte array of the specified length 1679 // Allocates a byte array of the specified length
1680 MUST_USE_RESULT AllocationResult 1680 MUST_USE_RESULT AllocationResult
1681 AllocateByteArray(int length, PretenureFlag pretenure = NOT_TENURED); 1681 AllocateByteArray(int length, PretenureFlag pretenure = NOT_TENURED);
1682 1682
1683 // Allocates a bytecode array with given contents. 1683 // Allocates a bytecode array with given contents.
1684 MUST_USE_RESULT AllocationResult 1684 MUST_USE_RESULT AllocationResult
1685 AllocateBytecodeArray(int length, const byte* raw_bytecodes); 1685 AllocateBytecodeArray(int length, const byte* raw_bytecodes,
1686 int frame_size);
1686 1687
1687 // Copy the code and scope info part of the code object, but insert 1688 // Copy the code and scope info part of the code object, but insert
1688 // the provided data as the relocation information. 1689 // the provided data as the relocation information.
1689 MUST_USE_RESULT AllocationResult 1690 MUST_USE_RESULT AllocationResult
1690 CopyCode(Code* code, Vector<byte> reloc_info); 1691 CopyCode(Code* code, Vector<byte> reloc_info);
1691 1692
1692 MUST_USE_RESULT AllocationResult CopyCode(Code* code); 1693 MUST_USE_RESULT AllocationResult CopyCode(Code* code);
1693 1694
1694 // Allocates a fixed array initialized with undefined values 1695 // Allocates a fixed array initialized with undefined values
1695 MUST_USE_RESULT AllocationResult 1696 MUST_USE_RESULT AllocationResult
(...skipping 1192 matching lines...) Expand 10 before | Expand all | Expand 10 after
2888 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 2889 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
2889 2890
2890 private: 2891 private:
2891 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2892 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2892 }; 2893 };
2893 #endif // DEBUG 2894 #endif // DEBUG
2894 } 2895 }
2895 } // namespace v8::internal 2896 } // namespace v8::internal
2896 2897
2897 #endif // V8_HEAP_HEAP_H_ 2898 #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