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

Side by Side Diff: src/objects.h

Issue 11416238: Move CopyElements to the accessor of the target. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 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
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 2316 matching lines...) Expand 10 before | Expand all | Expand 10 after
2327 // [length]: length of the array. 2327 // [length]: length of the array.
2328 inline int length(); 2328 inline int length();
2329 inline void set_length(int value); 2329 inline void set_length(int value);
2330 2330
2331 inline static FixedArrayBase* cast(Object* object); 2331 inline static FixedArrayBase* cast(Object* object);
2332 2332
2333 // Layout description. 2333 // Layout description.
2334 // Length is smi tagged when it is stored. 2334 // Length is smi tagged when it is stored.
2335 static const int kLengthOffset = HeapObject::kHeaderSize; 2335 static const int kLengthOffset = HeapObject::kHeaderSize;
2336 static const int kHeaderSize = kLengthOffset + kPointerSize; 2336 static const int kHeaderSize = kLengthOffset + kPointerSize;
2337
2338 inline ElementsKind GetElementsKind();
Michael Starzinger 2012/11/29 09:39:32 See comments in objects-inl.h about this method.
Toon Verwaest 2012/11/29 14:04:40 Done.
2337 }; 2339 };
2338 2340
2339 2341
2340 class FixedDoubleArray; 2342 class FixedDoubleArray;
2341 class IncrementalMarking; 2343 class IncrementalMarking;
2342 2344
2343 2345
2344 // FixedArray describes fixed-sized arrays with element type Object*. 2346 // FixedArray describes fixed-sized arrays with element type Object*.
2345 class FixedArray: public FixedArrayBase { 2347 class FixedArray: public FixedArrayBase {
2346 public: 2348 public:
(...skipping 6655 matching lines...) Expand 10 before | Expand all | Expand 10 after
9002 } else { 9004 } else {
9003 value &= ~(1 << bit_position); 9005 value &= ~(1 << bit_position);
9004 } 9006 }
9005 return value; 9007 return value;
9006 } 9008 }
9007 }; 9009 };
9008 9010
9009 } } // namespace v8::internal 9011 } } // namespace v8::internal
9010 9012
9011 #endif // V8_OBJECTS_H_ 9013 #endif // V8_OBJECTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698