OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <stdarg.h> | 5 #include <stdarg.h> |
6 #include <stdlib.h> | 6 #include <stdlib.h> |
7 #include <cmath> | 7 #include <cmath> |
8 | 8 |
9 #if V8_TARGET_ARCH_S390 | 9 #if V8_TARGET_ARCH_S390 |
10 | 10 |
(...skipping 11134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11145 return 0; | 11145 return 0; |
11146 } | 11146 } |
11147 | 11147 |
11148 EVALUATE(CGH) { | 11148 EVALUATE(CGH) { |
11149 UNIMPLEMENTED(); | 11149 UNIMPLEMENTED(); |
11150 USE(instr); | 11150 USE(instr); |
11151 return 0; | 11151 return 0; |
11152 } | 11152 } |
11153 | 11153 |
11154 EVALUATE(PFD) { | 11154 EVALUATE(PFD) { |
11155 UNIMPLEMENTED(); | 11155 DCHECK_OPCODE(PFD); |
11156 USE(instr); | 11156 USE(instr); |
11157 return 0; | 11157 return 6; |
11158 } | 11158 } |
11159 | 11159 |
11160 EVALUATE(STRV) { | 11160 EVALUATE(STRV) { |
11161 DCHECK_OPCODE(STRV); | 11161 DCHECK_OPCODE(STRV); |
11162 DECODE_RXY_A_INSTRUCTION(r1, x2, b2, d2); | 11162 DECODE_RXY_A_INSTRUCTION(r1, x2, b2, d2); |
11163 int32_t r1_val = get_low_register<int32_t>(r1); | 11163 int32_t r1_val = get_low_register<int32_t>(r1); |
11164 int64_t x2_val = (x2 == 0) ? 0 : get_register(x2); | 11164 int64_t x2_val = (x2 == 0) ? 0 : get_register(x2); |
11165 int64_t b2_val = (b2 == 0) ? 0 : get_register(b2); | 11165 int64_t b2_val = (b2 == 0) ? 0 : get_register(b2); |
11166 intptr_t mem_addr = b2_val + x2_val + d2; | 11166 intptr_t mem_addr = b2_val + x2_val + d2; |
11167 WriteW(mem_addr, ByteReverse(r1_val), instr); | 11167 WriteW(mem_addr, ByteReverse(r1_val), instr); |
(...skipping 1601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12769 return 0; | 12769 return 0; |
12770 } | 12770 } |
12771 | 12771 |
12772 #undef EVALUATE | 12772 #undef EVALUATE |
12773 | 12773 |
12774 } // namespace internal | 12774 } // namespace internal |
12775 } // namespace v8 | 12775 } // namespace v8 |
12776 | 12776 |
12777 #endif // USE_SIMULATOR | 12777 #endif // USE_SIMULATOR |
12778 #endif // V8_TARGET_ARCH_S390 | 12778 #endif // V8_TARGET_ARCH_S390 |
OLD | NEW |