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

Side by Side Diff: src/factory.h

Issue 1033653002: Move prototype metadata from internal properties to prototype maps (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: small fixes Created 5 years, 8 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/bootstrapper.cc ('k') | src/factory.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_FACTORY_H_ 5 #ifndef V8_FACTORY_H_
6 #define V8_FACTORY_H_ 6 #define V8_FACTORY_H_
7 7
8 #include "src/isolate.h" 8 #include "src/isolate.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 Handle<ConstantPoolArray> NewExtendedConstantPoolArray( 51 Handle<ConstantPoolArray> NewExtendedConstantPoolArray(
52 const ConstantPoolArray::NumberOfEntries& small, 52 const ConstantPoolArray::NumberOfEntries& small,
53 const ConstantPoolArray::NumberOfEntries& extended); 53 const ConstantPoolArray::NumberOfEntries& extended);
54 54
55 Handle<OrderedHashSet> NewOrderedHashSet(); 55 Handle<OrderedHashSet> NewOrderedHashSet();
56 Handle<OrderedHashMap> NewOrderedHashMap(); 56 Handle<OrderedHashMap> NewOrderedHashMap();
57 57
58 // Create a new boxed value. 58 // Create a new boxed value.
59 Handle<Box> NewBox(Handle<Object> value); 59 Handle<Box> NewBox(Handle<Object> value);
60 60
61 // Create a new PrototypeInfo struct.
62 Handle<PrototypeInfo> NewPrototypeInfo();
63
61 // Create a pre-tenured empty AccessorPair. 64 // Create a pre-tenured empty AccessorPair.
62 Handle<AccessorPair> NewAccessorPair(); 65 Handle<AccessorPair> NewAccessorPair();
63 66
64 // Create an empty TypeFeedbackInfo. 67 // Create an empty TypeFeedbackInfo.
65 Handle<TypeFeedbackInfo> NewTypeFeedbackInfo(); 68 Handle<TypeFeedbackInfo> NewTypeFeedbackInfo();
66 69
67 // Finds the internalized copy for string in the string table. 70 // Finds the internalized copy for string in the string table.
68 // If not found, a new string is added to the table and returned. 71 // If not found, a new string is added to the table and returned.
69 Handle<String> InternalizeUtf8String(Vector<const char> str); 72 Handle<String> InternalizeUtf8String(Vector<const char> str);
70 Handle<String> InternalizeUtf8String(const char* str) { 73 Handle<String> InternalizeUtf8String(const char* str) {
(...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after
705 // Reinitialize a JSProxy into an (empty) JS object of respective type and 708 // Reinitialize a JSProxy into an (empty) JS object of respective type and
706 // size, but keeping the original prototype. The receiver must have at least 709 // size, but keeping the original prototype. The receiver must have at least
707 // the size of the new object. The object is reinitialized and behaves as an 710 // the size of the new object. The object is reinitialized and behaves as an
708 // object that has been freshly allocated. 711 // object that has been freshly allocated.
709 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); 712 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size);
710 }; 713 };
711 714
712 } } // namespace v8::internal 715 } } // namespace v8::internal
713 716
714 #endif // V8_FACTORY_H_ 717 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698