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

Side by Side Diff: src/factory.cc

Issue 159263: - A prototype which allows to expose CanvasPixelArray functionality... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 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/globals.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 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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 return NewProxy((Address) desc, TENURED); 203 return NewProxy((Address) desc, TENURED);
204 } 204 }
205 205
206 206
207 Handle<ByteArray> Factory::NewByteArray(int length, PretenureFlag pretenure) { 207 Handle<ByteArray> Factory::NewByteArray(int length, PretenureFlag pretenure) {
208 ASSERT(0 <= length); 208 ASSERT(0 <= length);
209 CALL_HEAP_FUNCTION(Heap::AllocateByteArray(length, pretenure), ByteArray); 209 CALL_HEAP_FUNCTION(Heap::AllocateByteArray(length, pretenure), ByteArray);
210 } 210 }
211 211
212 212
213 Handle<PixelArray> Factory::NewPixelArray(int length,
214 uint8_t* external_pointer,
215 PretenureFlag pretenure) {
216 ASSERT(0 <= length);
217 CALL_HEAP_FUNCTION(Heap::AllocatePixelArray(length,
218 external_pointer,
219 pretenure), PixelArray);
220 }
221
222
213 Handle<Map> Factory::NewMap(InstanceType type, int instance_size) { 223 Handle<Map> Factory::NewMap(InstanceType type, int instance_size) {
214 CALL_HEAP_FUNCTION(Heap::AllocateMap(type, instance_size), Map); 224 CALL_HEAP_FUNCTION(Heap::AllocateMap(type, instance_size), Map);
215 } 225 }
216 226
217 227
218 Handle<JSObject> Factory::NewFunctionPrototype(Handle<JSFunction> function) { 228 Handle<JSObject> Factory::NewFunctionPrototype(Handle<JSFunction> function) {
219 CALL_HEAP_FUNCTION(Heap::AllocateFunctionPrototype(*function), JSObject); 229 CALL_HEAP_FUNCTION(Heap::AllocateFunctionPrototype(*function), JSObject);
220 } 230 }
221 231
222 232
(...skipping 692 matching lines...) Expand 10 before | Expand all | Expand 10 after
915 Execution::ConfigureInstance(instance, 925 Execution::ConfigureInstance(instance,
916 instance_template, 926 instance_template,
917 pending_exception); 927 pending_exception);
918 } else { 928 } else {
919 *pending_exception = false; 929 *pending_exception = false;
920 } 930 }
921 } 931 }
922 932
923 933
924 } } // namespace v8::internal 934 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/factory.h ('k') | src/globals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698