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

Side by Side Diff: src/objects.h

Issue 635883003: Limit the number of transitions allowed per hidden class. (Closed) Base URL: https://chromium.googlesource.com/external/v8.git@bleeding_edge
Patch Set: Address Toon comments Created 6 years, 1 month 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/heap/mark-compact.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 6092 matching lines...) Expand 10 before | Expand all | Expand 10 after
6103 // Update code cache. 6103 // Update code cache.
6104 static void UpdateCodeCache(Handle<Map> map, 6104 static void UpdateCodeCache(Handle<Map> map,
6105 Handle<Name> name, 6105 Handle<Name> name,
6106 Handle<Code> code); 6106 Handle<Code> code);
6107 6107
6108 // Extend the descriptor array of the map with the list of descriptors. 6108 // Extend the descriptor array of the map with the list of descriptors.
6109 // In case of duplicates, the latest descriptor is used. 6109 // In case of duplicates, the latest descriptor is used.
6110 static void AppendCallbackDescriptors(Handle<Map> map, 6110 static void AppendCallbackDescriptors(Handle<Map> map,
6111 Handle<Object> descriptors); 6111 Handle<Object> descriptors);
6112 6112
6113 static inline int SlackForArraySize(int old_size, int size_limit);
6114
6113 static void EnsureDescriptorSlack(Handle<Map> map, int slack); 6115 static void EnsureDescriptorSlack(Handle<Map> map, int slack);
6114 6116
6115 // Returns the found code or undefined if absent. 6117 // Returns the found code or undefined if absent.
6116 Object* FindInCodeCache(Name* name, Code::Flags flags); 6118 Object* FindInCodeCache(Name* name, Code::Flags flags);
6117 6119
6118 // Returns the non-negative index of the code object if it is in the 6120 // Returns the non-negative index of the code object if it is in the
6119 // cache and -1 otherwise. 6121 // cache and -1 otherwise.
6120 int IndexInCodeCache(Object* name, Code* code); 6122 int IndexInCodeCache(Object* name, Code* code);
6121 6123
6122 // Removes a code object from the code cache at the given index. 6124 // Removes a code object from the code cache at the given index.
(...skipping 4787 matching lines...) Expand 10 before | Expand all | Expand 10 after
10910 } else { 10912 } else {
10911 value &= ~(1 << bit_position); 10913 value &= ~(1 << bit_position);
10912 } 10914 }
10913 return value; 10915 return value;
10914 } 10916 }
10915 }; 10917 };
10916 10918
10917 } } // namespace v8::internal 10919 } } // namespace v8::internal
10918 10920
10919 #endif // V8_OBJECTS_H_ 10921 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/heap/mark-compact.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698