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

Side by Side Diff: src/factory.h

Issue 6664001: [Isolates] Merge (7083,7111] from bleeding_edge. (Closed)
Patch Set: Created 9 years, 9 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
« no previous file with comments | « src/debug.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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 Handle<Proxy> NewProxy(Address addr, 160 Handle<Proxy> NewProxy(Address addr,
161 PretenureFlag pretenure = NOT_TENURED); 161 PretenureFlag pretenure = NOT_TENURED);
162 162
163 // Allocate a new proxy. The proxy is pretenured (allocated directly in 163 // Allocate a new proxy. The proxy is pretenured (allocated directly in
164 // the old generation). 164 // the old generation).
165 Handle<Proxy> NewProxy(const AccessorDescriptor* proxy); 165 Handle<Proxy> NewProxy(const AccessorDescriptor* proxy);
166 166
167 Handle<ByteArray> NewByteArray(int length, 167 Handle<ByteArray> NewByteArray(int length,
168 PretenureFlag pretenure = NOT_TENURED); 168 PretenureFlag pretenure = NOT_TENURED);
169 169
170 Handle<PixelArray> NewPixelArray(
171 int length,
172 uint8_t* external_pointer,
173 PretenureFlag pretenure = NOT_TENURED);
174
175 Handle<ExternalArray> NewExternalArray( 170 Handle<ExternalArray> NewExternalArray(
176 int length, 171 int length,
177 ExternalArrayType array_type, 172 ExternalArrayType array_type,
178 void* external_pointer, 173 void* external_pointer,
179 PretenureFlag pretenure = NOT_TENURED); 174 PretenureFlag pretenure = NOT_TENURED);
180 175
181 Handle<JSGlobalPropertyCell> NewJSGlobalPropertyCell( 176 Handle<JSGlobalPropertyCell> NewJSGlobalPropertyCell(
182 Handle<Object> value); 177 Handle<Object> value);
183 178
184 Handle<Map> NewMap(InstanceType type, int instance_size); 179 Handle<Map> NewMap(InstanceType type, int instance_size);
185 180
186 Handle<JSObject> NewFunctionPrototype(Handle<JSFunction> function); 181 Handle<JSObject> NewFunctionPrototype(Handle<JSFunction> function);
187 182
188 Handle<Map> CopyMapDropDescriptors(Handle<Map> map); 183 Handle<Map> CopyMapDropDescriptors(Handle<Map> map);
189 184
190 // Copy the map adding more inobject properties if possible without 185 // Copy the map adding more inobject properties if possible without
191 // overflowing the instance size. 186 // overflowing the instance size.
192 Handle<Map> CopyMap(Handle<Map> map, int extra_inobject_props); 187 Handle<Map> CopyMap(Handle<Map> map, int extra_inobject_props);
193 188
194 Handle<Map> CopyMapDropTransitions(Handle<Map> map); 189 Handle<Map> CopyMapDropTransitions(Handle<Map> map);
195 190
196 Handle<Map> GetFastElementsMap(Handle<Map> map); 191 Handle<Map> GetFastElementsMap(Handle<Map> map);
197 192
198 Handle<Map> GetSlowElementsMap(Handle<Map> map); 193 Handle<Map> GetSlowElementsMap(Handle<Map> map);
199 194
200 Handle<Map> GetPixelArrayElementsMap(Handle<Map> map); 195 Handle<Map> NewExternalArrayElementsMap(Handle<Map> map);
201 196
202 Handle<FixedArray> CopyFixedArray(Handle<FixedArray> array); 197 Handle<FixedArray> CopyFixedArray(Handle<FixedArray> array);
203 198
204 // Numbers (eg, literals) are pretenured by the parser. 199 // Numbers (eg, literals) are pretenured by the parser.
205 Handle<Object> NewNumber(double value, 200 Handle<Object> NewNumber(double value,
206 PretenureFlag pretenure = NOT_TENURED); 201 PretenureFlag pretenure = NOT_TENURED);
207 202
208 Handle<Object> NewNumberFromInt(int value); 203 Handle<Object> NewNumberFromInt(int value);
209 Handle<Object> NewNumberFromUint(uint32_t value); 204 Handle<Object> NewNumberFromUint(uint32_t value);
210 205
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 Handle<Map> function_map, 241 Handle<Map> function_map,
247 PretenureFlag pretenure); 242 PretenureFlag pretenure);
248 243
249 Handle<JSFunction> NewFunctionFromSharedFunctionInfo( 244 Handle<JSFunction> NewFunctionFromSharedFunctionInfo(
250 Handle<SharedFunctionInfo> function_info, 245 Handle<SharedFunctionInfo> function_info,
251 Handle<Context> context, 246 Handle<Context> context,
252 PretenureFlag pretenure = TENURED); 247 PretenureFlag pretenure = TENURED);
253 248
254 Handle<Code> NewCode(const CodeDesc& desc, 249 Handle<Code> NewCode(const CodeDesc& desc,
255 Code::Flags flags, 250 Code::Flags flags,
256 Handle<Object> self_reference); 251 Handle<Object> self_reference,
252 bool immovable = false);
257 253
258 Handle<Code> CopyCode(Handle<Code> code); 254 Handle<Code> CopyCode(Handle<Code> code);
259 255
260 Handle<Code> CopyCode(Handle<Code> code, Vector<byte> reloc_info); 256 Handle<Code> CopyCode(Handle<Code> code, Vector<byte> reloc_info);
261 257
262 Handle<Object> ToObject(Handle<Object> object); 258 Handle<Object> ToObject(Handle<Object> object);
263 Handle<Object> ToObject(Handle<Object> object, 259 Handle<Object> ToObject(Handle<Object> object,
264 Handle<Context> global_context); 260 Handle<Context> global_context);
265 261
266 // Interface for creating error objects. 262 // Interface for creating error objects.
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 // Update the map cache in the global context with (keys, map) 422 // Update the map cache in the global context with (keys, map)
427 Handle<MapCache> AddToMapCache(Handle<Context> context, 423 Handle<MapCache> AddToMapCache(Handle<Context> context,
428 Handle<FixedArray> keys, 424 Handle<FixedArray> keys,
429 Handle<Map> map); 425 Handle<Map> map);
430 }; 426 };
431 427
432 428
433 } } // namespace v8::internal 429 } } // namespace v8::internal
434 430
435 #endif // V8_FACTORY_H_ 431 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « src/debug.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698