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

Side by Side Diff: src/objects.h

Issue 1228113003: Fix non-standard element handling (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Remove handle Created 5 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
« no previous file with comments | « src/lookup.cc ('k') | 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 // 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 2084 matching lines...) Expand 10 before | Expand all | Expand 10 after
2095 static void NormalizeProperties(Handle<JSObject> object, 2095 static void NormalizeProperties(Handle<JSObject> object,
2096 PropertyNormalizationMode mode, 2096 PropertyNormalizationMode mode,
2097 int expected_additional_properties, 2097 int expected_additional_properties,
2098 const char* reason); 2098 const char* reason);
2099 2099
2100 // Convert and update the elements backing store to be a 2100 // Convert and update the elements backing store to be a
2101 // SeededNumberDictionary dictionary. Returns the backing after conversion. 2101 // SeededNumberDictionary dictionary. Returns the backing after conversion.
2102 static Handle<SeededNumberDictionary> NormalizeElements( 2102 static Handle<SeededNumberDictionary> NormalizeElements(
2103 Handle<JSObject> object); 2103 Handle<JSObject> object);
2104 2104
2105 void RequireSlowElements(SeededNumberDictionary* dictionary);
2106
2105 // Transform slow named properties to fast variants. 2107 // Transform slow named properties to fast variants.
2106 static void MigrateSlowToFast(Handle<JSObject> object, 2108 static void MigrateSlowToFast(Handle<JSObject> object,
2107 int unused_property_fields, const char* reason); 2109 int unused_property_fields, const char* reason);
2108 2110
2109 inline bool IsUnboxedDoubleField(FieldIndex index); 2111 inline bool IsUnboxedDoubleField(FieldIndex index);
2110 2112
2111 // Access fast-case object properties at index. 2113 // Access fast-case object properties at index.
2112 static Handle<Object> FastPropertyAt(Handle<JSObject> object, 2114 static Handle<Object> FastPropertyAt(Handle<JSObject> object,
2113 Representation representation, 2115 Representation representation,
2114 FieldIndex index); 2116 FieldIndex index);
(...skipping 8678 matching lines...) Expand 10 before | Expand all | Expand 10 after
10793 } else { 10795 } else {
10794 value &= ~(1 << bit_position); 10796 value &= ~(1 << bit_position);
10795 } 10797 }
10796 return value; 10798 return value;
10797 } 10799 }
10798 }; 10800 };
10799 10801
10800 } } // namespace v8::internal 10802 } } // namespace v8::internal
10801 10803
10802 #endif // V8_OBJECTS_H_ 10804 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/lookup.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698