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

Side by Side Diff: src/runtime/runtime-array.cc

Issue 1160813009: Enum DictionaryEntryType removed. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebasing Created 5 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
« no previous file with comments | « src/objects-inl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/arguments.h" 7 #include "src/arguments.h"
8 #include "src/messages.h" 8 #include "src/messages.h"
9 #include "src/runtime/runtime-utils.h" 9 #include "src/runtime/runtime-utils.h"
10 10
(...skipping 1275 matching lines...) Expand 10 before | Expand all | Expand 10 after
1286 !iter.IsAtEnd(); iter.Advance()) { 1286 !iter.IsAtEnd(); iter.Advance()) {
1287 if (PrototypeIterator::GetCurrent(iter)->IsJSProxy()) { 1287 if (PrototypeIterator::GetCurrent(iter)->IsJSProxy()) {
1288 return isolate->heap()->true_value(); 1288 return isolate->heap()->true_value();
1289 } 1289 }
1290 Handle<JSObject> current = 1290 Handle<JSObject> current =
1291 Handle<JSObject>::cast(PrototypeIterator::GetCurrent(iter)); 1291 Handle<JSObject>::cast(PrototypeIterator::GetCurrent(iter));
1292 if (current->HasIndexedInterceptor()) { 1292 if (current->HasIndexedInterceptor()) {
1293 return isolate->heap()->true_value(); 1293 return isolate->heap()->true_value();
1294 } 1294 }
1295 if (!current->HasDictionaryElements()) continue; 1295 if (!current->HasDictionaryElements()) continue;
1296 if (current->element_dictionary() 1296 if (current->element_dictionary()->HasComplexElements()) {
1297 ->HasComplexElements<DictionaryEntryType::kObjects>()) {
1298 return isolate->heap()->true_value(); 1297 return isolate->heap()->true_value();
1299 } 1298 }
1300 } 1299 }
1301 return isolate->heap()->false_value(); 1300 return isolate->heap()->false_value();
1302 } 1301 }
1303 1302
1304 1303
1305 RUNTIME_FUNCTION(Runtime_IsArray) { 1304 RUNTIME_FUNCTION(Runtime_IsArray) {
1306 SealHandleScope shs(isolate); 1305 SealHandleScope shs(isolate);
1307 DCHECK(args.length() == 1); 1306 DCHECK(args.length() == 1);
(...skipping 19 matching lines...) Expand all
1327 1326
1328 RUNTIME_FUNCTION(Runtime_FastOneByteArrayJoin) { 1327 RUNTIME_FUNCTION(Runtime_FastOneByteArrayJoin) {
1329 SealHandleScope shs(isolate); 1328 SealHandleScope shs(isolate);
1330 DCHECK(args.length() == 2); 1329 DCHECK(args.length() == 2);
1331 // Returning undefined means that this fast path fails and one has to resort 1330 // Returning undefined means that this fast path fails and one has to resort
1332 // to a slow path. 1331 // to a slow path.
1333 return isolate->heap()->undefined_value(); 1332 return isolate->heap()->undefined_value();
1334 } 1333 }
1335 } // namespace internal 1334 } // namespace internal
1336 } // namespace v8 1335 } // namespace v8
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698