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

Side by Side Diff: src/objects.cc

Issue 468813003: Fix OrderedHashTabelIterator accessors. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fixed flags in regression test Created 6 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 | « src/objects.h ('k') | src/objects-inl.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/allocation-site-scopes.h" 8 #include "src/allocation-site-scopes.h"
9 #include "src/api.h" 9 #include "src/api.h"
10 #include "src/arguments.h" 10 #include "src/arguments.h"
(...skipping 16291 matching lines...) Expand 10 before | Expand all | Expand 10 after
16302 } 16302 }
16303 16303
16304 16304
16305 template<class Derived, class TableType> 16305 template<class Derived, class TableType>
16306 Smi* OrderedHashTableIterator<Derived, TableType>::Next(JSArray* value_array) { 16306 Smi* OrderedHashTableIterator<Derived, TableType>::Next(JSArray* value_array) {
16307 DisallowHeapAllocation no_allocation; 16307 DisallowHeapAllocation no_allocation;
16308 if (HasMore()) { 16308 if (HasMore()) {
16309 FixedArray* array = FixedArray::cast(value_array->elements()); 16309 FixedArray* array = FixedArray::cast(value_array->elements());
16310 static_cast<Derived*>(this)->PopulateValueArray(array); 16310 static_cast<Derived*>(this)->PopulateValueArray(array);
16311 MoveNext(); 16311 MoveNext();
16312 return kind(); 16312 return Smi::cast(kind());
16313 } 16313 }
16314 return Smi::FromInt(0); 16314 return Smi::FromInt(0);
16315 } 16315 }
16316 16316
16317 16317
16318 template Smi* 16318 template Smi*
16319 OrderedHashTableIterator<JSSetIterator, OrderedHashSet>::Next( 16319 OrderedHashTableIterator<JSSetIterator, OrderedHashSet>::Next(
16320 JSArray* value_array); 16320 JSArray* value_array);
16321 16321
16322 template bool 16322 template bool
(...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after
16929 #define ERROR_MESSAGES_TEXTS(C, T) T, 16929 #define ERROR_MESSAGES_TEXTS(C, T) T,
16930 static const char* error_messages_[] = { 16930 static const char* error_messages_[] = {
16931 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) 16931 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS)
16932 }; 16932 };
16933 #undef ERROR_MESSAGES_TEXTS 16933 #undef ERROR_MESSAGES_TEXTS
16934 return error_messages_[reason]; 16934 return error_messages_[reason];
16935 } 16935 }
16936 16936
16937 16937
16938 } } // namespace v8::internal 16938 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698