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

Side by Side Diff: src/hydrogen-instructions.cc

Issue 19528003: Unify SoftDeoptimize and Deoptimize hydrogen instructions (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Review feedback Created 7 years, 5 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/hydrogen-instructions.h ('k') | src/hydrogen-osr.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 2118 matching lines...) Expand 10 before | Expand all | Expand 10 after
2129 } else { 2129 } else {
2130 stream->Add(" push "); 2130 stream->Add(" push ");
2131 } 2131 }
2132 values_[i]->PrintNameTo(stream); 2132 values_[i]->PrintNameTo(stream);
2133 if (i > 0) stream->Add(","); 2133 if (i > 0) stream->Add(",");
2134 } 2134 }
2135 } 2135 }
2136 } 2136 }
2137 2137
2138 2138
2139 void HDeoptimize::PrintDataTo(StringStream* stream) {
2140 if (OperandCount() == 0) return;
2141 OperandAt(0)->PrintNameTo(stream);
2142 for (int i = 1; i < OperandCount(); ++i) {
2143 stream->Add(" ");
2144 OperandAt(i)->PrintNameTo(stream);
2145 }
2146 }
2147
2148
2149 void HEnterInlined::RegisterReturnTarget(HBasicBlock* return_target, 2139 void HEnterInlined::RegisterReturnTarget(HBasicBlock* return_target,
2150 Zone* zone) { 2140 Zone* zone) {
2151 ASSERT(return_target->IsInlineReturnTarget()); 2141 ASSERT(return_target->IsInlineReturnTarget());
2152 return_targets_.Add(return_target, zone); 2142 return_targets_.Add(return_target, zone);
2153 } 2143 }
2154 2144
2155 2145
2156 void HEnterInlined::PrintDataTo(StringStream* stream) { 2146 void HEnterInlined::PrintDataTo(StringStream* stream) {
2157 SmartArrayPointer<char> name = function()->debug_name()->ToCString(); 2147 SmartArrayPointer<char> name = function()->debug_name()->ToCString();
2158 stream->Add("%s, id=%d", *name, function()->id().ToInt()); 2148 stream->Add("%s, id=%d", *name, function()->id().ToInt());
(...skipping 1821 matching lines...) Expand 10 before | Expand all | Expand 10 after
3980 case kBackingStore: 3970 case kBackingStore:
3981 if (!name_.is_null()) stream->Add(*String::cast(*name_)->ToCString()); 3971 if (!name_.is_null()) stream->Add(*String::cast(*name_)->ToCString());
3982 stream->Add("[backing-store]"); 3972 stream->Add("[backing-store]");
3983 break; 3973 break;
3984 } 3974 }
3985 3975
3986 stream->Add("@%d", offset()); 3976 stream->Add("@%d", offset());
3987 } 3977 }
3988 3978
3989 } } // namespace v8::internal 3979 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.h ('k') | src/hydrogen-osr.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698