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

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

Issue 264973013: Don't add code dependencies eagerly for HCheckMaps. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE Created 6 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.h ('k') | src/lithium.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "v8.h" 5 #include "v8.h"
6 6
7 #if V8_TARGET_ARCH_IA32 7 #if V8_TARGET_ARCH_IA32
8 8
9 #include "lithium-allocator-inl.h" 9 #include "lithium-allocator-inl.h"
10 #include "ia32/lithium-ia32.h" 10 #include "ia32/lithium-ia32.h"
(...skipping 2009 matching lines...) Expand 10 before | Expand all | Expand 10 after
2020 // want the value in a register. If the object gets promoted before we 2020 // want the value in a register. If the object gets promoted before we
2021 // emit code, we will still get the register but will do an immediate 2021 // emit code, we will still get the register but will do an immediate
2022 // compare instead of the cell compare. This is safe. 2022 // compare instead of the cell compare. This is safe.
2023 LOperand* value = instr->object_in_new_space() 2023 LOperand* value = instr->object_in_new_space()
2024 ? UseRegisterAtStart(instr->value()) : UseAtStart(instr->value()); 2024 ? UseRegisterAtStart(instr->value()) : UseAtStart(instr->value());
2025 return AssignEnvironment(new(zone()) LCheckValue(value)); 2025 return AssignEnvironment(new(zone()) LCheckValue(value));
2026 } 2026 }
2027 2027
2028 2028
2029 LInstruction* LChunkBuilder::DoCheckMaps(HCheckMaps* instr) { 2029 LInstruction* LChunkBuilder::DoCheckMaps(HCheckMaps* instr) {
2030 LOperand* value = NULL; 2030 if (instr->IsStabilityCheck()) return new(zone()) LCheckMaps;
2031 if (!instr->CanOmitMapChecks()) { 2031 LOperand* value = UseRegisterAtStart(instr->value());
2032 value = UseRegisterAtStart(instr->value()); 2032 LInstruction* result = AssignEnvironment(new(zone()) LCheckMaps(value));
2033 if (instr->has_migration_target()) info()->MarkAsDeferredCalling(); 2033 if (instr->HasMigrationTarget()) {
2034 } 2034 info()->MarkAsDeferredCalling();
2035 LInstruction* result = new(zone()) LCheckMaps(value); 2035 result = AssignPointerMap(result);
2036 if (!instr->CanOmitMapChecks()) {
2037 result = AssignEnvironment(result);
2038 if (instr->has_migration_target()) result = AssignPointerMap(result);
2039 } 2036 }
2040 return result; 2037 return result;
2041 } 2038 }
2042 2039
2043 2040
2044 LInstruction* LChunkBuilder::DoClampToUint8(HClampToUint8* instr) { 2041 LInstruction* LChunkBuilder::DoClampToUint8(HClampToUint8* instr) {
2045 HValue* value = instr->value(); 2042 HValue* value = instr->value();
2046 Representation input_rep = value->representation(); 2043 Representation input_rep = value->representation();
2047 if (input_rep.IsDouble()) { 2044 if (input_rep.IsDouble()) {
2048 LOperand* reg = UseRegister(value); 2045 LOperand* reg = UseRegister(value);
(...skipping 651 matching lines...) Expand 10 before | Expand all | Expand 10 after
2700 LOperand* index = UseTempRegister(instr->index()); 2697 LOperand* index = UseTempRegister(instr->index());
2701 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); 2698 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index);
2702 LInstruction* result = DefineSameAsFirst(load); 2699 LInstruction* result = DefineSameAsFirst(load);
2703 return AssignPointerMap(result); 2700 return AssignPointerMap(result);
2704 } 2701 }
2705 2702
2706 2703
2707 } } // namespace v8::internal 2704 } } // namespace v8::internal
2708 2705
2709 #endif // V8_TARGET_ARCH_IA32 2706 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.h ('k') | src/lithium.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698