summaryrefslogtreecommitdiff
path: root/deps/v8/src/layout-descriptor.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/layout-descriptor.h')
-rw-r--r--deps/v8/src/layout-descriptor.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/deps/v8/src/layout-descriptor.h b/deps/v8/src/layout-descriptor.h
index cc2666a487..8f2942c0eb 100644
--- a/deps/v8/src/layout-descriptor.h
+++ b/deps/v8/src/layout-descriptor.h
@@ -53,10 +53,10 @@ class LayoutDescriptor : public FixedTypedArray<Uint32ArrayTraits> {
Handle<DescriptorArray> descriptors,
int num_descriptors);
- // Creates new layout descriptor by appending property with |details| to
- // |map|'s layout descriptor.
- static Handle<LayoutDescriptor> Append(Handle<Map> map,
- PropertyDetails details);
+ // Modifies |map|'s layout descriptor or creates a new one if necessary by
+ // appending property with |details| to it.
+ static Handle<LayoutDescriptor> ShareAppend(Handle<Map> map,
+ PropertyDetails details);
// Creates new layout descriptor by appending property with |details| to
// |map|'s layout descriptor and if it is still fast then returns it.
@@ -69,10 +69,8 @@ class LayoutDescriptor : public FixedTypedArray<Uint32ArrayTraits> {
// tagged (FastPointerLayout).
V8_INLINE static LayoutDescriptor* FastPointerLayout();
-#ifdef DEBUG
// Check that this layout descriptor corresponds to given map.
bool IsConsistentWithMap(Map* map);
-#endif
#ifdef OBJECT_PRINT
// For our gdb macros, we should perhaps change these in the future.