OLD | NEW |
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 Loading... |
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 1835 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3994 case kBackingStore: | 3984 case kBackingStore: |
3995 if (!name_.is_null()) stream->Add(*String::cast(*name_)->ToCString()); | 3985 if (!name_.is_null()) stream->Add(*String::cast(*name_)->ToCString()); |
3996 stream->Add("[backing-store]"); | 3986 stream->Add("[backing-store]"); |
3997 break; | 3987 break; |
3998 } | 3988 } |
3999 | 3989 |
4000 stream->Add("@%d", offset()); | 3990 stream->Add("@%d", offset()); |
4001 } | 3991 } |
4002 | 3992 |
4003 } } // namespace v8::internal | 3993 } } // namespace v8::internal |
OLD | NEW |