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

Side by Side Diff: src/arm/lithium-arm.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/arm/lithium-arm.h ('k') | src/arm/lithium-codegen-arm.cc » ('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 #include "lithium-allocator-inl.h" 7 #include "lithium-allocator-inl.h"
8 #include "arm/lithium-arm.h" 8 #include "arm/lithium-arm.h"
9 #include "arm/lithium-codegen-arm.h" 9 #include "arm/lithium-codegen-arm.h"
10 #include "hydrogen-osr.h" 10 #include "hydrogen-osr.h"
(...skipping 1958 matching lines...) Expand 10 before | Expand all | Expand 10 after
1969 } 1969 }
1970 1970
1971 1971
1972 LInstruction* LChunkBuilder::DoCheckValue(HCheckValue* instr) { 1972 LInstruction* LChunkBuilder::DoCheckValue(HCheckValue* instr) {
1973 LOperand* value = UseRegisterAtStart(instr->value()); 1973 LOperand* value = UseRegisterAtStart(instr->value());
1974 return AssignEnvironment(new(zone()) LCheckValue(value)); 1974 return AssignEnvironment(new(zone()) LCheckValue(value));
1975 } 1975 }
1976 1976
1977 1977
1978 LInstruction* LChunkBuilder::DoCheckMaps(HCheckMaps* instr) { 1978 LInstruction* LChunkBuilder::DoCheckMaps(HCheckMaps* instr) {
1979 LOperand* value = NULL; 1979 if (instr->IsStabilityCheck()) return new(zone()) LCheckMaps;
1980 if (!instr->CanOmitMapChecks()) { 1980 LOperand* value = UseRegisterAtStart(instr->value());
1981 value = UseRegisterAtStart(instr->value()); 1981 LInstruction* result = AssignEnvironment(new(zone()) LCheckMaps(value));
1982 if (instr->has_migration_target()) info()->MarkAsDeferredCalling(); 1982 if (instr->HasMigrationTarget()) {
1983 } 1983 info()->MarkAsDeferredCalling();
1984 LInstruction* result = new(zone()) LCheckMaps(value); 1984 result = AssignPointerMap(result);
1985 if (!instr->CanOmitMapChecks()) {
1986 result = AssignEnvironment(result);
1987 if (instr->has_migration_target()) result = AssignPointerMap(result);
1988 } 1985 }
1989 return result; 1986 return result;
1990 } 1987 }
1991 1988
1992 1989
1993 LInstruction* LChunkBuilder::DoClampToUint8(HClampToUint8* instr) { 1990 LInstruction* LChunkBuilder::DoClampToUint8(HClampToUint8* instr) {
1994 HValue* value = instr->value(); 1991 HValue* value = instr->value();
1995 Representation input_rep = value->representation(); 1992 Representation input_rep = value->representation();
1996 LOperand* reg = UseRegister(value); 1993 LOperand* reg = UseRegister(value);
1997 if (input_rep.IsDouble()) { 1994 if (input_rep.IsDouble()) {
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after
2559 2556
2560 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2557 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2561 LOperand* object = UseRegister(instr->object()); 2558 LOperand* object = UseRegister(instr->object());
2562 LOperand* index = UseRegister(instr->index()); 2559 LOperand* index = UseRegister(instr->index());
2563 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); 2560 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index);
2564 LInstruction* result = DefineSameAsFirst(load); 2561 LInstruction* result = DefineSameAsFirst(load);
2565 return AssignPointerMap(result); 2562 return AssignPointerMap(result);
2566 } 2563 }
2567 2564
2568 } } // namespace v8::internal 2565 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.h ('k') | src/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698