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

Side by Side Diff: src/factory.cc

Issue 8372027: Implement Harmony sets and maps. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments by Andreas Rossberg. Created 9 years, 2 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
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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 78
79 79
80 Handle<NumberDictionary> Factory::NewNumberDictionary(int at_least_space_for) { 80 Handle<NumberDictionary> Factory::NewNumberDictionary(int at_least_space_for) {
81 ASSERT(0 <= at_least_space_for); 81 ASSERT(0 <= at_least_space_for);
82 CALL_HEAP_FUNCTION(isolate(), 82 CALL_HEAP_FUNCTION(isolate(),
83 NumberDictionary::Allocate(at_least_space_for), 83 NumberDictionary::Allocate(at_least_space_for),
84 NumberDictionary); 84 NumberDictionary);
85 } 85 }
86 86
87 87
88 Handle<ObjectHashSet> Factory::NewObjectHashSet(int at_least_space_for) {
89 ASSERT(0 <= at_least_space_for);
90 CALL_HEAP_FUNCTION(isolate(),
91 ObjectHashSet::Allocate(at_least_space_for),
92 ObjectHashSet);
93 }
94
95
88 Handle<ObjectHashTable> Factory::NewObjectHashTable(int at_least_space_for) { 96 Handle<ObjectHashTable> Factory::NewObjectHashTable(int at_least_space_for) {
89 ASSERT(0 <= at_least_space_for); 97 ASSERT(0 <= at_least_space_for);
90 CALL_HEAP_FUNCTION(isolate(), 98 CALL_HEAP_FUNCTION(isolate(),
91 ObjectHashTable::Allocate(at_least_space_for), 99 ObjectHashTable::Allocate(at_least_space_for),
92 ObjectHashTable); 100 ObjectHashTable);
93 } 101 }
94 102
95 103
96 Handle<DescriptorArray> Factory::NewDescriptorArray(int number_of_descriptors) { 104 Handle<DescriptorArray> Factory::NewDescriptorArray(int number_of_descriptors) {
97 ASSERT(0 <= number_of_descriptors); 105 ASSERT(0 <= number_of_descriptors);
(...skipping 1249 matching lines...) Expand 10 before | Expand all | Expand 10 after
1347 1355
1348 1356
1349 Handle<Object> Factory::ToBoolean(bool value) { 1357 Handle<Object> Factory::ToBoolean(bool value) {
1350 return Handle<Object>(value 1358 return Handle<Object>(value
1351 ? isolate()->heap()->true_value() 1359 ? isolate()->heap()->true_value()
1352 : isolate()->heap()->false_value()); 1360 : isolate()->heap()->false_value());
1353 } 1361 }
1354 1362
1355 1363
1356 } } // namespace v8::internal 1364 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/factory.h ('k') | src/flag-definitions.h » ('j') | src/flag-definitions.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698