| 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 824 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 835 | 835 |
| 836 | 836 |
| 837 void HUnaryCall::PrintDataTo(StringStream* stream) { | 837 void HUnaryCall::PrintDataTo(StringStream* stream) { |
| 838 value()->PrintNameTo(stream); | 838 value()->PrintNameTo(stream); |
| 839 stream->Add(" "); | 839 stream->Add(" "); |
| 840 stream->Add("#%d", argument_count()); | 840 stream->Add("#%d", argument_count()); |
| 841 } | 841 } |
| 842 | 842 |
| 843 | 843 |
| 844 void HCallJSFunction::PrintDataTo(StringStream* stream) { | 844 void HCallJSFunction::PrintDataTo(StringStream* stream) { |
| 845 OperandAt(0)->PrintNameTo(stream); | 845 function()->PrintNameTo(stream); |
| 846 stream->Add(" "); | |
| 847 OperandAt(1)->PrintNameTo(stream); | |
| 848 stream->Add(" "); | 846 stream->Add(" "); |
| 849 stream->Add("#%d", argument_count()); | 847 stream->Add("#%d", argument_count()); |
| 850 } | 848 } |
| 851 | 849 |
| 852 | 850 |
| 853 HCallJSFunction* HCallJSFunction::New( | 851 HCallJSFunction* HCallJSFunction::New( |
| 854 Zone* zone, | 852 Zone* zone, |
| 855 HValue* context, | 853 HValue* context, |
| 856 HValue* function, | 854 HValue* function, |
| 857 int argument_count, | 855 int argument_count, |
| (...skipping 2486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3344 | 3342 |
| 3345 | 3343 |
| 3346 void HStoreGlobalCell::PrintDataTo(StringStream* stream) { | 3344 void HStoreGlobalCell::PrintDataTo(StringStream* stream) { |
| 3347 stream->Add("[%p] = ", *cell().handle()); | 3345 stream->Add("[%p] = ", *cell().handle()); |
| 3348 value()->PrintNameTo(stream); | 3346 value()->PrintNameTo(stream); |
| 3349 if (!details_.IsDontDelete()) stream->Add(" (deleteable)"); | 3347 if (!details_.IsDontDelete()) stream->Add(" (deleteable)"); |
| 3350 if (details_.IsReadOnly()) stream->Add(" (read-only)"); | 3348 if (details_.IsReadOnly()) stream->Add(" (read-only)"); |
| 3351 } | 3349 } |
| 3352 | 3350 |
| 3353 | 3351 |
| 3354 void HStoreGlobalGeneric::PrintDataTo(StringStream* stream) { | |
| 3355 stream->Add("%o = ", *name()); | |
| 3356 value()->PrintNameTo(stream); | |
| 3357 } | |
| 3358 | |
| 3359 | |
| 3360 void HLoadContextSlot::PrintDataTo(StringStream* stream) { | 3352 void HLoadContextSlot::PrintDataTo(StringStream* stream) { |
| 3361 value()->PrintNameTo(stream); | 3353 value()->PrintNameTo(stream); |
| 3362 stream->Add("[%d]", slot_index()); | 3354 stream->Add("[%d]", slot_index()); |
| 3363 } | 3355 } |
| 3364 | 3356 |
| 3365 | 3357 |
| 3366 void HStoreContextSlot::PrintDataTo(StringStream* stream) { | 3358 void HStoreContextSlot::PrintDataTo(StringStream* stream) { |
| 3367 context()->PrintNameTo(stream); | 3359 context()->PrintNameTo(stream); |
| 3368 stream->Add("[%d] = ", slot_index()); | 3360 stream->Add("[%d] = ", slot_index()); |
| 3369 value()->PrintNameTo(stream); | 3361 value()->PrintNameTo(stream); |
| (...skipping 1081 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4451 break; | 4443 break; |
| 4452 case kExternalMemory: | 4444 case kExternalMemory: |
| 4453 stream->Add("[external-memory]"); | 4445 stream->Add("[external-memory]"); |
| 4454 break; | 4446 break; |
| 4455 } | 4447 } |
| 4456 | 4448 |
| 4457 stream->Add("@%d", offset()); | 4449 stream->Add("@%d", offset()); |
| 4458 } | 4450 } |
| 4459 | 4451 |
| 4460 } } // namespace v8::internal | 4452 } } // namespace v8::internal |
| OLD | NEW |