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

Side by Side Diff: src/factory.cc

Issue 7385006: Reintroduced dictionary that can use objects as keys. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Incorporated review by Vitaly Repeshko. Created 9 years, 4 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 | « src/factory.h ('k') | src/handles.h » ('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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 77
78 78
79 Handle<NumberDictionary> Factory::NewNumberDictionary(int at_least_space_for) { 79 Handle<NumberDictionary> Factory::NewNumberDictionary(int at_least_space_for) {
80 ASSERT(0 <= at_least_space_for); 80 ASSERT(0 <= at_least_space_for);
81 CALL_HEAP_FUNCTION(isolate(), 81 CALL_HEAP_FUNCTION(isolate(),
82 NumberDictionary::Allocate(at_least_space_for), 82 NumberDictionary::Allocate(at_least_space_for),
83 NumberDictionary); 83 NumberDictionary);
84 } 84 }
85 85
86 86
87 Handle<ObjectHashTable> Factory::NewObjectHashTable(int at_least_space_for) {
88 ASSERT(0 <= at_least_space_for);
89 CALL_HEAP_FUNCTION(isolate(),
90 ObjectHashTable::Allocate(at_least_space_for),
91 ObjectHashTable);
92 }
93
94
87 Handle<DescriptorArray> Factory::NewDescriptorArray(int number_of_descriptors) { 95 Handle<DescriptorArray> Factory::NewDescriptorArray(int number_of_descriptors) {
88 ASSERT(0 <= number_of_descriptors); 96 ASSERT(0 <= number_of_descriptors);
89 CALL_HEAP_FUNCTION(isolate(), 97 CALL_HEAP_FUNCTION(isolate(),
90 DescriptorArray::Allocate(number_of_descriptors), 98 DescriptorArray::Allocate(number_of_descriptors),
91 DescriptorArray); 99 DescriptorArray);
92 } 100 }
93 101
94 102
95 Handle<DeoptimizationInputData> Factory::NewDeoptimizationInputData( 103 Handle<DeoptimizationInputData> Factory::NewDeoptimizationInputData(
96 int deopt_entry_count, 104 int deopt_entry_count,
(...skipping 1157 matching lines...) Expand 10 before | Expand all | Expand 10 after
1254 Execution::ConfigureInstance(instance, 1262 Execution::ConfigureInstance(instance,
1255 instance_template, 1263 instance_template,
1256 pending_exception); 1264 pending_exception);
1257 } else { 1265 } else {
1258 *pending_exception = false; 1266 *pending_exception = false;
1259 } 1267 }
1260 } 1268 }
1261 1269
1262 1270
1263 } } // namespace v8::internal 1271 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/factory.h ('k') | src/handles.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698