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

Side by Side Diff: src/heap.h

Issue 358363003: Only create arguments-maps in the bootstrapper, remove now obsolete ValueType flag. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments and reformat Created 6 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 | « 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 1468 matching lines...) Expand 10 before | Expand all | Expand 10 after
1479 MUST_USE_RESULT AllocationResult AllocateHeapNumber( 1479 MUST_USE_RESULT AllocationResult AllocateHeapNumber(
1480 double value, 1480 double value,
1481 MutableMode mode = IMMUTABLE, 1481 MutableMode mode = IMMUTABLE,
1482 PretenureFlag pretenure = NOT_TENURED); 1482 PretenureFlag pretenure = NOT_TENURED);
1483 1483
1484 // Allocate a byte array of the specified length 1484 // Allocate a byte array of the specified length
1485 MUST_USE_RESULT AllocationResult AllocateByteArray( 1485 MUST_USE_RESULT AllocationResult AllocateByteArray(
1486 int length, 1486 int length,
1487 PretenureFlag pretenure = NOT_TENURED); 1487 PretenureFlag pretenure = NOT_TENURED);
1488 1488
1489 // Allocates an arguments object - optionally with an elements array.
1490 MUST_USE_RESULT AllocationResult AllocateArgumentsObject(
1491 Object* callee, int length);
1492
1493 // Copy the code and scope info part of the code object, but insert 1489 // Copy the code and scope info part of the code object, but insert
1494 // the provided data as the relocation information. 1490 // the provided data as the relocation information.
1495 MUST_USE_RESULT AllocationResult CopyCode(Code* code, 1491 MUST_USE_RESULT AllocationResult CopyCode(Code* code,
1496 Vector<byte> reloc_info); 1492 Vector<byte> reloc_info);
1497 1493
1498 MUST_USE_RESULT AllocationResult CopyCode(Code* code); 1494 MUST_USE_RESULT AllocationResult CopyCode(Code* code);
1499 1495
1500 // Allocates a fixed array initialized with undefined values 1496 // Allocates a fixed array initialized with undefined values
1501 MUST_USE_RESULT AllocationResult AllocateFixedArray( 1497 MUST_USE_RESULT AllocationResult AllocateFixedArray(
1502 int length, 1498 int length,
(...skipping 1281 matching lines...) Expand 10 before | Expand all | Expand 10 after
2784 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 2780 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
2785 2781
2786 private: 2782 private:
2787 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2783 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2788 }; 2784 };
2789 #endif // DEBUG 2785 #endif // DEBUG
2790 2786
2791 } } // namespace v8::internal 2787 } } // namespace v8::internal
2792 2788
2793 #endif // V8_HEAP_H_ 2789 #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