Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(139)

Side by Side Diff: src/trusted/validator/driver/ncval.cc

Issue 11000033: Move validator_x86_XX.rl out of unreviewed. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/trusted/validator/x86/testing/enuminsts/ragel_tester.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdio.h> 8 #include <stdio.h>
9 #include <stdlib.h> 9 #include <stdlib.h>
10 #include <string.h> 10 #include <string.h>
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 UNRESTRICTED_RSP_PROCESSED) { 152 UNRESTRICTED_RSP_PROCESSED) {
153 validation_info &= ~BAD_RSP_RBP_PROCESSING_MASK; 153 validation_info &= ~BAD_RSP_RBP_PROCESSING_MASK;
154 errors.push_back(Error(offset, "improper %rsp sandboxing")); 154 errors.push_back(Error(offset, "improper %rsp sandboxing"));
155 } 155 }
156 156
157 if (validation_info & R15_MODIFIED) { 157 if (validation_info & R15_MODIFIED) {
158 validation_info &= ~R15_MODIFIED; 158 validation_info &= ~R15_MODIFIED;
159 errors.push_back(Error(offset, "error - %r15 is changed")); 159 errors.push_back(Error(offset, "error - %r15 is changed"));
160 } 160 }
161 161
162 if (validation_info & BPL_MODIFIED) { 162 if (validation_info & BP_MODIFIED) {
163 validation_info &= ~BPL_MODIFIED; 163 validation_info &= ~BP_MODIFIED;
164 errors.push_back(Error(offset, "error - %bpl or %bp is changed")); 164 errors.push_back(Error(offset, "error - %bpl or %bp is changed"));
165 } 165 }
166 166
167 if (validation_info & SPL_MODIFIED) { 167 if (validation_info & SP_MODIFIED) {
168 validation_info &= ~SPL_MODIFIED; 168 validation_info &= ~SP_MODIFIED;
169 errors.push_back(Error(offset, "error - %spl or %sp is changed")); 169 errors.push_back(Error(offset, "error - %spl or %sp is changed"));
170 } 170 }
171 171
172 if (validation_info & BAD_CALL_ALIGNMENT) { 172 if (validation_info & BAD_CALL_ALIGNMENT) {
173 validation_info &= ~BAD_CALL_ALIGNMENT; 173 validation_info &= ~BAD_CALL_ALIGNMENT;
174 errors.push_back(Error(offset, "warning - bad call alignment")); 174 errors.push_back(Error(offset, "warning - bad call alignment"));
175 } 175 }
176 176
177 if (validation_info & BAD_JUMP_TARGET) { 177 if (validation_info & BAD_JUMP_TARGET) {
178 validation_info &= ~BAD_JUMP_TARGET; 178 validation_info &= ~BAD_JUMP_TARGET;
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 } 369 }
370 370
371 if (result) { 371 if (result) {
372 printf("Valid.\n"); 372 printf("Valid.\n");
373 return 0; 373 return 0;
374 } else { 374 } else {
375 printf("Invalid.\n"); 375 printf("Invalid.\n");
376 return 1; 376 return 1;
377 } 377 }
378 } 378 }
OLDNEW
« no previous file with comments | « no previous file | src/trusted/validator/x86/testing/enuminsts/ragel_tester.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698