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

Side by Side Diff: src/ia32/lithium-codegen-ia32.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/arm/lithium-codegen-arm.cc ('k') | src/ia32/lithium-ia32.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 3933 matching lines...) Expand 10 before | Expand all | Expand 10 after
3944 void LCodeGen::DoCheckMap(LCheckMap* instr) { 3944 void LCodeGen::DoCheckMap(LCheckMap* instr) {
3945 LOperand* input = instr->InputAt(0); 3945 LOperand* input = instr->InputAt(0);
3946 ASSERT(input->IsRegister()); 3946 ASSERT(input->IsRegister());
3947 Register reg = ToRegister(input); 3947 Register reg = ToRegister(input);
3948 __ cmp(FieldOperand(reg, HeapObject::kMapOffset), 3948 __ cmp(FieldOperand(reg, HeapObject::kMapOffset),
3949 instr->hydrogen()->map()); 3949 instr->hydrogen()->map());
3950 DeoptimizeIf(not_equal, instr->environment()); 3950 DeoptimizeIf(not_equal, instr->environment());
3951 } 3951 }
3952 3952
3953 3953
3954 void LCodeGen::DoClampDoubleToUint8(LClampDoubleToUint8* instr) { 3954 void LCodeGen::DoClampDToUint8(LClampDToUint8* instr) {
3955 XMMRegister value_reg = ToDoubleRegister(instr->unclamped()); 3955 XMMRegister value_reg = ToDoubleRegister(instr->unclamped());
3956 Register result_reg = ToRegister(instr->result()); 3956 Register result_reg = ToRegister(instr->result());
3957 __ ClampDoubleToUint8(value_reg, xmm0, result_reg); 3957 __ ClampDoubleToUint8(value_reg, xmm0, result_reg);
3958 } 3958 }
3959 3959
3960 3960
3961 void LCodeGen::DoClampIToUint8(LClampIToUint8* instr) { 3961 void LCodeGen::DoClampIToUint8(LClampIToUint8* instr) {
3962 ASSERT(instr->unclamped()->Equals(instr->result())); 3962 ASSERT(instr->unclamped()->Equals(instr->result()));
3963 Register value_reg = ToRegister(instr->result()); 3963 Register value_reg = ToRegister(instr->result());
3964 __ ClampUint8(value_reg); 3964 __ ClampUint8(value_reg);
3965 } 3965 }
3966 3966
3967 3967
3968 void LCodeGen::DoClampTaggedToUint8(LClampTaggedToUint8* instr) { 3968 void LCodeGen::DoClampTToUint8(LClampTToUint8* instr) {
3969 ASSERT(instr->unclamped()->Equals(instr->result())); 3969 ASSERT(instr->unclamped()->Equals(instr->result()));
3970 Register input_reg = ToRegister(instr->unclamped()); 3970 Register input_reg = ToRegister(instr->unclamped());
3971 Label is_smi, done, heap_number; 3971 Label is_smi, done, heap_number;
3972 3972
3973 __ JumpIfSmi(input_reg, &is_smi); 3973 __ JumpIfSmi(input_reg, &is_smi);
3974 3974
3975 // Check for heap number 3975 // Check for heap number
3976 __ cmp(FieldOperand(input_reg, HeapObject::kMapOffset), 3976 __ cmp(FieldOperand(input_reg, HeapObject::kMapOffset),
3977 factory()->heap_number_map()); 3977 factory()->heap_number_map());
3978 __ j(equal, &heap_number, Label::kNear); 3978 __ j(equal, &heap_number, Label::kNear);
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
4430 __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset)); 4430 __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset));
4431 __ InvokeBuiltin(Builtins::IN, CALL_FUNCTION, safepoint_generator); 4431 __ InvokeBuiltin(Builtins::IN, CALL_FUNCTION, safepoint_generator);
4432 } 4432 }
4433 4433
4434 4434
4435 #undef __ 4435 #undef __
4436 4436
4437 } } // namespace v8::internal 4437 } } // namespace v8::internal
4438 4438
4439 #endif // V8_TARGET_ARCH_IA32 4439 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/ia32/lithium-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698