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

Unified Diff: src/trusted/validator/validation_rewrite_32_test_data.S

Issue 1276543006: Experimental: Bundle revalidation inside user callback Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@master
Patch Set: Fix error checking Created 5 years, 4 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
Index: src/trusted/validator/validation_rewrite_32_test_data.S
diff --git a/src/trusted/validator/validation_rewrite_32_test_data.S b/src/trusted/validator/validation_rewrite_32_test_data.S
new file mode 100644
index 0000000000000000000000000000000000000000..a967ca602150baf19cc4d4ebb743b32971101bef
--- /dev/null
+++ b/src/trusted/validator/validation_rewrite_32_test_data.S
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2015 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.
+ */
+
+.data
+
+/* This macro is used to define two global symbols for the same byte sequence:
+ * 'name' and '_name'. This is to work around the linkage issue across OS and
+ * compilers. */
+.macro global_bytes name
+ .global \name
+\name:
+ .global _\name
+_\name:
+.endm
+
+ global_bytes no_rewrite_code
+ movntq %mm0, (%ebx)
+ .byte 0
+
+ global_bytes no_rewrite_code_post_rewrite
+ movntq %mm0, (%ebx)
+ .byte 0
+
+ global_bytes movntq_code
+ movntq %mm0, (%ebx)
+ .byte 0
+
+ global_bytes movntq_code_post_rewrite
+ movq %mm0, (%ebx)
+ .byte 0
+
+ global_bytes movntdq_code
+ movntdq %xmm0, (%edx)
+ .byte 0
+
+ global_bytes movntdq_code_post_rewrite
+ movdqa %xmm0, (%edx)
+ .byte 0
« no previous file with comments | « src/trusted/validator/validation_rewrite_32_test.cc ('k') | src/trusted/validator/validation_rewrite_64_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698