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

Side by Side Diff: src/factory.h

Issue 293023: Added infrastructure for optimizing new CanvasArray types in WebGL... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 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
« no previous file with comments | « src/builtins.cc ('k') | src/factory.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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 static Handle<Proxy> NewProxy(Address addr, 148 static Handle<Proxy> NewProxy(Address addr,
149 PretenureFlag pretenure = NOT_TENURED); 149 PretenureFlag pretenure = NOT_TENURED);
150 150
151 // Allocate a new proxy. The proxy is pretenured (allocated directly in 151 // Allocate a new proxy. The proxy is pretenured (allocated directly in
152 // the old generation). 152 // the old generation).
153 static Handle<Proxy> NewProxy(const AccessorDescriptor* proxy); 153 static Handle<Proxy> NewProxy(const AccessorDescriptor* proxy);
154 154
155 static Handle<ByteArray> NewByteArray(int length, 155 static Handle<ByteArray> NewByteArray(int length,
156 PretenureFlag pretenure = NOT_TENURED); 156 PretenureFlag pretenure = NOT_TENURED);
157 157
158 static Handle<PixelArray> NewPixelArray(int length, 158 static Handle<PixelArray> NewPixelArray(
159 int length,
159 uint8_t* external_pointer, 160 uint8_t* external_pointer,
160 PretenureFlag pretenure = NOT_TENURED); 161 PretenureFlag pretenure = NOT_TENURED);
161 162
163 static Handle<ExternalArray> NewExternalArray(
164 int length,
165 ExternalArrayType array_type,
166 void* external_pointer,
167 PretenureFlag pretenure = NOT_TENURED);
168
162 static Handle<Map> NewMap(InstanceType type, int instance_size); 169 static Handle<Map> NewMap(InstanceType type, int instance_size);
163 170
164 static Handle<JSObject> NewFunctionPrototype(Handle<JSFunction> function); 171 static Handle<JSObject> NewFunctionPrototype(Handle<JSFunction> function);
165 172
166 static Handle<Map> CopyMapDropDescriptors(Handle<Map> map); 173 static Handle<Map> CopyMapDropDescriptors(Handle<Map> map);
167 174
168 // Copy the map adding more inobject properties if possible without 175 // Copy the map adding more inobject properties if possible without
169 // overflowing the instance size. 176 // overflowing the instance size.
170 static Handle<Map> CopyMap(Handle<Map> map, int extra_inobject_props); 177 static Handle<Map> CopyMap(Handle<Map> map, int extra_inobject_props);
171 178
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 Handle<String> message); 245 Handle<String> message);
239 246
240 static Handle<Object> NewTypeError(const char* type, 247 static Handle<Object> NewTypeError(const char* type,
241 Vector< Handle<Object> > args); 248 Vector< Handle<Object> > args);
242 static Handle<Object> NewTypeError(Handle<String> message); 249 static Handle<Object> NewTypeError(Handle<String> message);
243 250
244 static Handle<Object> NewRangeError(const char* type, 251 static Handle<Object> NewRangeError(const char* type,
245 Vector< Handle<Object> > args); 252 Vector< Handle<Object> > args);
246 static Handle<Object> NewRangeError(Handle<String> message); 253 static Handle<Object> NewRangeError(Handle<String> message);
247 254
255 static Handle<Object> NewIndexError(uint32_t index);
256
248 static Handle<Object> NewSyntaxError(const char* type, Handle<JSArray> args); 257 static Handle<Object> NewSyntaxError(const char* type, Handle<JSArray> args);
249 static Handle<Object> NewSyntaxError(Handle<String> message); 258 static Handle<Object> NewSyntaxError(Handle<String> message);
250 259
251 static Handle<Object> NewReferenceError(const char* type, 260 static Handle<Object> NewReferenceError(const char* type,
252 Vector< Handle<Object> > args); 261 Vector< Handle<Object> > args);
253 static Handle<Object> NewReferenceError(Handle<String> message); 262 static Handle<Object> NewReferenceError(Handle<String> message);
254 263
255 static Handle<Object> NewEvalError(const char* type, 264 static Handle<Object> NewEvalError(const char* type,
256 Vector< Handle<Object> > args); 265 Vector< Handle<Object> > args);
257 266
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 // Update the map cache in the global context with (keys, map) 385 // Update the map cache in the global context with (keys, map)
377 static Handle<MapCache> AddToMapCache(Handle<Context> context, 386 static Handle<MapCache> AddToMapCache(Handle<Context> context,
378 Handle<FixedArray> keys, 387 Handle<FixedArray> keys,
379 Handle<Map> map); 388 Handle<Map> map);
380 }; 389 };
381 390
382 391
383 } } // namespace v8::internal 392 } } // namespace v8::internal
384 393
385 #endif // V8_FACTORY_H_ 394 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « src/builtins.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698