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

Unified Diff: src/trusted/validator/validation_rewrite_64_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
« no previous file with comments | « src/trusted/validator/validation_rewrite_64_test.cc ('k') | src/trusted/validator_ragel/dfa_validate_32.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/trusted/validator/validation_rewrite_64_test_data.S
diff --git a/src/trusted/validator/validation_rewrite_64_test_data.S b/src/trusted/validator/validation_rewrite_64_test_data.S
new file mode 100644
index 0000000000000000000000000000000000000000..6b0791a4b66c8fac604494c83c9982a11ec389ae
--- /dev/null
+++ b/src/trusted/validator/validation_rewrite_64_test_data.S
@@ -0,0 +1,93 @@
+/*
+ * 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
+ mov %edi,%edi
+ movnti %rax,0x68(%r15,%rdi,1)
+ .byte 0
+
+ global_bytes no_rewrite_code_post_rewrite
+ mov %edi,%edi
+ movnti %rax,0x68(%r15,%rdi,1)
+ .byte 0
+
+ global_bytes prefetchnta_code
+ mov %edi,%edi
+ prefetchnta (%r15,%rdi,1)
+ .byte 0
+
+ global_bytes prefetchnta_code_post_rewrite
+ mov %edi,%edi
+ nop
+ nop
+ nop
+ nop
+ nop
+ .byte 0
+
+ global_bytes movntps_code
+ mov %ebx,%ebx
+ movntps %xmm0,(%r15,%rbx,1)
+ .byte 0
+
+ global_bytes movntps_code_post_rewrite
+ mov %ebx,%ebx
+ movaps %xmm0,(%r15,%rbx,1)
+ .byte 0
+
+ global_bytes movnti_code
+ mov %edi,%edi
+ movnti %rax,0x68(%r15,%rdi,1)
+ .byte 0
+
+ global_bytes movnti_code_post_rewrite
+ mov %edi,%edi
+ mov %rax,0x68(%r15,%rdi,1)
+ nop
+ .byte 0
+
+ global_bytes movnti_code2
+ mov %edx,%edx
+ movnti %r9d,(%r15,%rdx,1)
+ .byte 0
+
+ global_bytes movnti_code2_post_rewrite
+ mov %edx,%edx
+ mov %r9d,(%r15,%rdx,1)
+ nop
+ .byte 0
+
+ global_bytes movntdq_code
+ mov %edx,%edx
+ movntdq %xmm0,0x10(%r15,%rdx,1)
+ .byte 0
+
+ global_bytes movntdq_code_post_rewrite
+ mov %edx,%edx
+ movdqa %xmm0,0x10(%r15,%rdx,1)
+ .byte 0
+
+ global_bytes movntdq_code2
+ mov %ecx,%ecx
+ movntdq %xmm15,(%r15,%rcx,1)
+ .byte 0
+
+ global_bytes movntdq_code2_post_rewrite
+ mov %ecx,%ecx
+ movdqa %xmm15,(%r15,%rcx,1)
+ .byte 0
« no previous file with comments | « src/trusted/validator/validation_rewrite_64_test.cc ('k') | src/trusted/validator_ragel/dfa_validate_32.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698