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

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

Issue 21536003: Migrate instance of deprecated maps in HCheckMaps. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 4 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 2043 matching lines...) Expand 10 before | Expand all | Expand 10 after
2054 // want the value in a register. If the target gets promoted before we 2054 // want the value in a register. If the target gets promoted before we
2055 // emit code, we will still get the register but will do an immediate 2055 // emit code, we will still get the register but will do an immediate
2056 // compare instead of the cell compare. This is safe. 2056 // compare instead of the cell compare. This is safe.
2057 LOperand* value = instr->target_in_new_space() 2057 LOperand* value = instr->target_in_new_space()
2058 ? UseRegisterAtStart(instr->value()) : UseAtStart(instr->value()); 2058 ? UseRegisterAtStart(instr->value()) : UseAtStart(instr->value());
2059 return AssignEnvironment(new(zone()) LCheckFunction(value)); 2059 return AssignEnvironment(new(zone()) LCheckFunction(value));
2060 } 2060 }
2061 2061
2062 2062
2063 LInstruction* LChunkBuilder::DoCheckMaps(HCheckMaps* instr) { 2063 LInstruction* LChunkBuilder::DoCheckMaps(HCheckMaps* instr) {
2064 LOperand* context = NULL;
2064 LOperand* value = NULL; 2065 LOperand* value = NULL;
2065 if (!instr->CanOmitMapChecks()) value = UseRegisterAtStart(instr->value()); 2066 if (!instr->CanOmitMapChecks()) {
2066 LCheckMaps* result = new(zone()) LCheckMaps(value); 2067 value = UseRegisterAtStart(instr->value());
2067 if (instr->CanOmitMapChecks()) return result; 2068 if (instr->has_migration_target()) {
2068 return AssignEnvironment(result); 2069 context = UseAny(instr->context());
2070 info()->MarkAsDeferredCalling();
2071 }
2072 }
2073 LCheckMaps* result = new(zone()) LCheckMaps(context, value);
2074 if (!instr->CanOmitMapChecks()) {
2075 AssignEnvironment(result);
2076 if (instr->has_migration_target()) return AssignPointerMap(result);
2077 }
2078 return result;
2069 } 2079 }
2070 2080
2071 2081
2072 LInstruction* LChunkBuilder::DoClampToUint8(HClampToUint8* instr) { 2082 LInstruction* LChunkBuilder::DoClampToUint8(HClampToUint8* instr) {
2073 HValue* value = instr->value(); 2083 HValue* value = instr->value();
2074 Representation input_rep = value->representation(); 2084 Representation input_rep = value->representation();
2075 if (input_rep.IsDouble()) { 2085 if (input_rep.IsDouble()) {
2076 LOperand* reg = UseRegister(value); 2086 LOperand* reg = UseRegister(value);
2077 return DefineFixed(new(zone()) LClampDToUint8(reg), eax); 2087 return DefineFixed(new(zone()) LClampDToUint8(reg), eax);
2078 } else if (input_rep.IsInteger32()) { 2088 } else if (input_rep.IsInteger32()) {
(...skipping 657 matching lines...) Expand 10 before | Expand all | Expand 10 after
2736 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2746 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2737 LOperand* object = UseRegister(instr->object()); 2747 LOperand* object = UseRegister(instr->object());
2738 LOperand* index = UseTempRegister(instr->index()); 2748 LOperand* index = UseTempRegister(instr->index());
2739 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2749 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2740 } 2750 }
2741 2751
2742 2752
2743 } } // namespace v8::internal 2753 } } // namespace v8::internal
2744 2754
2745 #endif // V8_TARGET_ARCH_IA32 2755 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« src/ia32/lithium-ia32.h ('K') | « src/ia32/lithium-ia32.h ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698