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

Side by Side Diff: src/factory.cc

Issue 7990: Implement Array::concat function in C++.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 12 years, 1 month 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/objects.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 24 matching lines...) Expand all
35 35
36 namespace v8 { namespace internal { 36 namespace v8 { namespace internal {
37 37
38 38
39 Handle<FixedArray> Factory::NewFixedArray(int size, PretenureFlag pretenure) { 39 Handle<FixedArray> Factory::NewFixedArray(int size, PretenureFlag pretenure) {
40 ASSERT(0 <= size); 40 ASSERT(0 <= size);
41 CALL_HEAP_FUNCTION(Heap::AllocateFixedArray(size, pretenure), FixedArray); 41 CALL_HEAP_FUNCTION(Heap::AllocateFixedArray(size, pretenure), FixedArray);
42 } 42 }
43 43
44 44
45 Handle<Dictionary> Factory::NewDictionary(int at_least_space_for) {
46 ASSERT(0 <= at_least_space_for);
47 CALL_HEAP_FUNCTION(Dictionary::Allocate(at_least_space_for), Dictionary);
48 }
49
50
45 Handle<DescriptorArray> Factory::NewDescriptorArray(int number_of_descriptors) { 51 Handle<DescriptorArray> Factory::NewDescriptorArray(int number_of_descriptors) {
46 ASSERT(0 <= number_of_descriptors); 52 ASSERT(0 <= number_of_descriptors);
47 CALL_HEAP_FUNCTION(DescriptorArray::Allocate(number_of_descriptors), 53 CALL_HEAP_FUNCTION(DescriptorArray::Allocate(number_of_descriptors),
48 DescriptorArray); 54 DescriptorArray);
49 } 55 }
50 56
51 57
52 // Symbols are created in the old generation (data space). 58 // Symbols are created in the old generation (data space).
53 Handle<String> Factory::LookupSymbol(Vector<const char> string) { 59 Handle<String> Factory::LookupSymbol(Vector<const char> string) {
54 CALL_HEAP_FUNCTION(Heap::LookupSymbol(string), String); 60 CALL_HEAP_FUNCTION(Heap::LookupSymbol(string), String);
(...skipping 777 matching lines...) Expand 10 before | Expand all | Expand 10 after
832 Execution::ConfigureInstance(instance, 838 Execution::ConfigureInstance(instance,
833 instance_template, 839 instance_template,
834 pending_exception); 840 pending_exception);
835 } else { 841 } else {
836 *pending_exception = false; 842 *pending_exception = false;
837 } 843 }
838 } 844 }
839 845
840 846
841 } } // namespace v8::internal 847 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/factory.h ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698