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

Side by Side Diff: src/x64/lithium-x64.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/x64/lithium-x64.h ('k') | no next file » | 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_X64 7 #if V8_TARGET_ARCH_X64
8 8
9 #include "lithium-allocator-inl.h" 9 #include "lithium-allocator-inl.h"
10 #include "x64/lithium-x64.h" 10 #include "x64/lithium-x64.h"
(...skipping 1917 matching lines...) Expand 10 before | Expand all | Expand 10 after
1928 } 1928 }
1929 1929
1930 1930
1931 LInstruction* LChunkBuilder::DoCheckValue(HCheckValue* instr) { 1931 LInstruction* LChunkBuilder::DoCheckValue(HCheckValue* instr) {
1932 LOperand* value = UseRegisterAtStart(instr->value()); 1932 LOperand* value = UseRegisterAtStart(instr->value());
1933 return AssignEnvironment(new(zone()) LCheckValue(value)); 1933 return AssignEnvironment(new(zone()) LCheckValue(value));
1934 } 1934 }
1935 1935
1936 1936
1937 LInstruction* LChunkBuilder::DoCheckMaps(HCheckMaps* instr) { 1937 LInstruction* LChunkBuilder::DoCheckMaps(HCheckMaps* instr) {
1938 LOperand* value = NULL; 1938 if (instr->IsStabilityCheck()) return new(zone()) LCheckMaps;
1939 if (!instr->CanOmitMapChecks()) { 1939 LOperand* value = UseRegisterAtStart(instr->value());
1940 value = UseRegisterAtStart(instr->value()); 1940 LInstruction* result = AssignEnvironment(new(zone()) LCheckMaps(value));
1941 if (instr->has_migration_target()) info()->MarkAsDeferredCalling(); 1941 if (instr->HasMigrationTarget()) {
1942 } 1942 info()->MarkAsDeferredCalling();
1943 LInstruction* result = new(zone()) LCheckMaps(value); 1943 result = AssignPointerMap(result);
1944 if (!instr->CanOmitMapChecks()) {
1945 result = AssignEnvironment(result);
1946 if (instr->has_migration_target()) result = AssignPointerMap(result);
1947 } 1944 }
1948 return result; 1945 return result;
1949 } 1946 }
1950 1947
1951 1948
1952 LInstruction* LChunkBuilder::DoClampToUint8(HClampToUint8* instr) { 1949 LInstruction* LChunkBuilder::DoClampToUint8(HClampToUint8* instr) {
1953 HValue* value = instr->value(); 1950 HValue* value = instr->value();
1954 Representation input_rep = value->representation(); 1951 Representation input_rep = value->representation();
1955 LOperand* reg = UseRegister(value); 1952 LOperand* reg = UseRegister(value);
1956 if (input_rep.IsDouble()) { 1953 if (input_rep.IsDouble()) {
(...skipping 631 matching lines...) Expand 10 before | Expand all | Expand 10 after
2588 LOperand* index = UseTempRegister(instr->index()); 2585 LOperand* index = UseTempRegister(instr->index());
2589 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); 2586 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index);
2590 LInstruction* result = DefineSameAsFirst(load); 2587 LInstruction* result = DefineSameAsFirst(load);
2591 return AssignPointerMap(result); 2588 return AssignPointerMap(result);
2592 } 2589 }
2593 2590
2594 2591
2595 } } // namespace v8::internal 2592 } } // namespace v8::internal
2596 2593
2597 #endif // V8_TARGET_ARCH_X64 2594 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/lithium-x64.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698