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

Side by Side Diff: src/arm/lithium-arm.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 | « no previous file | src/arm/lithium-codegen-arm.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 // 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 2006 matching lines...) Expand 10 before | Expand all | Expand 10 after
2017 2017
2018 2018
2019 LInstruction* LChunkBuilder::DoCheckFunction(HCheckFunction* instr) { 2019 LInstruction* LChunkBuilder::DoCheckFunction(HCheckFunction* instr) {
2020 LOperand* value = UseRegisterAtStart(instr->value()); 2020 LOperand* value = UseRegisterAtStart(instr->value());
2021 return AssignEnvironment(new(zone()) LCheckFunction(value)); 2021 return AssignEnvironment(new(zone()) LCheckFunction(value));
2022 } 2022 }
2023 2023
2024 2024
2025 LInstruction* LChunkBuilder::DoCheckMaps(HCheckMaps* instr) { 2025 LInstruction* LChunkBuilder::DoCheckMaps(HCheckMaps* instr) {
2026 LOperand* value = NULL; 2026 LOperand* value = NULL;
2027 if (!instr->CanOmitMapChecks()) value = UseRegisterAtStart(instr->value()); 2027 if (!instr->CanOmitMapChecks()) {
2028 LInstruction* result = new(zone()) LCheckMaps(value); 2028 value = UseRegisterAtStart(instr->value());
2029 if (instr->CanOmitMapChecks()) return result; 2029 if (instr->has_migration_target()) info()->MarkAsDeferredCalling();
2030 return AssignEnvironment(result); 2030 }
2031 LCheckMaps* result = new(zone()) LCheckMaps(value);
2032 if (!instr->CanOmitMapChecks()) {
2033 AssignEnvironment(result);
2034 if (instr->has_migration_target()) return AssignPointerMap(result);
2035 }
2036 return result;
2031 } 2037 }
2032 2038
2033 2039
2034 LInstruction* LChunkBuilder::DoClampToUint8(HClampToUint8* instr) { 2040 LInstruction* LChunkBuilder::DoClampToUint8(HClampToUint8* instr) {
2035 HValue* value = instr->value(); 2041 HValue* value = instr->value();
2036 Representation input_rep = value->representation(); 2042 Representation input_rep = value->representation();
2037 LOperand* reg = UseRegister(value); 2043 LOperand* reg = UseRegister(value);
2038 if (input_rep.IsDouble()) { 2044 if (input_rep.IsDouble()) {
2039 return DefineAsRegister(new(zone()) LClampDToUint8(reg)); 2045 return DefineAsRegister(new(zone()) LClampDToUint8(reg));
2040 } else if (input_rep.IsInteger32()) { 2046 } else if (input_rep.IsInteger32()) {
(...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after
2595 2601
2596 2602
2597 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2603 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2598 LOperand* object = UseRegister(instr->object()); 2604 LOperand* object = UseRegister(instr->object());
2599 LOperand* index = UseRegister(instr->index()); 2605 LOperand* index = UseRegister(instr->index());
2600 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2606 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2601 } 2607 }
2602 2608
2603 2609
2604 } } // namespace v8::internal 2610 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/arm/lithium-codegen-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698