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

Side by Side Diff: src/objects.h

Issue 14629005: Adding fast path for generalizing maps. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments Created 7 years, 7 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 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 2791 matching lines...) Expand 10 before | Expand all | Expand 10 after
2802 // descriptor array. 2802 // descriptor array.
2803 void CopyFrom(int dst_index, 2803 void CopyFrom(int dst_index,
2804 DescriptorArray* src, 2804 DescriptorArray* src,
2805 int src_index, 2805 int src_index,
2806 const WhitenessWitness&); 2806 const WhitenessWitness&);
2807 MUST_USE_RESULT MaybeObject* Merge(int verbatim, 2807 MUST_USE_RESULT MaybeObject* Merge(int verbatim,
2808 int valid, 2808 int valid,
2809 int new_size, 2809 int new_size,
2810 DescriptorArray* other); 2810 DescriptorArray* other);
2811 2811
2812 bool IsMoreGeneralThan(int verbatim,
2813 int valid,
2814 int new_size,
2815 DescriptorArray* other);
2816
2812 MUST_USE_RESULT MaybeObject* CopyUpTo(int enumeration_index); 2817 MUST_USE_RESULT MaybeObject* CopyUpTo(int enumeration_index);
2813 2818
2814 // Sort the instance descriptors by the hash codes of their keys. 2819 // Sort the instance descriptors by the hash codes of their keys.
2815 void Sort(); 2820 void Sort();
2816 2821
2817 // Search the instance descriptors for given name. 2822 // Search the instance descriptors for given name.
2818 INLINE(int Search(Name* name, int number_of_own_descriptors)); 2823 INLINE(int Search(Name* name, int number_of_own_descriptors));
2819 2824
2820 // As the above, but uses DescriptorLookupCache and updates it when 2825 // As the above, but uses DescriptorLookupCache and updates it when
2821 // necessary. 2826 // necessary.
(...skipping 6703 matching lines...) Expand 10 before | Expand all | Expand 10 after
9525 } else { 9530 } else {
9526 value &= ~(1 << bit_position); 9531 value &= ~(1 << bit_position);
9527 } 9532 }
9528 return value; 9533 return value;
9529 } 9534 }
9530 }; 9535 };
9531 9536
9532 } } // namespace v8::internal 9537 } } // namespace v8::internal
9533 9538
9534 #endif // V8_OBJECTS_H_ 9539 #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