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

Side by Side Diff: src/objects.h

Issue 206343002: JSObject::NormalizeElements() handlified. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/objects.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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 2582 matching lines...) Expand 10 before | Expand all | Expand 10 after
2593 // an initial capacity for holding these properties. 2593 // an initial capacity for holding these properties.
2594 static void NormalizeProperties(Handle<JSObject> object, 2594 static void NormalizeProperties(Handle<JSObject> object,
2595 PropertyNormalizationMode mode, 2595 PropertyNormalizationMode mode,
2596 int expected_additional_properties); 2596 int expected_additional_properties);
2597 2597
2598 // Convert and update the elements backing store to be a 2598 // Convert and update the elements backing store to be a
2599 // SeededNumberDictionary dictionary. Returns the backing after conversion. 2599 // SeededNumberDictionary dictionary. Returns the backing after conversion.
2600 static Handle<SeededNumberDictionary> NormalizeElements( 2600 static Handle<SeededNumberDictionary> NormalizeElements(
2601 Handle<JSObject> object); 2601 Handle<JSObject> object);
2602 2602
2603 MUST_USE_RESULT MaybeObject* NormalizeElements();
2604
2605 // Transform slow named properties to fast variants. 2603 // Transform slow named properties to fast variants.
2606 static void TransformToFastProperties(Handle<JSObject> object, 2604 static void TransformToFastProperties(Handle<JSObject> object,
2607 int unused_property_fields); 2605 int unused_property_fields);
2608 2606
2609 // Access fast-case object properties at index. 2607 // Access fast-case object properties at index.
2610 MUST_USE_RESULT inline MaybeObject* FastPropertyAt( 2608 MUST_USE_RESULT inline MaybeObject* FastPropertyAt(
2611 Representation representation, 2609 Representation representation,
2612 int index); 2610 int index);
2613 inline Object* RawFastPropertyAt(int index); 2611 inline Object* RawFastPropertyAt(int index);
2614 inline void FastPropertyAtPut(int index, Object* value); 2612 inline void FastPropertyAtPut(int index, Object* value);
(...skipping 8177 matching lines...) Expand 10 before | Expand all | Expand 10 after
10792 } else { 10790 } else {
10793 value &= ~(1 << bit_position); 10791 value &= ~(1 << bit_position);
10794 } 10792 }
10795 return value; 10793 return value;
10796 } 10794 }
10797 }; 10795 };
10798 10796
10799 } } // namespace v8::internal 10797 } } // namespace v8::internal
10800 10798
10801 #endif // V8_OBJECTS_H_ 10799 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « no previous file | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698