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

Side by Side Diff: src/heap.h

Issue 6815029: Merge (7180:7265] from bleeding_edge to the experimental/gc branch.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: Created 9 years, 8 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/handles.cc ('k') | src/heap.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 582 matching lines...) Expand 10 before | Expand all | Expand 10 after
593 // Allocates a function initialized with a shared part. 593 // Allocates a function initialized with a shared part.
594 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation 594 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
595 // failed. 595 // failed.
596 // Please note this does not perform a garbage collection. 596 // Please note this does not perform a garbage collection.
597 MUST_USE_RESULT static MaybeObject* AllocateFunction( 597 MUST_USE_RESULT static MaybeObject* AllocateFunction(
598 Map* function_map, 598 Map* function_map,
599 SharedFunctionInfo* shared, 599 SharedFunctionInfo* shared,
600 Object* prototype, 600 Object* prototype,
601 PretenureFlag pretenure = TENURED); 601 PretenureFlag pretenure = TENURED);
602 602
603 // Indicies for direct access into argument objects. 603 // Arguments object size.
604 static const int kArgumentsObjectSize = 604 static const int kArgumentsObjectSize =
605 JSObject::kHeaderSize + 2 * kPointerSize; 605 JSObject::kHeaderSize + 2 * kPointerSize;
606 static const int arguments_callee_index = 0; 606 // Strict mode arguments has no callee so it is smaller.
607 static const int arguments_length_index = 1; 607 static const int kArgumentsObjectSizeStrict =
608 JSObject::kHeaderSize + 1 * kPointerSize;
609 // Indicies for direct access into argument objects.
610 static const int kArgumentsLengthIndex = 0;
611 // callee is only valid in non-strict mode.
612 static const int kArgumentsCalleeIndex = 1;
608 613
609 // Allocates an arguments object - optionally with an elements array. 614 // Allocates an arguments object - optionally with an elements array.
610 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation 615 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
611 // failed. 616 // failed.
612 // Please note this does not perform a garbage collection. 617 // Please note this does not perform a garbage collection.
613 MUST_USE_RESULT static MaybeObject* AllocateArgumentsObject(Object* callee, 618 MUST_USE_RESULT static MaybeObject* AllocateArgumentsObject(Object* callee,
614 int length); 619 int length);
615 620
616 // Same as NewNumberFromDouble, but may return a preallocated/immutable 621 // Same as NewNumberFromDouble, but may return a preallocated/immutable
617 // number object (e.g., minus_zero_value_, nan_value_) 622 // number object (e.g., minus_zero_value_, nan_value_)
(...skipping 1648 matching lines...) Expand 10 before | Expand all | Expand 10 after
2266 2271
2267 AssertNoAllocation no_alloc; // i.e. no gc allowed. 2272 AssertNoAllocation no_alloc; // i.e. no gc allowed.
2268 2273
2269 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2274 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2270 }; 2275 };
2271 #endif // DEBUG || LIVE_OBJECT_LIST 2276 #endif // DEBUG || LIVE_OBJECT_LIST
2272 2277
2273 } } // namespace v8::internal 2278 } } // namespace v8::internal
2274 2279
2275 #endif // V8_HEAP_H_ 2280 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « src/handles.cc ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698