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

Side by Side Diff: src/objects-inl.h

Issue 259883002: ES6: Add support for Map and Set Iterator (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Code review changes Created 6 years, 6 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 | « src/objects-debug.cc ('k') | src/runtime.h » ('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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // Review notes: 5 // Review notes:
6 // 6 //
7 // - The use of macros in these inline functions may seem superfluous 7 // - The use of macros in these inline functions may seem superfluous
8 // but it is absolutely needed to make sure gcc generates optimal 8 // but it is absolutely needed to make sure gcc generates optimal
9 // code. gcc is not happy when attempting to inline too deep. 9 // code. gcc is not happy when attempting to inline too deep.
10 // 10 //
(...skipping 6109 matching lines...) Expand 10 before | Expand all | Expand 10 after
6120 return NameDictionary::cast(properties()); 6120 return NameDictionary::cast(properties());
6121 } 6121 }
6122 6122
6123 6123
6124 SeededNumberDictionary* JSObject::element_dictionary() { 6124 SeededNumberDictionary* JSObject::element_dictionary() {
6125 ASSERT(HasDictionaryElements()); 6125 ASSERT(HasDictionaryElements());
6126 return SeededNumberDictionary::cast(elements()); 6126 return SeededNumberDictionary::cast(elements());
6127 } 6127 }
6128 6128
6129 6129
6130 Handle<JSSetIterator> JSSetIterator::Create(
6131 Handle<OrderedHashSet> table,
6132 int kind) {
6133 return CreateInternal(table->GetIsolate()->set_iterator_map(), table, kind);
6134 }
6135
6136
6137 Handle<JSMapIterator> JSMapIterator::Create(
6138 Handle<OrderedHashMap> table,
6139 int kind) {
6140 return CreateInternal(table->GetIsolate()->map_iterator_map(), table, kind);
6141 }
6142
6143
6144 bool Name::IsHashFieldComputed(uint32_t field) { 6130 bool Name::IsHashFieldComputed(uint32_t field) {
6145 return (field & kHashNotComputedMask) == 0; 6131 return (field & kHashNotComputedMask) == 0;
6146 } 6132 }
6147 6133
6148 6134
6149 bool Name::HasHashCode() { 6135 bool Name::HasHashCode() {
6150 return IsHashFieldComputed(hash_field()); 6136 return IsHashFieldComputed(hash_field());
6151 } 6137 }
6152 6138
6153 6139
(...skipping 715 matching lines...) Expand 10 before | Expand all | Expand 10 after
6869 #undef READ_SHORT_FIELD 6855 #undef READ_SHORT_FIELD
6870 #undef WRITE_SHORT_FIELD 6856 #undef WRITE_SHORT_FIELD
6871 #undef READ_BYTE_FIELD 6857 #undef READ_BYTE_FIELD
6872 #undef WRITE_BYTE_FIELD 6858 #undef WRITE_BYTE_FIELD
6873 #undef NOBARRIER_READ_BYTE_FIELD 6859 #undef NOBARRIER_READ_BYTE_FIELD
6874 #undef NOBARRIER_WRITE_BYTE_FIELD 6860 #undef NOBARRIER_WRITE_BYTE_FIELD
6875 6861
6876 } } // namespace v8::internal 6862 } } // namespace v8::internal
6877 6863
6878 #endif // V8_OBJECTS_INL_H_ 6864 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects-debug.cc ('k') | src/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698