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

Side by Side Diff: src/objects.h

Issue 1126213002: Wrap runtime.js in a function. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix Created 5 years, 7 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/object-observe.js ('k') | src/regexp.js » ('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 2227 matching lines...) Expand 10 before | Expand all | Expand 10 after
2238 static const int kMaxUncheckedFastElementsLength = 5000; 2238 static const int kMaxUncheckedFastElementsLength = 5000;
2239 2239
2240 // Same as above but for old arrays. This limit is more strict. We 2240 // Same as above but for old arrays. This limit is more strict. We
2241 // don't want to be wasteful with long lived objects. 2241 // don't want to be wasteful with long lived objects.
2242 static const int kMaxUncheckedOldFastElementsLength = 500; 2242 static const int kMaxUncheckedOldFastElementsLength = 500;
2243 2243
2244 // Note that Page::kMaxRegularHeapObjectSize puts a limit on 2244 // Note that Page::kMaxRegularHeapObjectSize puts a limit on
2245 // permissible values (see the DCHECK in heap.cc). 2245 // permissible values (see the DCHECK in heap.cc).
2246 static const int kInitialMaxFastElementArray = 100000; 2246 static const int kInitialMaxFastElementArray = 100000;
2247 2247
2248 // This constant applies only to the initial map of "$Object" aka 2248 // This constant applies only to the initial map of "global.Object" and
2249 // "global.Object" and not to arbitrary other JSObject maps. 2249 // not to arbitrary other JSObject maps.
2250 static const int kInitialGlobalObjectUnusedPropertiesCount = 4; 2250 static const int kInitialGlobalObjectUnusedPropertiesCount = 4;
2251 2251
2252 static const int kMaxInstanceSize = 255 * kPointerSize; 2252 static const int kMaxInstanceSize = 255 * kPointerSize;
2253 // When extending the backing storage for property values, we increase 2253 // When extending the backing storage for property values, we increase
2254 // its size by more than the 1 entry necessary, so sequentially adding fields 2254 // its size by more than the 1 entry necessary, so sequentially adding fields
2255 // to the same object requires fewer allocations and copies. 2255 // to the same object requires fewer allocations and copies.
2256 static const int kFieldsAdded = 3; 2256 static const int kFieldsAdded = 3;
2257 2257
2258 // Layout description. 2258 // Layout description.
2259 static const int kPropertiesOffset = HeapObject::kHeaderSize; 2259 static const int kPropertiesOffset = HeapObject::kHeaderSize;
(...skipping 8850 matching lines...) Expand 10 before | Expand all | Expand 10 after
11110 } else { 11110 } else {
11111 value &= ~(1 << bit_position); 11111 value &= ~(1 << bit_position);
11112 } 11112 }
11113 return value; 11113 return value;
11114 } 11114 }
11115 }; 11115 };
11116 11116
11117 } } // namespace v8::internal 11117 } } // namespace v8::internal
11118 11118
11119 #endif // V8_OBJECTS_H_ 11119 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/object-observe.js ('k') | src/regexp.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698