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

Side by Side Diff: src/heap.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 | « src/factory.cc ('k') | src/heap.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 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 // Please note this does not perform a garbage collection. 434 // Please note this does not perform a garbage collection.
435 MUST_USE_RESULT MaybeObject* AllocateFunctionPrototype(JSFunction* function); 435 MUST_USE_RESULT MaybeObject* AllocateFunctionPrototype(JSFunction* function);
436 436
437 // Allocates a Harmony Proxy. 437 // Allocates a Harmony Proxy.
438 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation 438 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
439 // failed. 439 // failed.
440 // Please note this does not perform a garbage collection. 440 // Please note this does not perform a garbage collection.
441 MUST_USE_RESULT MaybeObject* AllocateJSProxy(Object* handler, 441 MUST_USE_RESULT MaybeObject* AllocateJSProxy(Object* handler,
442 Object* prototype); 442 Object* prototype);
443 443
444 // Reinitialize a JSProxy into an (empty) JSObject. The receiver
445 // must have the same size as an empty object. The object is reinitialized
446 // and behaves as an object that has been freshly allocated.
447 MUST_USE_RESULT MaybeObject* ReinitializeJSProxyAsJSObject(JSProxy* object);
448
444 // Reinitialize an JSGlobalProxy based on a constructor. The object 449 // Reinitialize an JSGlobalProxy based on a constructor. The object
445 // must have the same size as objects allocated using the 450 // must have the same size as objects allocated using the
446 // constructor. The object is reinitialized and behaves as an 451 // constructor. The object is reinitialized and behaves as an
447 // object that has been freshly allocated using the constructor. 452 // object that has been freshly allocated using the constructor.
448 MUST_USE_RESULT MaybeObject* ReinitializeJSGlobalProxy( 453 MUST_USE_RESULT MaybeObject* ReinitializeJSGlobalProxy(
449 JSFunction* constructor, JSGlobalProxy* global); 454 JSFunction* constructor, JSGlobalProxy* global);
450 455
451 // Allocates and initializes a new JavaScript object based on a map. 456 // Allocates and initializes a new JavaScript object based on a map.
452 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation 457 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
453 // failed. 458 // failed.
(...skipping 1836 matching lines...) Expand 10 before | Expand all | Expand 10 after
2290 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2295 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2291 }; 2296 };
2292 #endif // DEBUG || LIVE_OBJECT_LIST 2297 #endif // DEBUG || LIVE_OBJECT_LIST
2293 2298
2294 2299
2295 } } // namespace v8::internal 2300 } } // namespace v8::internal
2296 2301
2297 #undef HEAP 2302 #undef HEAP
2298 2303
2299 #endif // V8_HEAP_H_ 2304 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/heap.cc » ('j') | src/objects.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698