| OLD | NEW |
| 1 // Copyright 2015 Google Inc. All Rights Reserved. | 1 // Copyright 2015 Google Inc. All Rights Reserved. |
| 2 // | 2 // |
| 3 // Licensed under the Apache License, Version 2.0 (the "License"); | 3 // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 // you may not use this file except in compliance with the License. | 4 // you may not use this file except in compliance with the License. |
| 5 // You may obtain a copy of the License at | 5 // You may obtain a copy of the License at |
| 6 // | 6 // |
| 7 // http://www.apache.org/licenses/LICENSE-2.0 | 7 // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 // | 8 // |
| 9 // Unless required by applicable law or agreed to in writing, software | 9 // Unless required by applicable law or agreed to in writing, software |
| 10 // distributed under the License is distributed on an "AS IS" BASIS, | 10 // distributed under the License is distributed on an "AS IS" BASIS, |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 // Base address of the local variables. | 101 // Base address of the local variables. |
| 102 optional uint64 locals_base = 3; | 102 optional uint64 locals_base = 3; |
| 103 | 103 |
| 104 // TODO(manzagop): Add function name, for easier human consumption? | 104 // TODO(manzagop): Add function name, for easier human consumption? |
| 105 } | 105 } |
| 106 | 106 |
| 107 message HeapSnippet { | 107 message HeapSnippet { |
| 108 } | 108 } |
| 109 | 109 |
| 110 message TypedBlock { | 110 message TypedBlock { |
| 111 optional string data_name = 1; | 111 // A module identifier within the module layer. |
| 112 optional string type_name = 2; | 112 optional uint32 module_id = 1; |
| 113 optional uint32 type_id = 2; |
| 114 optional string data_name = 3; |
| 113 } | 115 } |
| 114 | 116 |
| 115 // An instance of a module. | 117 // An instance of a module. |
| 116 message Module { | 118 message Module { |
| 117 // Module identifier for this instance. | 119 // Module identifier for this instance. |
| 118 optional uint32 module_id = 1; | 120 optional uint32 module_id = 1; |
| 119 } | 121 } |
| 120 | 122 |
| 121 // TODO(manzagop): flesh out ValidationReport once we have a better idea of the | 123 // TODO(manzagop): flesh out ValidationReport once we have a better idea of the |
| 122 // kinds of violations there can be. There will probably be notions of | 124 // kinds of violations there can be. There will probably be notions of |
| 123 // expectation vs observation. | 125 // expectation vs observation. |
| 124 | 126 |
| 125 enum ViolationType { | 127 enum ViolationType { |
| 126 VIOLATION_UNKNOWN = 0; | 128 VIOLATION_UNKNOWN = 0; |
| 127 VIOLATION_NO_EXCEPTION_REGISTRATION_RECORD = 1; | 129 VIOLATION_NO_EXCEPTION_REGISTRATION_RECORD = 1; |
| 128 VIOLATION_EXCEPTION_REGISTRATION_RECORD_NOT_IN_STACK = 2; | 130 VIOLATION_EXCEPTION_REGISTRATION_RECORD_NOT_IN_STACK = 2; |
| 129 VIOLATION_EXCEPTION_CHAIN_ADDRESS_DECREASE = 3; | 131 VIOLATION_EXCEPTION_CHAIN_ADDRESS_DECREASE = 3; |
| 130 } | 132 } |
| 131 | 133 |
| 132 message Violation { | 134 message Violation { |
| 133 optional ViolationType type = 1; | 135 optional ViolationType type = 1; |
| 134 optional string description = 2; | 136 optional string description = 2; |
| 135 } | 137 } |
| 136 | 138 |
| 137 message ValidationReport { | 139 message ValidationReport { |
| 138 repeated Violation error = 1; | 140 repeated Violation error = 1; |
| 139 } | 141 } |
| OLD | NEW |