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

Side by Side Diff: src/objects.h

Issue 7226: - Inlined JSArray::SetContent.... (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
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 3516 matching lines...) Expand 10 before | Expand all | Expand 10 after
3527 DECL_ACCESSORS(length, Object) 3527 DECL_ACCESSORS(length, Object)
3528 3528
3529 Object* JSArrayUpdateLengthFromIndex(uint32_t index, Object* value); 3529 Object* JSArrayUpdateLengthFromIndex(uint32_t index, Object* value);
3530 3530
3531 // Initialize the array with the given capacity. The function may 3531 // Initialize the array with the given capacity. The function may
3532 // fail due to out-of-memory situations, but only if the requested 3532 // fail due to out-of-memory situations, but only if the requested
3533 // capacity is non-zero. 3533 // capacity is non-zero.
3534 Object* Initialize(int capacity); 3534 Object* Initialize(int capacity);
3535 3535
3536 // Set the content of the array to the content of storage. 3536 // Set the content of the array to the content of storage.
3537 void SetContent(FixedArray* storage); 3537 inline void SetContent(FixedArray* storage);
3538 3538
3539 // Support for sorting 3539 // Support for sorting
3540 Object* RemoveHoles(); 3540 Object* RemoveHoles();
3541 3541
3542 // Casting. 3542 // Casting.
3543 static inline JSArray* cast(Object* obj); 3543 static inline JSArray* cast(Object* obj);
3544 3544
3545 // Dispatched behavior. 3545 // Dispatched behavior.
3546 #ifdef DEBUG 3546 #ifdef DEBUG
3547 void JSArrayPrint(); 3547 void JSArrayPrint();
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after
3997 } else { 3997 } else {
3998 value &= ~(1 << bit_position); 3998 value &= ~(1 << bit_position);
3999 } 3999 }
4000 return value; 4000 return value;
4001 } 4001 }
4002 }; 4002 };
4003 4003
4004 } } // namespace v8::internal 4004 } } // namespace v8::internal
4005 4005
4006 #endif // V8_OBJECTS_H_ 4006 #endif // V8_OBJECTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698