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

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

Issue 2955793002: Revert of Make some functions that are hit during renderer startup available for inlining (Closed)
Patch Set: Created 3 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
« no previous file with comments | « src/heap/heap.h ('k') | src/heap/heap-inl.h » ('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 #include "src/heap/heap.h" 5 #include "src/heap/heap.h"
6 6
7 #include <unordered_map> 7 #include <unordered_map>
8 #include <unordered_set> 8 #include <unordered_set>
9 9
10 #include "src/accessors.h" 10 #include "src/accessors.h"
(...skipping 4010 matching lines...) Expand 10 before | Expand all | Expand 10 after
4021 } 4021 }
4022 4022
4023 result->set_map_after_allocation(fixed_array_map(), SKIP_WRITE_BARRIER); 4023 result->set_map_after_allocation(fixed_array_map(), SKIP_WRITE_BARRIER);
4024 FixedArray* array = FixedArray::cast(result); 4024 FixedArray* array = FixedArray::cast(result);
4025 array->set_length(length); 4025 array->set_length(length);
4026 MemsetPointer(array->data_start(), filler, length); 4026 MemsetPointer(array->data_start(), filler, length);
4027 return array; 4027 return array;
4028 } 4028 }
4029 4029
4030 4030
4031 AllocationResult Heap::AllocateFixedArray(int length, PretenureFlag pretenure) {
4032 return AllocateFixedArrayWithFiller(length, pretenure, undefined_value());
4033 }
4034
4035
4031 AllocationResult Heap::AllocateUninitializedFixedArray(int length) { 4036 AllocationResult Heap::AllocateUninitializedFixedArray(int length) {
4032 if (length == 0) return empty_fixed_array(); 4037 if (length == 0) return empty_fixed_array();
4033 4038
4034 HeapObject* obj = nullptr; 4039 HeapObject* obj = nullptr;
4035 { 4040 {
4036 AllocationResult allocation = AllocateRawFixedArray(length, NOT_TENURED); 4041 AllocationResult allocation = AllocateRawFixedArray(length, NOT_TENURED);
4037 if (!allocation.To(&obj)) return allocation; 4042 if (!allocation.To(&obj)) return allocation;
4038 } 4043 }
4039 4044
4040 obj->set_map_after_allocation(fixed_array_map(), SKIP_WRITE_BARRIER); 4045 obj->set_map_after_allocation(fixed_array_map(), SKIP_WRITE_BARRIER);
(...skipping 2675 matching lines...) Expand 10 before | Expand all | Expand 10 after
6716 return dst == src && type == CODE_TYPE; 6721 return dst == src && type == CODE_TYPE;
6717 case MAP_SPACE: 6722 case MAP_SPACE:
6718 case LO_SPACE: 6723 case LO_SPACE:
6719 return false; 6724 return false;
6720 } 6725 }
6721 UNREACHABLE(); 6726 UNREACHABLE();
6722 } 6727 }
6723 6728
6724 } // namespace internal 6729 } // namespace internal
6725 } // namespace v8 6730 } // namespace v8
OLDNEW
« no previous file with comments | « src/heap/heap.h ('k') | src/heap/heap-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698