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

Side by Side Diff: src/objects.h

Issue 25453003: Remove deprecated JSObject::GetLocalPropertyType method. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 2 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 2138 matching lines...) Expand 10 before | Expand all | Expand 10 after
2149 ExtensibilityCheck extensibility_check = PERFORM_EXTENSIBILITY_CHECK); 2149 ExtensibilityCheck extensibility_check = PERFORM_EXTENSIBILITY_CHECK);
2150 2150
2151 static inline Handle<String> ExpectedTransitionKey(Handle<Map> map); 2151 static inline Handle<String> ExpectedTransitionKey(Handle<Map> map);
2152 static inline Handle<Map> ExpectedTransitionTarget(Handle<Map> map); 2152 static inline Handle<Map> ExpectedTransitionTarget(Handle<Map> map);
2153 2153
2154 // Try to follow an existing transition to a field with attributes NONE. The 2154 // Try to follow an existing transition to a field with attributes NONE. The
2155 // return value indicates whether the transition was successful. 2155 // return value indicates whether the transition was successful.
2156 static inline Handle<Map> FindTransitionToField(Handle<Map> map, 2156 static inline Handle<Map> FindTransitionToField(Handle<Map> map,
2157 Handle<Name> key); 2157 Handle<Name> key);
2158 2158
2159 inline int LastAddedFieldIndex();
2160
2161 // Extend the receiver with a single fast property appeared first in the 2159 // Extend the receiver with a single fast property appeared first in the
2162 // passed map. This also extends the property backing store if necessary. 2160 // passed map. This also extends the property backing store if necessary.
2163 static void AllocateStorageForMap(Handle<JSObject> object, Handle<Map> map); 2161 static void AllocateStorageForMap(Handle<JSObject> object, Handle<Map> map);
2164 2162
2165 // Migrates the given object to a map whose field representations are the 2163 // Migrates the given object to a map whose field representations are the
2166 // lowest upper bound of all known representations for that field. 2164 // lowest upper bound of all known representations for that field.
2167 static void MigrateInstance(Handle<JSObject> instance); 2165 static void MigrateInstance(Handle<JSObject> instance);
2168 2166
2169 // Migrates the given object only if the target map is already available, 2167 // Migrates the given object only if the target map is already available,
2170 // or returns an empty handle if such a map is not yet available. 2168 // or returns an empty handle if such a map is not yet available.
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
2327 // represented in a FixedDoubleArray and has at least one value that can only 2325 // represented in a FixedDoubleArray and has at least one value that can only
2328 // be represented as a double and not a Smi. 2326 // be represented as a double and not a Smi.
2329 bool ShouldConvertToFastDoubleElements(bool* has_smi_only_elements); 2327 bool ShouldConvertToFastDoubleElements(bool* has_smi_only_elements);
2330 2328
2331 // Computes the new capacity when expanding the elements of a JSObject. 2329 // Computes the new capacity when expanding the elements of a JSObject.
2332 static int NewElementsCapacity(int old_capacity) { 2330 static int NewElementsCapacity(int old_capacity) {
2333 // (old_capacity + 50%) + 16 2331 // (old_capacity + 50%) + 16
2334 return old_capacity + (old_capacity >> 1) + 16; 2332 return old_capacity + (old_capacity >> 1) + 16;
2335 } 2333 }
2336 2334
2337 PropertyType GetLocalPropertyType(Name* name);
2338 PropertyType GetLocalElementType(uint32_t index);
2339
2340 // These methods do not perform access checks! 2335 // These methods do not perform access checks!
2341 AccessorPair* GetLocalPropertyAccessorPair(Name* name); 2336 AccessorPair* GetLocalPropertyAccessorPair(Name* name);
2342 AccessorPair* GetLocalElementAccessorPair(uint32_t index); 2337 AccessorPair* GetLocalElementAccessorPair(uint32_t index);
2343 2338
2344 MUST_USE_RESULT MaybeObject* SetFastElement(uint32_t index, 2339 MUST_USE_RESULT MaybeObject* SetFastElement(uint32_t index,
2345 Object* value, 2340 Object* value,
2346 StrictModeFlag strict_mode, 2341 StrictModeFlag strict_mode,
2347 bool check_prototype); 2342 bool check_prototype);
2348 2343
2349 MUST_USE_RESULT MaybeObject* SetDictionaryElement( 2344 MUST_USE_RESULT MaybeObject* SetDictionaryElement(
(...skipping 7888 matching lines...) Expand 10 before | Expand all | Expand 10 after
10238 } else { 10233 } else {
10239 value &= ~(1 << bit_position); 10234 value &= ~(1 << bit_position);
10240 } 10235 }
10241 return value; 10236 return value;
10242 } 10237 }
10243 }; 10238 };
10244 10239
10245 } } // namespace v8::internal 10240 } } // namespace v8::internal
10246 10241
10247 #endif // V8_OBJECTS_H_ 10242 #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