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

Side by Side Diff: src/heap.h

Issue 6932068: A first skeleton for introducing Harmony proxies (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Addressed Kevin's comments. Created 9 years, 7 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/heap.cc » ('J')
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 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 // Properties and elements are copied too. 445 // Properties and elements are copied too.
446 // Returns failure if allocation failed. 446 // Returns failure if allocation failed.
447 MUST_USE_RESULT MaybeObject* CopyJSObject(JSObject* source); 447 MUST_USE_RESULT MaybeObject* CopyJSObject(JSObject* source);
448 448
449 // Allocates the function prototype. 449 // Allocates the function prototype.
450 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation 450 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
451 // failed. 451 // failed.
452 // Please note this does not perform a garbage collection. 452 // Please note this does not perform a garbage collection.
453 MUST_USE_RESULT MaybeObject* AllocateFunctionPrototype(JSFunction* function); 453 MUST_USE_RESULT MaybeObject* AllocateFunctionPrototype(JSFunction* function);
454 454
455 // Allocates a Harmony Proxy.
456 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
457 // failed.
458 // Please note this does not perform a garbage collection.
459 MUST_USE_RESULT MaybeObject* AllocateJSProxy(Object* handler,
460 Object* prototype);
461
455 // Reinitialize an JSGlobalProxy based on a constructor. The object 462 // Reinitialize an JSGlobalProxy based on a constructor. The object
456 // must have the same size as objects allocated using the 463 // must have the same size as objects allocated using the
457 // constructor. The object is reinitialized and behaves as an 464 // constructor. The object is reinitialized and behaves as an
458 // object that has been freshly allocated using the constructor. 465 // object that has been freshly allocated using the constructor.
459 MUST_USE_RESULT MaybeObject* ReinitializeJSGlobalProxy( 466 MUST_USE_RESULT MaybeObject* ReinitializeJSGlobalProxy(
460 JSFunction* constructor, JSGlobalProxy* global); 467 JSFunction* constructor, JSGlobalProxy* global);
461 468
462 // Allocates and initializes a new JavaScript object based on a map. 469 // Allocates and initializes a new JavaScript object based on a map.
463 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation 470 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
464 // failed. 471 // failed.
(...skipping 1802 matching lines...) Expand 10 before | Expand all | Expand 10 after
2267 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2274 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2268 }; 2275 };
2269 #endif // DEBUG || LIVE_OBJECT_LIST 2276 #endif // DEBUG || LIVE_OBJECT_LIST
2270 2277
2271 2278
2272 } } // namespace v8::internal 2279 } } // namespace v8::internal
2273 2280
2274 #undef HEAP 2281 #undef HEAP
2275 2282
2276 #endif // V8_HEAP_H_ 2283 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/heap.cc » ('j') | src/heap.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698