OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |