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 2303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2314 if (value->IsCapturedObject() && | 2314 if (value->IsCapturedObject() && |
2315 HCapturedObject::cast(value)->capture_id() == this->capture_id()) { | 2315 HCapturedObject::cast(value)->capture_id() == this->capture_id()) { |
2316 env->SetValueAt(i, this); | 2316 env->SetValueAt(i, this); |
2317 } | 2317 } |
2318 } | 2318 } |
2319 env = env->outer(); | 2319 env = env->outer(); |
2320 } | 2320 } |
2321 } | 2321 } |
2322 | 2322 |
2323 | 2323 |
| 2324 void HCapturedObject::PrintDataTo(StringStream* stream) { |
| 2325 stream->Add("#%d ", capture_id()); |
| 2326 HDematerializedObject::PrintDataTo(stream); |
| 2327 } |
| 2328 |
| 2329 |
2324 void HEnterInlined::RegisterReturnTarget(HBasicBlock* return_target, | 2330 void HEnterInlined::RegisterReturnTarget(HBasicBlock* return_target, |
2325 Zone* zone) { | 2331 Zone* zone) { |
2326 ASSERT(return_target->IsInlineReturnTarget()); | 2332 ASSERT(return_target->IsInlineReturnTarget()); |
2327 return_targets_.Add(return_target, zone); | 2333 return_targets_.Add(return_target, zone); |
2328 } | 2334 } |
2329 | 2335 |
2330 | 2336 |
2331 void HEnterInlined::PrintDataTo(StringStream* stream) { | 2337 void HEnterInlined::PrintDataTo(StringStream* stream) { |
2332 SmartArrayPointer<char> name = function()->debug_name()->ToCString(); | 2338 SmartArrayPointer<char> name = function()->debug_name()->ToCString(); |
2333 stream->Add("%s, id=%d", *name, function()->id().ToInt()); | 2339 stream->Add("%s, id=%d", *name, function()->id().ToInt()); |
(...skipping 1831 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4165 break; | 4171 break; |
4166 case kExternalMemory: | 4172 case kExternalMemory: |
4167 stream->Add("[external-memory]"); | 4173 stream->Add("[external-memory]"); |
4168 break; | 4174 break; |
4169 } | 4175 } |
4170 | 4176 |
4171 stream->Add("@%d", offset()); | 4177 stream->Add("@%d", offset()); |
4172 } | 4178 } |
4173 | 4179 |
4174 } } // namespace v8::internal | 4180 } } // namespace v8::internal |
OLD | NEW |