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

Side by Side Diff: src/objects.h

Issue 1018283002: Reland "Fix memory leak caused by field type in descriptor array." (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 5 years, 9 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 | « no previous file | src/objects.cc » ('j') | src/objects-debug.cc » ('J')
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_OBJECTS_H_ 5 #ifndef V8_OBJECTS_H_
6 #define V8_OBJECTS_H_ 6 #define V8_OBJECTS_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 6460 matching lines...) Expand 10 before | Expand all | Expand 10 after
6471 ElementsKind to_kind); 6471 ElementsKind to_kind);
6472 6472
6473 void DeprecateTransitionTree(); 6473 void DeprecateTransitionTree();
6474 bool DeprecateTarget(PropertyKind kind, Name* key, 6474 bool DeprecateTarget(PropertyKind kind, Name* key,
6475 PropertyAttributes attributes, 6475 PropertyAttributes attributes,
6476 DescriptorArray* new_descriptors, 6476 DescriptorArray* new_descriptors,
6477 LayoutDescriptor* new_layout_descriptor); 6477 LayoutDescriptor* new_layout_descriptor);
6478 6478
6479 Map* FindLastMatchMap(int verbatim, int length, DescriptorArray* descriptors); 6479 Map* FindLastMatchMap(int verbatim, int length, DescriptorArray* descriptors);
6480 6480
6481 // Update field type of the given descriptor to new representation and new
6482 // type. The type must be prepared for storing in descriptor array:
6483 // it must be either a simple type or a map wrapped in a weak cell.
6481 void UpdateFieldType(int descriptor_number, Handle<Name> name, 6484 void UpdateFieldType(int descriptor_number, Handle<Name> name,
6482 Representation new_representation, 6485 Representation new_representation,
6483 Handle<HeapType> new_type); 6486 Handle<Object> new_wrapped_type);
6484 6487
6485 void PrintReconfiguration(FILE* file, int modify_index, PropertyKind kind, 6488 void PrintReconfiguration(FILE* file, int modify_index, PropertyKind kind,
6486 PropertyAttributes attributes); 6489 PropertyAttributes attributes);
6487 void PrintGeneralization(FILE* file, 6490 void PrintGeneralization(FILE* file,
6488 const char* reason, 6491 const char* reason,
6489 int modify_index, 6492 int modify_index,
6490 int split, 6493 int split,
6491 int descriptors, 6494 int descriptors,
6492 bool constant_to_field, 6495 bool constant_to_field,
6493 Representation old_representation, 6496 Representation old_representation,
(...skipping 4498 matching lines...) Expand 10 before | Expand all | Expand 10 after
10992 } else { 10995 } else {
10993 value &= ~(1 << bit_position); 10996 value &= ~(1 << bit_position);
10994 } 10997 }
10995 return value; 10998 return value;
10996 } 10999 }
10997 }; 11000 };
10998 11001
10999 } } // namespace v8::internal 11002 } } // namespace v8::internal
11000 11003
11001 #endif // V8_OBJECTS_H_ 11004 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « no previous file | src/objects.cc » ('j') | src/objects-debug.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698