| OLD | NEW |
| 1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 function SnapshotLogProcessor() { | 60 function SnapshotLogProcessor() { |
| 61 devtools.profiler.LogReader.call(this, { | 61 devtools.profiler.LogReader.call(this, { |
| 62 'code-creation': { | 62 'code-creation': { |
| 63 parsers: [null, this.createAddressParser('code'), parseInt, null], | 63 parsers: [null, this.createAddressParser('code'), parseInt, null], |
| 64 processor: this.processCodeCreation, backrefs: true }, | 64 processor: this.processCodeCreation, backrefs: true }, |
| 65 'code-move': { parsers: [this.createAddressParser('code'), | 65 'code-move': { parsers: [this.createAddressParser('code'), |
| 66 this.createAddressParser('code-move-to')], | 66 this.createAddressParser('code-move-to')], |
| 67 processor: this.processCodeMove, backrefs: true }, | 67 processor: this.processCodeMove, backrefs: true }, |
| 68 'code-delete': { parsers: [this.createAddressParser('code')], | 68 'code-delete': { parsers: [this.createAddressParser('code')], |
| 69 processor: this.processCodeDelete, backrefs: true }, | 69 processor: this.processCodeDelete, backrefs: true }, |
| 70 'function-creation': null, |
| 71 'function-move': null, |
| 72 'function-delete': null, |
| 70 'snapshot-pos': { parsers: [this.createAddressParser('code'), parseInt], | 73 'snapshot-pos': { parsers: [this.createAddressParser('code'), parseInt], |
| 71 processor: this.processSnapshotPosition, backrefs: true }}); | 74 processor: this.processSnapshotPosition, backrefs: true }}); |
| 72 | 75 |
| 73 Profile.prototype.handleUnknownCode = function(operation, addr) { | 76 Profile.prototype.handleUnknownCode = function(operation, addr) { |
| 74 var op = devtools.profiler.Profile.Operation; | 77 var op = devtools.profiler.Profile.Operation; |
| 75 switch (operation) { | 78 switch (operation) { |
| 76 case op.MOVE: | 79 case op.MOVE: |
| 77 print('Snapshot: Code move event for unknown code: 0x' + | 80 print('Snapshot: Code move event for unknown code: 0x' + |
| 78 addr.toString(16)); | 81 addr.toString(16)); |
| 79 break; | 82 break; |
| (...skipping 760 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 840 if (arg !== synArg && dispatch === this.argsDispatch_[synArg]) { | 843 if (arg !== synArg && dispatch === this.argsDispatch_[synArg]) { |
| 841 synonims.push(synArg); | 844 synonims.push(synArg); |
| 842 delete this.argsDispatch_[synArg]; | 845 delete this.argsDispatch_[synArg]; |
| 843 } | 846 } |
| 844 } | 847 } |
| 845 print(' ' + padRight(synonims.join(', '), 20) + dispatch[2]); | 848 print(' ' + padRight(synonims.join(', '), 20) + dispatch[2]); |
| 846 } | 849 } |
| 847 quit(2); | 850 quit(2); |
| 848 }; | 851 }; |
| 849 | 852 |
| OLD | NEW |