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

Side by Side Diff: src/ia32/lithium-ia32.cc

Issue 16026023: Avoid Unnecessary Smi Checks (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 6 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 2038 matching lines...) Expand 10 before | Expand all | Expand 10 after
2049 return DefineAsRegister( 2049 return DefineAsRegister(
2050 new(zone()) LInteger32ToDouble(Use(instr->value()))); 2050 new(zone()) LInteger32ToDouble(Use(instr->value())));
2051 } 2051 }
2052 } 2052 }
2053 } 2053 }
2054 UNREACHABLE(); 2054 UNREACHABLE();
2055 return NULL; 2055 return NULL;
2056 } 2056 }
2057 2057
2058 2058
2059 LInstruction* LChunkBuilder::DoCheckNonSmi(HCheckNonSmi* instr) { 2059 LInstruction* LChunkBuilder::DoCheckHeapObject(HCheckHeapObject* instr) {
2060 LOperand* value = UseAtStart(instr->value()); 2060 LOperand* value = UseAtStart(instr->value());
2061 return AssignEnvironment(new(zone()) LCheckNonSmi(value)); 2061 return AssignEnvironment(new(zone()) LCheckNonSmi(value));
2062 } 2062 }
2063 2063
2064 2064
2065 LInstruction* LChunkBuilder::DoCheckInstanceType(HCheckInstanceType* instr) { 2065 LInstruction* LChunkBuilder::DoCheckInstanceType(HCheckInstanceType* instr) {
2066 LOperand* value = UseRegisterAtStart(instr->value()); 2066 LOperand* value = UseRegisterAtStart(instr->value());
2067 LOperand* temp = TempRegister(); 2067 LOperand* temp = TempRegister();
2068 LCheckInstanceType* result = new(zone()) LCheckInstanceType(value, temp); 2068 LCheckInstanceType* result = new(zone()) LCheckInstanceType(value, temp);
2069 return AssignEnvironment(result); 2069 return AssignEnvironment(result);
(...skipping 727 matching lines...) Expand 10 before | Expand all | Expand 10 after
2797 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2797 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2798 LOperand* object = UseRegister(instr->object()); 2798 LOperand* object = UseRegister(instr->object());
2799 LOperand* index = UseTempRegister(instr->index()); 2799 LOperand* index = UseTempRegister(instr->index());
2800 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2800 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2801 } 2801 }
2802 2802
2803 2803
2804 } } // namespace v8::internal 2804 } } // namespace v8::internal
2805 2805
2806 #endif // V8_TARGET_ARCH_IA32 2806 #endif // V8_TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698