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

Side by Side Diff: src/factory.h

Issue 28783002: Handlify PropertyCell::SetValueInferType and friends. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments by Andreas Rossberg. Created 7 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 | « no previous file | 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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 PretenureFlag pretenure = NOT_TENURED); 241 PretenureFlag pretenure = NOT_TENURED);
242 242
243 Handle<ExternalArray> NewExternalArray( 243 Handle<ExternalArray> NewExternalArray(
244 int length, 244 int length,
245 ExternalArrayType array_type, 245 ExternalArrayType array_type,
246 void* external_pointer, 246 void* external_pointer,
247 PretenureFlag pretenure = NOT_TENURED); 247 PretenureFlag pretenure = NOT_TENURED);
248 248
249 Handle<Cell> NewCell(Handle<Object> value); 249 Handle<Cell> NewCell(Handle<Object> value);
250 250
251 Handle<PropertyCell> NewPropertyCellWithHole();
252
251 Handle<PropertyCell> NewPropertyCell(Handle<Object> value); 253 Handle<PropertyCell> NewPropertyCell(Handle<Object> value);
252 254
253 Handle<AllocationSite> NewAllocationSite(); 255 Handle<AllocationSite> NewAllocationSite();
254 256
255 Handle<Map> NewMap( 257 Handle<Map> NewMap(
256 InstanceType type, 258 InstanceType type,
257 int instance_size, 259 int instance_size,
258 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND); 260 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND);
259 261
260 Handle<JSObject> NewFunctionPrototype(Handle<JSFunction> function); 262 Handle<JSObject> NewFunctionPrototype(Handle<JSFunction> function);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 // structures in the heap. 301 // structures in the heap.
300 Handle<JSObject> NewNeanderObject(); 302 Handle<JSObject> NewNeanderObject();
301 303
302 Handle<JSObject> NewArgumentsObject(Handle<Object> callee, int length); 304 Handle<JSObject> NewArgumentsObject(Handle<Object> callee, int length);
303 305
304 // JS objects are pretenured when allocated by the bootstrapper and 306 // JS objects are pretenured when allocated by the bootstrapper and
305 // runtime. 307 // runtime.
306 Handle<JSObject> NewJSObject(Handle<JSFunction> constructor, 308 Handle<JSObject> NewJSObject(Handle<JSFunction> constructor,
307 PretenureFlag pretenure = NOT_TENURED); 309 PretenureFlag pretenure = NOT_TENURED);
308 310
309 // Global objects are pretenured. 311 // Global objects are pretenured and initialized based on a constructor.
310 Handle<GlobalObject> NewGlobalObject(Handle<JSFunction> constructor); 312 Handle<GlobalObject> NewGlobalObject(Handle<JSFunction> constructor);
311 313
312 // JS objects are pretenured when allocated by the bootstrapper and 314 // JS objects are pretenured when allocated by the bootstrapper and
313 // runtime. 315 // runtime.
314 Handle<JSObject> NewJSObjectFromMap(Handle<Map> map, 316 Handle<JSObject> NewJSObjectFromMap(Handle<Map> map,
315 PretenureFlag pretenure = NOT_TENURED, 317 PretenureFlag pretenure = NOT_TENURED,
316 bool allocate_properties = true); 318 bool allocate_properties = true);
317 319
318 Handle<JSObject> NewJSObjectFromMapForDeoptimizer( 320 Handle<JSObject> NewJSObjectFromMapForDeoptimizer(
319 Handle<Map> map, PretenureFlag pretenure = NOT_TENURED); 321 Handle<Map> map, PretenureFlag pretenure = NOT_TENURED);
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
672 } 674 }
673 675
674 private: 676 private:
675 Isolate* isolate_; 677 Isolate* isolate_;
676 }; 678 };
677 679
678 680
679 } } // namespace v8::internal 681 } } // namespace v8::internal
680 682
681 #endif // V8_FACTORY_H_ 683 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « no previous file | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698