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

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

Issue 21536003: Migrate instance of deprecated maps in HCheckMaps. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments 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
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('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 // 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 1910 matching lines...) Expand 10 before | Expand all | Expand 10 after
1921 1921
1922 1922
1923 LInstruction* LChunkBuilder::DoCheckFunction(HCheckFunction* instr) { 1923 LInstruction* LChunkBuilder::DoCheckFunction(HCheckFunction* instr) {
1924 LOperand* value = UseRegisterAtStart(instr->value()); 1924 LOperand* value = UseRegisterAtStart(instr->value());
1925 return AssignEnvironment(new(zone()) LCheckFunction(value)); 1925 return AssignEnvironment(new(zone()) LCheckFunction(value));
1926 } 1926 }
1927 1927
1928 1928
1929 LInstruction* LChunkBuilder::DoCheckMaps(HCheckMaps* instr) { 1929 LInstruction* LChunkBuilder::DoCheckMaps(HCheckMaps* instr) {
1930 LOperand* value = NULL; 1930 LOperand* value = NULL;
1931 if (!instr->CanOmitMapChecks()) value = UseRegisterAtStart(instr->value()); 1931 if (!instr->CanOmitMapChecks()) {
1932 value = UseRegisterAtStart(instr->value());
1933 if (instr->has_migration_target()) info()->MarkAsDeferredCalling();
1934 }
1932 LCheckMaps* result = new(zone()) LCheckMaps(value); 1935 LCheckMaps* result = new(zone()) LCheckMaps(value);
1933 if (instr->CanOmitMapChecks()) return result; 1936 if (!instr->CanOmitMapChecks()) {
1934 return AssignEnvironment(result); 1937 AssignEnvironment(result);
1938 if (instr->has_migration_target()) return AssignPointerMap(result);
1939 }
1940 return result;
1935 } 1941 }
1936 1942
1937 1943
1938 LInstruction* LChunkBuilder::DoClampToUint8(HClampToUint8* instr) { 1944 LInstruction* LChunkBuilder::DoClampToUint8(HClampToUint8* instr) {
1939 HValue* value = instr->value(); 1945 HValue* value = instr->value();
1940 Representation input_rep = value->representation(); 1946 Representation input_rep = value->representation();
1941 LOperand* reg = UseRegister(value); 1947 LOperand* reg = UseRegister(value);
1942 if (input_rep.IsDouble()) { 1948 if (input_rep.IsDouble()) {
1943 return DefineAsRegister(new(zone()) LClampDToUint8(reg)); 1949 return DefineAsRegister(new(zone()) LClampDToUint8(reg));
1944 } else if (input_rep.IsInteger32()) { 1950 } else if (input_rep.IsInteger32()) {
(...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after
2529 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2535 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2530 LOperand* object = UseRegister(instr->object()); 2536 LOperand* object = UseRegister(instr->object());
2531 LOperand* index = UseTempRegister(instr->index()); 2537 LOperand* index = UseTempRegister(instr->index());
2532 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2538 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2533 } 2539 }
2534 2540
2535 2541
2536 } } // namespace v8::internal 2542 } } // namespace v8::internal
2537 2543
2538 #endif // V8_TARGET_ARCH_X64 2544 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698