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

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

Issue 22254007: MIPS: 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
« no previous file with comments | « src/mips/lithium-codegen-mips.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 1916 matching lines...) Expand 10 before | Expand all | Expand 10 after
1927 1927
1928 1928
1929 LInstruction* LChunkBuilder::DoCheckFunction(HCheckFunction* instr) { 1929 LInstruction* LChunkBuilder::DoCheckFunction(HCheckFunction* instr) {
1930 LOperand* value = UseRegisterAtStart(instr->value()); 1930 LOperand* value = UseRegisterAtStart(instr->value());
1931 return AssignEnvironment(new(zone()) LCheckFunction(value)); 1931 return AssignEnvironment(new(zone()) LCheckFunction(value));
1932 } 1932 }
1933 1933
1934 1934
1935 LInstruction* LChunkBuilder::DoCheckMaps(HCheckMaps* instr) { 1935 LInstruction* LChunkBuilder::DoCheckMaps(HCheckMaps* instr) {
1936 LOperand* value = NULL; 1936 LOperand* value = NULL;
1937 if (!instr->CanOmitMapChecks()) value = UseRegisterAtStart(instr->value()); 1937 if (!instr->CanOmitMapChecks()) {
1938 LInstruction* result = new(zone()) LCheckMaps(value); 1938 value = UseRegisterAtStart(instr->value());
1939 if (instr->CanOmitMapChecks()) return result; 1939 if (instr->has_migration_target()) info()->MarkAsDeferredCalling();
1940 return AssignEnvironment(result); 1940 }
1941 LCheckMaps* result = new(zone()) LCheckMaps(value);
1942 if (!instr->CanOmitMapChecks()) {
1943 AssignEnvironment(result);
1944 if (instr->has_migration_target()) return AssignPointerMap(result);
1945 }
1946 return result;
1941 } 1947 }
1942 1948
1943 1949
1944 LInstruction* LChunkBuilder::DoClampToUint8(HClampToUint8* instr) { 1950 LInstruction* LChunkBuilder::DoClampToUint8(HClampToUint8* instr) {
1945 HValue* value = instr->value(); 1951 HValue* value = instr->value();
1946 Representation input_rep = value->representation(); 1952 Representation input_rep = value->representation();
1947 LOperand* reg = UseRegister(value); 1953 LOperand* reg = UseRegister(value);
1948 if (input_rep.IsDouble()) { 1954 if (input_rep.IsDouble()) {
1949 // Revisit this decision, here and 8 lines below. 1955 // Revisit this decision, here and 8 lines below.
1950 return DefineAsRegister(new(zone()) LClampDToUint8(reg, FixedTemp(f22))); 1956 return DefineAsRegister(new(zone()) LClampDToUint8(reg, FixedTemp(f22)));
(...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after
2507 2513
2508 2514
2509 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2515 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2510 LOperand* object = UseRegister(instr->object()); 2516 LOperand* object = UseRegister(instr->object());
2511 LOperand* index = UseRegister(instr->index()); 2517 LOperand* index = UseRegister(instr->index());
2512 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2518 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2513 } 2519 }
2514 2520
2515 2521
2516 } } // namespace v8::internal 2522 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698