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

Side by Side Diff: src/factory.h

Issue 7623011: Implement function proxies (except for their use as constructors). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed second round of comments. Created 9 years, 3 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/execution.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 // JS arrays are pretenured when allocated by the parser. 248 // JS arrays are pretenured when allocated by the parser.
249 Handle<JSArray> NewJSArray(int capacity, 249 Handle<JSArray> NewJSArray(int capacity,
250 PretenureFlag pretenure = NOT_TENURED); 250 PretenureFlag pretenure = NOT_TENURED);
251 251
252 Handle<JSArray> NewJSArrayWithElements( 252 Handle<JSArray> NewJSArrayWithElements(
253 Handle<FixedArray> elements, 253 Handle<FixedArray> elements,
254 PretenureFlag pretenure = NOT_TENURED); 254 PretenureFlag pretenure = NOT_TENURED);
255 255
256 Handle<JSProxy> NewJSProxy(Handle<Object> handler, Handle<Object> prototype); 256 Handle<JSProxy> NewJSProxy(Handle<Object> handler, Handle<Object> prototype);
257 257
258 // Change the type of the argument into a regular JS object and reinitialize. 258 // Change the type of the argument into a JS object/function and reinitialize.
259 void BecomeJSObject(Handle<JSProxy> object); 259 void BecomeJSObject(Handle<JSReceiver> object);
260 void BecomeJSFunction(Handle<JSReceiver> object);
260 261
261 Handle<JSFunction> NewFunction(Handle<String> name, 262 Handle<JSFunction> NewFunction(Handle<String> name,
262 Handle<Object> prototype); 263 Handle<Object> prototype);
263 264
264 Handle<JSFunction> NewFunctionWithoutPrototype( 265 Handle<JSFunction> NewFunctionWithoutPrototype(
265 Handle<String> name, 266 Handle<String> name,
266 StrictModeFlag strict_mode); 267 StrictModeFlag strict_mode);
267 268
268 Handle<JSFunction> NewFunction(Handle<Object> super, bool is_global); 269 Handle<JSFunction> NewFunction(Handle<Object> super, bool is_global);
269 270
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 // Update the map cache in the global context with (keys, map) 455 // Update the map cache in the global context with (keys, map)
455 Handle<MapCache> AddToMapCache(Handle<Context> context, 456 Handle<MapCache> AddToMapCache(Handle<Context> context,
456 Handle<FixedArray> keys, 457 Handle<FixedArray> keys,
457 Handle<Map> map); 458 Handle<Map> map);
458 }; 459 };
459 460
460 461
461 } } // namespace v8::internal 462 } } // namespace v8::internal
462 463
463 #endif // V8_FACTORY_H_ 464 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « src/execution.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698