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

Side by Side Diff: src/objects.h

Issue 7569001: Fix performance regression due to elements refactor (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: review feedback Created 9 years, 4 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
« no previous file with comments | « no previous file | 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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 1717 matching lines...) Expand 10 before | Expand all | Expand 10 after
1728 1728
1729 // Set the index'th array element. 1729 // Set the index'th array element.
1730 // A Failure object is returned if GC is needed. 1730 // A Failure object is returned if GC is needed.
1731 MUST_USE_RESULT MaybeObject* SetElement(uint32_t index, 1731 MUST_USE_RESULT MaybeObject* SetElement(uint32_t index,
1732 Object* value, 1732 Object* value,
1733 StrictModeFlag strict_mode, 1733 StrictModeFlag strict_mode,
1734 bool check_prototype); 1734 bool check_prototype);
1735 1735
1736 // Returns the index'th element. 1736 // Returns the index'th element.
1737 // The undefined object if index is out of bounds. 1737 // The undefined object if index is out of bounds.
1738 MaybeObject* GetElementWithReceiver(Object* receiver, uint32_t index);
1739 MaybeObject* GetElementWithInterceptor(Object* receiver, uint32_t index); 1738 MaybeObject* GetElementWithInterceptor(Object* receiver, uint32_t index);
1740 1739
1741 // Replace the elements' backing store with fast elements of the given 1740 // Replace the elements' backing store with fast elements of the given
1742 // capacity. Update the length for JSArrays. Returns the new backing 1741 // capacity. Update the length for JSArrays. Returns the new backing
1743 // store. 1742 // store.
1744 MUST_USE_RESULT MaybeObject* SetFastElementsCapacityAndLength(int capacity, 1743 MUST_USE_RESULT MaybeObject* SetFastElementsCapacityAndLength(int capacity,
1745 int length); 1744 int length);
1746 MUST_USE_RESULT MaybeObject* SetFastDoubleElementsCapacityAndLength( 1745 MUST_USE_RESULT MaybeObject* SetFastDoubleElementsCapacityAndLength(
1747 int capacity, 1746 int capacity,
1748 int length); 1747 int length);
(...skipping 5520 matching lines...) Expand 10 before | Expand all | Expand 10 after
7269 } else { 7268 } else {
7270 value &= ~(1 << bit_position); 7269 value &= ~(1 << bit_position);
7271 } 7270 }
7272 return value; 7271 return value;
7273 } 7272 }
7274 }; 7273 };
7275 7274
7276 } } // namespace v8::internal 7275 } } // namespace v8::internal
7277 7276
7278 #endif // V8_OBJECTS_H_ 7277 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « no previous file | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698