| 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 2614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2625 done_with_replay_ = true; | 2625 done_with_replay_ = true; |
| 2626 } | 2626 } |
| 2627 | 2627 |
| 2628 | 2628 |
| 2629 static void ReplayEnvironmentNested(const ZoneList<HValue*>* values, | 2629 static void ReplayEnvironmentNested(const ZoneList<HValue*>* values, |
| 2630 HCapturedObject* other) { | 2630 HCapturedObject* other) { |
| 2631 for (int i = 0; i < values->length(); ++i) { | 2631 for (int i = 0; i < values->length(); ++i) { |
| 2632 HValue* value = values->at(i); | 2632 HValue* value = values->at(i); |
| 2633 if (value->IsCapturedObject()) { | 2633 if (value->IsCapturedObject()) { |
| 2634 if (HCapturedObject::cast(value)->capture_id() == other->capture_id()) { | 2634 if (HCapturedObject::cast(value)->capture_id() == other->capture_id()) { |
| 2635 // TODO(jkummerow): This impertinently circumvents const-ness |
| 2636 // of |values|! |
| 2635 values->at(i) = other; | 2637 values->at(i) = other; |
| 2636 } else { | 2638 } else { |
| 2637 ReplayEnvironmentNested(HCapturedObject::cast(value)->values(), other); | 2639 ReplayEnvironmentNested(HCapturedObject::cast(value)->values(), other); |
| 2638 } | 2640 } |
| 2639 } | 2641 } |
| 2640 } | 2642 } |
| 2641 } | 2643 } |
| 2642 | 2644 |
| 2643 | 2645 |
| 2644 // Replay captured objects by replacing all captured objects with the | 2646 // Replay captured objects by replacing all captured objects with the |
| (...skipping 2050 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4695 break; | 4697 break; |
| 4696 case kExternalMemory: | 4698 case kExternalMemory: |
| 4697 stream->Add("[external-memory]"); | 4699 stream->Add("[external-memory]"); |
| 4698 break; | 4700 break; |
| 4699 } | 4701 } |
| 4700 | 4702 |
| 4701 stream->Add("@%d", offset()); | 4703 stream->Add("@%d", offset()); |
| 4702 } | 4704 } |
| 4703 | 4705 |
| 4704 } } // namespace v8::internal | 4706 } } // namespace v8::internal |
| OLD | NEW |