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

Side by Side Diff: src/objects.h

Issue 7516: - Optimized copying of FixedArray. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 years, 2 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
« src/heap.h ('K') | « src/heap.cc ('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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 1471 matching lines...) Expand 10 before | Expand all | Expand 10 after
1482 inline void set_null(int index); 1482 inline void set_null(int index);
1483 inline void set_the_hole(int index); 1483 inline void set_the_hole(int index);
1484 1484
1485 // Setter that skips the write barrier if mode is SKIP_WRITE_BARRIER. 1485 // Setter that skips the write barrier if mode is SKIP_WRITE_BARRIER.
1486 enum WriteBarrierMode { SKIP_WRITE_BARRIER, UPDATE_WRITE_BARRIER }; 1486 enum WriteBarrierMode { SKIP_WRITE_BARRIER, UPDATE_WRITE_BARRIER };
1487 inline void set(int index, Object* value, WriteBarrierMode mode); 1487 inline void set(int index, Object* value, WriteBarrierMode mode);
1488 // Return the write barrier mode for this. 1488 // Return the write barrier mode for this.
1489 inline WriteBarrierMode GetWriteBarrierMode(); 1489 inline WriteBarrierMode GetWriteBarrierMode();
1490 1490
1491 // Copy operations. 1491 // Copy operations.
1492 Object* Copy(); 1492 inline Object* Copy();
1493 Object* CopySize(int new_length); 1493 Object* CopySize(int new_length);
1494 1494
1495 // Add the elements of a JSArray to this FixedArray. 1495 // Add the elements of a JSArray to this FixedArray.
1496 Object* AddKeysFromJSArray(JSArray* array); 1496 Object* AddKeysFromJSArray(JSArray* array);
1497 1497
1498 // Compute the union of this and other. 1498 // Compute the union of this and other.
1499 Object* UnionOfKeys(FixedArray* other); 1499 Object* UnionOfKeys(FixedArray* other);
1500 1500
1501 // Copy a sub array from the receiver to dest. 1501 // Copy a sub array from the receiver to dest.
1502 void CopyTo(int pos, FixedArray* dest, int dest_pos, int len); 1502 void CopyTo(int pos, FixedArray* dest, int dest_pos, int len);
(...skipping 2511 matching lines...) Expand 10 before | Expand all | Expand 10 after
4014 } else { 4014 } else {
4015 value &= ~(1 << bit_position); 4015 value &= ~(1 << bit_position);
4016 } 4016 }
4017 return value; 4017 return value;
4018 } 4018 }
4019 }; 4019 };
4020 4020
4021 } } // namespace v8::internal 4021 } } // namespace v8::internal
4022 4022
4023 #endif // V8_OBJECTS_H_ 4023 #endif // V8_OBJECTS_H_
OLDNEW
« src/heap.h ('K') | « src/heap.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698