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

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

Issue 2396353002: Revert "Add Smi::Zero and replace all Smi::FromInt(0) calls" (Closed)
Patch Set: Created 4 years, 2 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/crankshaft/mips/lithium-codegen-mips.cc ('k') | src/crankshaft/ppc/lithium-codegen-ppc.cc » ('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 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/mips64/lithium-codegen-mips64.h" 5 #include "src/crankshaft/mips64/lithium-codegen-mips64.h"
6 6
7 #include "src/code-factory.h" 7 #include "src/code-factory.h"
8 #include "src/code-stubs.h" 8 #include "src/code-stubs.h"
9 #include "src/crankshaft/hydrogen-osr.h" 9 #include "src/crankshaft/hydrogen-osr.h"
10 #include "src/crankshaft/mips64/lithium-gap-resolver-mips64.h" 10 #include "src/crankshaft/mips64/lithium-gap-resolver-mips64.h"
(...skipping 5561 matching lines...) Expand 10 before | Expand all | Expand 10 after
5572 CallRuntime(Runtime::kForInEnumerate, instr); 5572 CallRuntime(Runtime::kForInEnumerate, instr);
5573 __ bind(&use_cache); 5573 __ bind(&use_cache);
5574 } 5574 }
5575 5575
5576 5576
5577 void LCodeGen::DoForInCacheArray(LForInCacheArray* instr) { 5577 void LCodeGen::DoForInCacheArray(LForInCacheArray* instr) {
5578 Register map = ToRegister(instr->map()); 5578 Register map = ToRegister(instr->map());
5579 Register result = ToRegister(instr->result()); 5579 Register result = ToRegister(instr->result());
5580 Label load_cache, done; 5580 Label load_cache, done;
5581 __ EnumLength(result, map); 5581 __ EnumLength(result, map);
5582 __ Branch(&load_cache, ne, result, Operand(Smi::kZero)); 5582 __ Branch(&load_cache, ne, result, Operand(Smi::FromInt(0)));
5583 __ li(result, Operand(isolate()->factory()->empty_fixed_array())); 5583 __ li(result, Operand(isolate()->factory()->empty_fixed_array()));
5584 __ jmp(&done); 5584 __ jmp(&done);
5585 5585
5586 __ bind(&load_cache); 5586 __ bind(&load_cache);
5587 __ LoadInstanceDescriptors(map, result); 5587 __ LoadInstanceDescriptors(map, result);
5588 __ ld(result, 5588 __ ld(result,
5589 FieldMemOperand(result, DescriptorArray::kEnumCacheOffset)); 5589 FieldMemOperand(result, DescriptorArray::kEnumCacheOffset));
5590 __ ld(result, 5590 __ ld(result,
5591 FieldMemOperand(result, FixedArray::SizeFor(instr->idx()))); 5591 FieldMemOperand(result, FixedArray::SizeFor(instr->idx())));
5592 DeoptimizeIf(eq, instr, DeoptimizeReason::kNoCache, result, 5592 DeoptimizeIf(eq, instr, DeoptimizeReason::kNoCache, result,
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
5674 __ ld(result, FieldMemOperand(scratch, 5674 __ ld(result, FieldMemOperand(scratch,
5675 FixedArray::kHeaderSize - kPointerSize)); 5675 FixedArray::kHeaderSize - kPointerSize));
5676 __ bind(deferred->exit()); 5676 __ bind(deferred->exit());
5677 __ bind(&done); 5677 __ bind(&done);
5678 } 5678 }
5679 5679
5680 #undef __ 5680 #undef __
5681 5681
5682 } // namespace internal 5682 } // namespace internal
5683 } // namespace v8 5683 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/mips/lithium-codegen-mips.cc ('k') | src/crankshaft/ppc/lithium-codegen-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698