Index: src/s390/cpu-s390.cc |
diff --git a/src/s390/cpu-s390.cc b/src/s390/cpu-s390.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d0d54a8a6b640c4ef058d27de681937506b75191 |
--- /dev/null |
+++ b/src/s390/cpu-s390.cc |
@@ -0,0 +1,25 @@ |
+// Copyright 2015 the V8 project authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+// CPU specific code for s390 independent of OS goes here. |
+#include "src/v8.h" |
+ |
+#if V8_TARGET_ARCH_S390 |
+#include "src/assembler.h" |
+ |
+namespace v8 { |
+namespace internal { |
+ |
+void CpuFeatures::FlushICache(void* buffer, size_t size) { |
+ // Given the strong memory model on z/Architecture, and the single |
+ // thread nature of V8 and JavaScript, instruction cache flushing |
+ // is not necessary. The architecture guarantees that if a core |
+ // patches its own instruction cache, the updated instructions will be |
+ // reflected automatically. |
+} |
+ |
+} // namespace internal |
+} // namespace v8 |
+ |
+#endif // V8_TARGET_ARCH_S390 |