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

Side by Side Diff: src/objects.h

Issue 103743004: Implement zone-allocated types (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments; silenced x64 warnings Created 7 years 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/list-inl.h ('k') | src/objects.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 2922 matching lines...) Expand 10 before | Expand all | Expand 10 after
2933 inline void set_undefined(int index); 2933 inline void set_undefined(int index);
2934 inline void set_null(int index); 2934 inline void set_null(int index);
2935 inline void set_the_hole(int index); 2935 inline void set_the_hole(int index);
2936 2936
2937 inline Object** GetFirstElementAddress(); 2937 inline Object** GetFirstElementAddress();
2938 inline bool ContainsOnlySmisOrHoles(); 2938 inline bool ContainsOnlySmisOrHoles();
2939 2939
2940 // Gives access to raw memory which stores the array's data. 2940 // Gives access to raw memory which stores the array's data.
2941 inline Object** data_start(); 2941 inline Object** data_start();
2942 2942
2943 // Shrink length and insert filler objects.
2944 void Shrink(int length);
2945
2943 // Copy operations. 2946 // Copy operations.
2944 MUST_USE_RESULT inline MaybeObject* Copy(); 2947 MUST_USE_RESULT inline MaybeObject* Copy();
2945 MUST_USE_RESULT MaybeObject* CopySize(int new_length, 2948 MUST_USE_RESULT MaybeObject* CopySize(int new_length,
2946 PretenureFlag pretenure = NOT_TENURED); 2949 PretenureFlag pretenure = NOT_TENURED);
2947 2950
2948 // Add the elements of a JSArray to this FixedArray. 2951 // Add the elements of a JSArray to this FixedArray.
2949 MUST_USE_RESULT MaybeObject* AddKeysFromJSArray(JSArray* array); 2952 MUST_USE_RESULT MaybeObject* AddKeysFromJSArray(JSArray* array);
2950 2953
2951 // Compute the union of this and other. 2954 // Compute the union of this and other.
2952 MUST_USE_RESULT MaybeObject* UnionOfKeys(FixedArray* other); 2955 MUST_USE_RESULT MaybeObject* UnionOfKeys(FixedArray* other);
(...skipping 7667 matching lines...) Expand 10 before | Expand all | Expand 10 after
10620 } else { 10623 } else {
10621 value &= ~(1 << bit_position); 10624 value &= ~(1 << bit_position);
10622 } 10625 }
10623 return value; 10626 return value;
10624 } 10627 }
10625 }; 10628 };
10626 10629
10627 } } // namespace v8::internal 10630 } } // namespace v8::internal
10628 10631
10629 #endif // V8_OBJECTS_H_ 10632 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/list-inl.h ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698