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

Side by Side Diff: src/crankshaft/arm/lithium-codegen-arm.cc

Issue 1631583002: [for-in] Further refactorings and unification around for-in. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 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
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 #include "src/crankshaft/arm/lithium-codegen-arm.h" 5 #include "src/crankshaft/arm/lithium-codegen-arm.h"
6 6
7 #include "src/base/bits.h" 7 #include "src/base/bits.h"
8 #include "src/code-factory.h" 8 #include "src/code-factory.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/crankshaft/arm/lithium-gap-resolver-arm.h" 10 #include "src/crankshaft/arm/lithium-gap-resolver-arm.h"
(...skipping 5435 matching lines...) Expand 10 before | Expand all | Expand 10 after
5446 void LCodeGen::DoForInPrepareMap(LForInPrepareMap* instr) { 5446 void LCodeGen::DoForInPrepareMap(LForInPrepareMap* instr) {
5447 Label use_cache, call_runtime; 5447 Label use_cache, call_runtime;
5448 __ CheckEnumCache(&call_runtime); 5448 __ CheckEnumCache(&call_runtime);
5449 5449
5450 __ ldr(r0, FieldMemOperand(r0, HeapObject::kMapOffset)); 5450 __ ldr(r0, FieldMemOperand(r0, HeapObject::kMapOffset));
5451 __ b(&use_cache); 5451 __ b(&use_cache);
5452 5452
5453 // Get the set of properties to enumerate. 5453 // Get the set of properties to enumerate.
5454 __ bind(&call_runtime); 5454 __ bind(&call_runtime);
5455 __ push(r0); 5455 __ push(r0);
5456 CallRuntime(Runtime::kGetPropertyNamesFast, instr); 5456 CallRuntime(Runtime::kForInEnumerate, instr);
5457 __ bind(&use_cache); 5457 __ bind(&use_cache);
5458 } 5458 }
5459 5459
5460 5460
5461 void LCodeGen::DoForInCacheArray(LForInCacheArray* instr) { 5461 void LCodeGen::DoForInCacheArray(LForInCacheArray* instr) {
5462 Register map = ToRegister(instr->map()); 5462 Register map = ToRegister(instr->map());
5463 Register result = ToRegister(instr->result()); 5463 Register result = ToRegister(instr->result());
5464 Label load_cache, done; 5464 Label load_cache, done;
5465 __ EnumLength(result, map); 5465 __ EnumLength(result, map);
5466 __ cmp(result, Operand(Smi::FromInt(0))); 5466 __ cmp(result, Operand(Smi::FromInt(0)));
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
5578 __ push(ToRegister(instr->function())); 5578 __ push(ToRegister(instr->function()));
5579 CallRuntime(Runtime::kPushBlockContext, instr); 5579 CallRuntime(Runtime::kPushBlockContext, instr);
5580 RecordSafepoint(Safepoint::kNoLazyDeopt); 5580 RecordSafepoint(Safepoint::kNoLazyDeopt);
5581 } 5581 }
5582 5582
5583 5583
5584 #undef __ 5584 #undef __
5585 5585
5586 } // namespace internal 5586 } // namespace internal
5587 } // namespace v8 5587 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698