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

Side by Side Diff: src/heap.h

Issue 11377132: Support all fast elements kinds in the major array operations. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments (and rebased) Created 8 years, 1 month 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') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 566 matching lines...) Expand 10 before | Expand all | Expand 10 after
577 ElementsKind elements_kind, 577 ElementsKind elements_kind,
578 int length, 578 int length,
579 int capacity, 579 int capacity,
580 ArrayStorageAllocationMode mode = DONT_INITIALIZE_ARRAY_ELEMENTS, 580 ArrayStorageAllocationMode mode = DONT_INITIALIZE_ARRAY_ELEMENTS,
581 PretenureFlag pretenure = NOT_TENURED); 581 PretenureFlag pretenure = NOT_TENURED);
582 582
583 // Allocate a JSArray with no elements 583 // Allocate a JSArray with no elements
584 MUST_USE_RESULT MaybeObject* AllocateJSArrayWithElements( 584 MUST_USE_RESULT MaybeObject* AllocateJSArrayWithElements(
585 FixedArrayBase* array_base, 585 FixedArrayBase* array_base,
586 ElementsKind elements_kind, 586 ElementsKind elements_kind,
587 int length,
587 PretenureFlag pretenure = NOT_TENURED); 588 PretenureFlag pretenure = NOT_TENURED);
588 589
589 // Allocates and initializes a new global object based on a constructor. 590 // Allocates and initializes a new global object based on a constructor.
590 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation 591 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
591 // failed. 592 // failed.
592 // Please note this does not perform a garbage collection. 593 // Please note this does not perform a garbage collection.
593 MUST_USE_RESULT MaybeObject* AllocateGlobalObject(JSFunction* constructor); 594 MUST_USE_RESULT MaybeObject* AllocateGlobalObject(JSFunction* constructor);
594 595
595 // Returns a deep copy of the JavaScript object. 596 // Returns a deep copy of the JavaScript object.
596 // Properties and elements are copied too. 597 // Properties and elements are copied too.
(...skipping 2231 matching lines...) Expand 10 before | Expand all | Expand 10 after
2828 AssertNoAllocation no_alloc; // i.e. no gc allowed. 2829 AssertNoAllocation no_alloc; // i.e. no gc allowed.
2829 2830
2830 private: 2831 private:
2831 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2832 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2832 }; 2833 };
2833 #endif // DEBUG || LIVE_OBJECT_LIST 2834 #endif // DEBUG || LIVE_OBJECT_LIST
2834 2835
2835 } } // namespace v8::internal 2836 } } // namespace v8::internal
2836 2837
2837 #endif // V8_HEAP_H_ 2838 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698