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

Side by Side Diff: src/factory.h

Issue 7391001: Implement sealing, freezing, and related functions for proxies. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressing Mads' comments, plus bug fix. Created 9 years, 5 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') | src/objects.cc » ('J')
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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 // JS arrays are pretenured when allocated by the parser. 246 // JS arrays are pretenured when allocated by the parser.
247 Handle<JSArray> NewJSArray(int capacity, 247 Handle<JSArray> NewJSArray(int capacity,
248 PretenureFlag pretenure = NOT_TENURED); 248 PretenureFlag pretenure = NOT_TENURED);
249 249
250 Handle<JSArray> NewJSArrayWithElements( 250 Handle<JSArray> NewJSArrayWithElements(
251 Handle<FixedArray> elements, 251 Handle<FixedArray> elements,
252 PretenureFlag pretenure = NOT_TENURED); 252 PretenureFlag pretenure = NOT_TENURED);
253 253
254 Handle<JSProxy> NewJSProxy(Handle<Object> handler, Handle<Object> prototype); 254 Handle<JSProxy> NewJSProxy(Handle<Object> handler, Handle<Object> prototype);
255 255
256 // Change the type of the argument into a regular JS object and reinitialize.
257 void BecomeJSObject(Handle<JSProxy> object);
258
256 Handle<JSFunction> NewFunction(Handle<String> name, 259 Handle<JSFunction> NewFunction(Handle<String> name,
257 Handle<Object> prototype); 260 Handle<Object> prototype);
258 261
259 Handle<JSFunction> NewFunctionWithoutPrototype( 262 Handle<JSFunction> NewFunctionWithoutPrototype(
260 Handle<String> name, 263 Handle<String> name,
261 StrictModeFlag strict_mode); 264 StrictModeFlag strict_mode);
262 265
263 Handle<JSFunction> NewFunction(Handle<Object> super, bool is_global); 266 Handle<JSFunction> NewFunction(Handle<Object> super, bool is_global);
264 267
265 Handle<JSFunction> BaseNewFunctionFromSharedFunctionInfo( 268 Handle<JSFunction> BaseNewFunctionFromSharedFunctionInfo(
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 // Update the map cache in the global context with (keys, map) 452 // Update the map cache in the global context with (keys, map)
450 Handle<MapCache> AddToMapCache(Handle<Context> context, 453 Handle<MapCache> AddToMapCache(Handle<Context> context,
451 Handle<FixedArray> keys, 454 Handle<FixedArray> keys,
452 Handle<Map> map); 455 Handle<Map> map);
453 }; 456 };
454 457
455 458
456 } } // namespace v8::internal 459 } } // namespace v8::internal
457 460
458 #endif // V8_FACTORY_H_ 461 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « no previous file | src/factory.cc » ('j') | src/objects.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698