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

Unified Diff: src/objects.cc

Issue 2756523004: WIP: Create a public v8::DictionarySchema API for bulk reads from dict objects.
Patch Set: Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index 56b666fb8126f7b5d7512c310f3caf1354d620f0..c80113afb7659f5d6e2a7c61e4cbd25b0d8b981d 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -10187,6 +10187,11 @@ void DescriptorArray::Sort() {
DCHECK(IsSortedNoDuplicates());
}
+// static
+Handle<DictionarySchema> DictionarySchema::New(Isolate* isolate, int size) {
+ return Handle<DictionarySchema>::cast(
+ isolate->factory()->NewFixedArray(size, TENURED));
+}
Handle<AccessorPair> AccessorPair::Copy(Handle<AccessorPair> pair) {
Handle<AccessorPair> copy = pair->GetIsolate()->factory()->NewAccessorPair();
« no previous file with comments | « src/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698