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

Unified Diff: src/trusted/validator/x86/halt_trim.h

Issue 625923004: Delete old x86 validator. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: rebase master Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/trusted/validator/x86/error_reporter_verbose.c ('k') | src/trusted/validator/x86/halt_trim.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/trusted/validator/x86/halt_trim.h
diff --git a/src/trusted/validator/x86/halt_trim.h b/src/trusted/validator/x86/halt_trim.h
deleted file mode 100644
index 88415bbd5444d61c2536c55ba455eadafb74994b..0000000000000000000000000000000000000000
--- a/src/trusted/validator/x86/halt_trim.h
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * Copyright (c) 2011 The Native Client Authors. All rights reserved.
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-/* Defines code to detect trailing halts in a code segment, and how many
- * can be trimmed from the code segment without effecting the validator.
- */
-
-#ifndef NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_HALT_TRIM_H__
-#define NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_HALT_TRIM_H__
-
-#include "native_client/src/trusted/validator/types_memory_model.h"
-
-EXTERN_C_BEGIN
-
-/* Takes a code memory segment, and returns the (safe) size to
- * use for validation. It does this by checking for trailing halt
- * instructions, and removes excess halts from the code segment memory.
- * This function assumes the code segment will be mapped to an aligned base
- * address.
- *
- * Parameters are:
- * mbase - The beging of the memory segment to decode.
- * sz - The number of bytes in the memory segment.
- * alignment - The blocksize alignment used for the code segment.
- * Returns:
- * The number of bytes in the trimmed memory segment.
- */
-NaClMemorySize NCHaltTrimSize(uint8_t* mbase, NaClMemorySize sz,
- uint8_t alignment);
-
-EXTERN_C_END
-
-#endif /* NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_HALT_TRIM_H__ */
« no previous file with comments | « src/trusted/validator/x86/error_reporter_verbose.c ('k') | src/trusted/validator/x86/halt_trim.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698