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

Side by Side Diff: src/heap.h

Issue 6711027: [Isolates] Merge 7201:7258 from bleeding_edge to isolates. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: Created 9 years, 9 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
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 635 matching lines...) Expand 10 before | Expand all | Expand 10 after
646 // Allocates a function initialized with a shared part. 646 // Allocates a function initialized with a shared part.
647 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation 647 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
648 // failed. 648 // failed.
649 // Please note this does not perform a garbage collection. 649 // Please note this does not perform a garbage collection.
650 MUST_USE_RESULT MaybeObject* AllocateFunction( 650 MUST_USE_RESULT MaybeObject* AllocateFunction(
651 Map* function_map, 651 Map* function_map,
652 SharedFunctionInfo* shared, 652 SharedFunctionInfo* shared,
653 Object* prototype, 653 Object* prototype,
654 PretenureFlag pretenure = TENURED); 654 PretenureFlag pretenure = TENURED);
655 655
656 // Indicies for direct access into argument objects. 656 // Arguments object size.
657 static const int kArgumentsObjectSize = 657 static const int kArgumentsObjectSize =
658 JSObject::kHeaderSize + 2 * kPointerSize; 658 JSObject::kHeaderSize + 2 * kPointerSize;
659 static const int arguments_callee_index = 0; 659 // Strict mode arguments has no callee so it is smaller.
660 static const int arguments_length_index = 1; 660 static const int kArgumentsObjectSizeStrict =
661 JSObject::kHeaderSize + 1 * kPointerSize;
662 // Indicies for direct access into argument objects.
663 static const int kArgumentsLengthIndex = 0;
664 // callee is only valid in non-strict mode.
665 static const int kArgumentsCalleeIndex = 1;
661 666
662 // Allocates an arguments object - optionally with an elements array. 667 // Allocates an arguments object - optionally with an elements array.
663 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation 668 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
664 // failed. 669 // failed.
665 // Please note this does not perform a garbage collection. 670 // Please note this does not perform a garbage collection.
666 MUST_USE_RESULT MaybeObject* AllocateArgumentsObject( 671 MUST_USE_RESULT MaybeObject* AllocateArgumentsObject(
667 Object* callee, int length); 672 Object* callee, int length);
668 673
669 // Same as NewNumberFromDouble, but may return a preallocated/immutable 674 // Same as NewNumberFromDouble, but may return a preallocated/immutable
670 // number object (e.g., minus_zero_value_, nan_value_) 675 // number object (e.g., minus_zero_value_, nan_value_)
(...skipping 1576 matching lines...) Expand 10 before | Expand all | Expand 10 after
2247 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2252 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2248 }; 2253 };
2249 #endif // DEBUG || LIVE_OBJECT_LIST 2254 #endif // DEBUG || LIVE_OBJECT_LIST
2250 2255
2251 2256
2252 } } // namespace v8::internal 2257 } } // namespace v8::internal
2253 2258
2254 #undef HEAP 2259 #undef HEAP
2255 2260
2256 #endif // V8_HEAP_H_ 2261 #endif // V8_HEAP_H_
OLDNEW
« src/global-handles.cc ('K') | « src/handles.cc ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698