| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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/objects.h" | 5 #include "src/objects.h" |
| 6 | 6 |
| 7 #include <cmath> | 7 #include <cmath> |
| 8 #include <iomanip> | 8 #include <iomanip> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <sstream> | 10 #include <sstream> |
| (...skipping 10169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10180 } | 10180 } |
| 10181 } | 10181 } |
| 10182 if (child_hash <= parent_hash) break; | 10182 if (child_hash <= parent_hash) break; |
| 10183 SwapSortedKeys(parent_index, child_index); | 10183 SwapSortedKeys(parent_index, child_index); |
| 10184 parent_index = child_index; | 10184 parent_index = child_index; |
| 10185 } | 10185 } |
| 10186 } | 10186 } |
| 10187 DCHECK(IsSortedNoDuplicates()); | 10187 DCHECK(IsSortedNoDuplicates()); |
| 10188 } | 10188 } |
| 10189 | 10189 |
| 10190 // static |
| 10191 Handle<DictionarySchema> DictionarySchema::New(Isolate* isolate, int size) { |
| 10192 return Handle<DictionarySchema>::cast( |
| 10193 isolate->factory()->NewFixedArray(size, TENURED)); |
| 10194 } |
| 10190 | 10195 |
| 10191 Handle<AccessorPair> AccessorPair::Copy(Handle<AccessorPair> pair) { | 10196 Handle<AccessorPair> AccessorPair::Copy(Handle<AccessorPair> pair) { |
| 10192 Handle<AccessorPair> copy = pair->GetIsolate()->factory()->NewAccessorPair(); | 10197 Handle<AccessorPair> copy = pair->GetIsolate()->factory()->NewAccessorPair(); |
| 10193 copy->set_getter(pair->getter()); | 10198 copy->set_getter(pair->getter()); |
| 10194 copy->set_setter(pair->setter()); | 10199 copy->set_setter(pair->setter()); |
| 10195 return copy; | 10200 return copy; |
| 10196 } | 10201 } |
| 10197 | 10202 |
| 10198 Handle<Object> AccessorPair::GetComponent(Handle<AccessorPair> accessor_pair, | 10203 Handle<Object> AccessorPair::GetComponent(Handle<AccessorPair> accessor_pair, |
| 10199 AccessorComponent component) { | 10204 AccessorComponent component) { |
| (...skipping 10034 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20234 // depend on this. | 20239 // depend on this. |
| 20235 return DICTIONARY_ELEMENTS; | 20240 return DICTIONARY_ELEMENTS; |
| 20236 } | 20241 } |
| 20237 DCHECK_LE(kind, LAST_ELEMENTS_KIND); | 20242 DCHECK_LE(kind, LAST_ELEMENTS_KIND); |
| 20238 return kind; | 20243 return kind; |
| 20239 } | 20244 } |
| 20240 } | 20245 } |
| 20241 | 20246 |
| 20242 } // namespace internal | 20247 } // namespace internal |
| 20243 } // namespace v8 | 20248 } // namespace v8 |
| OLD | NEW |