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

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

Issue 7019008: Remaining (forgotten) feedback for pixel array deopt fix (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/x64/lithium-x64.h » ('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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
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 3757 matching lines...) Expand 10 before | Expand all | Expand 10 after
3768 void LCodeGen::DoCheckMap(LCheckMap* instr) { 3768 void LCodeGen::DoCheckMap(LCheckMap* instr) {
3769 LOperand* input = instr->InputAt(0); 3769 LOperand* input = instr->InputAt(0);
3770 ASSERT(input->IsRegister()); 3770 ASSERT(input->IsRegister());
3771 Register reg = ToRegister(input); 3771 Register reg = ToRegister(input);
3772 __ Cmp(FieldOperand(reg, HeapObject::kMapOffset), 3772 __ Cmp(FieldOperand(reg, HeapObject::kMapOffset),
3773 instr->hydrogen()->map()); 3773 instr->hydrogen()->map());
3774 DeoptimizeIf(not_equal, instr->environment()); 3774 DeoptimizeIf(not_equal, instr->environment());
3775 } 3775 }
3776 3776
3777 3777
3778 void LCodeGen::DoClampDoubleToUint8(LClampDoubleToUint8* instr) { 3778 void LCodeGen::DoClampDToUint8(LClampDToUint8* instr) {
3779 XMMRegister value_reg = ToDoubleRegister(instr->unclamped()); 3779 XMMRegister value_reg = ToDoubleRegister(instr->unclamped());
3780 Register result_reg = ToRegister(instr->result()); 3780 Register result_reg = ToRegister(instr->result());
3781 Register temp_reg = ToRegister(instr->TempAt(0)); 3781 Register temp_reg = ToRegister(instr->TempAt(0));
3782 __ ClampDoubleToUint8(value_reg, xmm0, result_reg, temp_reg); 3782 __ ClampDoubleToUint8(value_reg, xmm0, result_reg, temp_reg);
3783 } 3783 }
3784 3784
3785 3785
3786 void LCodeGen::DoClampIToUint8(LClampIToUint8* instr) { 3786 void LCodeGen::DoClampIToUint8(LClampIToUint8* instr) {
3787 ASSERT(instr->unclamped()->Equals(instr->result())); 3787 ASSERT(instr->unclamped()->Equals(instr->result()));
3788 Register value_reg = ToRegister(instr->result()); 3788 Register value_reg = ToRegister(instr->result());
3789 __ ClampUint8(value_reg); 3789 __ ClampUint8(value_reg);
3790 } 3790 }
3791 3791
3792 3792
3793 void LCodeGen::DoClampTaggedToUint8(LClampTaggedToUint8* instr) { 3793 void LCodeGen::DoClampTToUint8(LClampTToUint8* instr) {
3794 ASSERT(instr->unclamped()->Equals(instr->result())); 3794 ASSERT(instr->unclamped()->Equals(instr->result()));
3795 Register input_reg = ToRegister(instr->unclamped()); 3795 Register input_reg = ToRegister(instr->unclamped());
3796 Register temp_reg = ToRegister(instr->TempAt(0)); 3796 Register temp_reg = ToRegister(instr->TempAt(0));
3797 XMMRegister temp_xmm_reg = ToDoubleRegister(instr->TempAt(1)); 3797 XMMRegister temp_xmm_reg = ToDoubleRegister(instr->TempAt(1));
3798 Label is_smi, done, heap_number; 3798 Label is_smi, done, heap_number;
3799 3799
3800 __ JumpIfSmi(input_reg, &is_smi); 3800 __ JumpIfSmi(input_reg, &is_smi);
3801 3801
3802 // Check for heap number 3802 // Check for heap number
3803 __ Cmp(FieldOperand(input_reg, HeapObject::kMapOffset), 3803 __ Cmp(FieldOperand(input_reg, HeapObject::kMapOffset),
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
4236 RegisterEnvironmentForDeoptimization(environment); 4236 RegisterEnvironmentForDeoptimization(environment);
4237 ASSERT(osr_pc_offset_ == -1); 4237 ASSERT(osr_pc_offset_ == -1);
4238 osr_pc_offset_ = masm()->pc_offset(); 4238 osr_pc_offset_ = masm()->pc_offset();
4239 } 4239 }
4240 4240
4241 #undef __ 4241 #undef __
4242 4242
4243 } } // namespace v8::internal 4243 } } // namespace v8::internal
4244 4244
4245 #endif // V8_TARGET_ARCH_X64 4245 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/x64/lithium-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698