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

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

Issue 14997008: Add a HBreak instruction for debugging (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fix Created 7 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 // 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 962 matching lines...) Expand 10 before | Expand all | Expand 10 after
973 // deoptimization environment. 973 // deoptimization environment.
974 Representation rep = value->representation(); 974 Representation rep = value->representation();
975 HType type = value->type(); 975 HType type = value->type();
976 if (rep.IsTagged() && !type.IsSmi() && !type.IsBoolean()) { 976 if (rep.IsTagged() && !type.IsSmi() && !type.IsBoolean()) {
977 return AssignEnvironment(result); 977 return AssignEnvironment(result);
978 } 978 }
979 return result; 979 return result;
980 } 980 }
981 981
982 982
983 LInstruction* LChunkBuilder::DoDebugBreak(HDebugBreak* instr) {
984 return new(zone()) LDebugBreak();
985 }
986
983 987
984 LInstruction* LChunkBuilder::DoCompareMap(HCompareMap* instr) { 988 LInstruction* LChunkBuilder::DoCompareMap(HCompareMap* instr) {
985 ASSERT(instr->value()->representation().IsTagged()); 989 ASSERT(instr->value()->representation().IsTagged());
986 LOperand* value = UseRegisterAtStart(instr->value()); 990 LOperand* value = UseRegisterAtStart(instr->value());
987 LOperand* temp = TempRegister(); 991 LOperand* temp = TempRegister();
988 return new(zone()) LCmpMapAndBranch(value, temp); 992 return new(zone()) LCmpMapAndBranch(value, temp);
989 } 993 }
990 994
991 995
992 LInstruction* LChunkBuilder::DoArgumentsLength(HArgumentsLength* instr) { 996 LInstruction* LChunkBuilder::DoArgumentsLength(HArgumentsLength* instr) {
(...skipping 1611 matching lines...) Expand 10 before | Expand all | Expand 10 after
2604 2608
2605 2609
2606 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2610 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2607 LOperand* object = UseRegister(instr->object()); 2611 LOperand* object = UseRegister(instr->object());
2608 LOperand* index = UseRegister(instr->index()); 2612 LOperand* index = UseRegister(instr->index());
2609 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2613 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2610 } 2614 }
2611 2615
2612 2616
2613 } } // namespace v8::internal 2617 } } // 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