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

Side by Side Diff: src/mips/lithium-codegen-mips.cc

Issue 238943002: MIPS: Reland "Track field types.". (Closed) Base URL: https://github.com/v8/v8.git@gbl
Patch Set: Created 6 years, 8 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 | « no previous file | src/mips/stub-cache-mips.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.7 1 // Copyright 2012 the V8 project authors. All rights reserved.7
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 4067 matching lines...) Expand 10 before | Expand all | Expand 10 after
4078 4078
4079 ASSERT(!(representation.IsSmi() && 4079 ASSERT(!(representation.IsSmi() &&
4080 instr->value()->IsConstantOperand() && 4080 instr->value()->IsConstantOperand() &&
4081 !IsSmi(LConstantOperand::cast(instr->value())))); 4081 !IsSmi(LConstantOperand::cast(instr->value()))));
4082 if (representation.IsHeapObject()) { 4082 if (representation.IsHeapObject()) {
4083 Register value = ToRegister(instr->value()); 4083 Register value = ToRegister(instr->value());
4084 if (!instr->hydrogen()->value()->type().IsHeapObject()) { 4084 if (!instr->hydrogen()->value()->type().IsHeapObject()) {
4085 __ SmiTst(value, scratch); 4085 __ SmiTst(value, scratch);
4086 DeoptimizeIf(eq, instr->environment(), scratch, Operand(zero_reg)); 4086 DeoptimizeIf(eq, instr->environment(), scratch, Operand(zero_reg));
4087 4087
4088 // We know that value is a smi now, so we can omit the check below. 4088 // We know now that value is not a smi, so we can omit the check below.
4089 check_needed = OMIT_SMI_CHECK; 4089 check_needed = OMIT_SMI_CHECK;
4090 } 4090 }
4091 } else if (representation.IsDouble()) { 4091 } else if (representation.IsDouble()) {
4092 ASSERT(transition.is_null()); 4092 ASSERT(transition.is_null());
4093 ASSERT(access.IsInobject()); 4093 ASSERT(access.IsInobject());
4094 ASSERT(!instr->hydrogen()->NeedsWriteBarrier()); 4094 ASSERT(!instr->hydrogen()->NeedsWriteBarrier());
4095 DoubleRegister value = ToDoubleRegister(instr->value()); 4095 DoubleRegister value = ToDoubleRegister(instr->value());
4096 __ sdc1(value, FieldMemOperand(object, offset)); 4096 __ sdc1(value, FieldMemOperand(object, offset));
4097 return; 4097 return;
4098 } 4098 }
(...skipping 1811 matching lines...) Expand 10 before | Expand all | Expand 10 after
5910 __ lw(result, FieldMemOperand(scratch, 5910 __ lw(result, FieldMemOperand(scratch,
5911 FixedArray::kHeaderSize - kPointerSize)); 5911 FixedArray::kHeaderSize - kPointerSize));
5912 __ bind(deferred->exit()); 5912 __ bind(deferred->exit());
5913 __ bind(&done); 5913 __ bind(&done);
5914 } 5914 }
5915 5915
5916 5916
5917 #undef __ 5917 #undef __
5918 5918
5919 } } // namespace v8::internal 5919 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/mips/stub-cache-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698