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 #ifndef V8_PPC_MACRO_ASSEMBLER_PPC_H_ | 5 #ifndef V8_PPC_MACRO_ASSEMBLER_PPC_H_ |
6 #define V8_PPC_MACRO_ASSEMBLER_PPC_H_ | 6 #define V8_PPC_MACRO_ASSEMBLER_PPC_H_ |
7 | 7 |
8 #include "src/assembler.h" | 8 #include "src/assembler.h" |
9 #include "src/bailout-reason.h" | 9 #include "src/bailout-reason.h" |
10 #include "src/frames.h" | 10 #include "src/frames.h" |
(...skipping 1349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1360 Label* failure); | 1360 Label* failure); |
1361 | 1361 |
1362 void JumpIfNotUniqueNameInstanceType(Register reg, Label* not_unique_name); | 1362 void JumpIfNotUniqueNameInstanceType(Register reg, Label* not_unique_name); |
1363 | 1363 |
1364 void EmitSeqStringSetCharCheck(Register string, Register index, | 1364 void EmitSeqStringSetCharCheck(Register string, Register index, |
1365 Register value, uint32_t encoding_mask); | 1365 Register value, uint32_t encoding_mask); |
1366 | 1366 |
1367 // --------------------------------------------------------------------------- | 1367 // --------------------------------------------------------------------------- |
1368 // Patching helpers. | 1368 // Patching helpers. |
1369 | 1369 |
| 1370 // Decode offset from constant pool load instruction(s). |
| 1371 // Caller must place the instruction word at <location> in <result>. |
| 1372 void DecodeConstantPoolOffset(Register result, Register location); |
| 1373 |
1370 // Retrieve/patch the relocated value (lis/ori pair or constant pool load). | 1374 // Retrieve/patch the relocated value (lis/ori pair or constant pool load). |
1371 void GetRelocatedValue(Register location, Register result, Register scratch); | 1375 void GetRelocatedValue(Register location, Register result, Register scratch); |
1372 void SetRelocatedValue(Register location, Register scratch, | 1376 void SetRelocatedValue(Register location, Register scratch, |
1373 Register new_value); | 1377 Register new_value); |
1374 | 1378 |
1375 void ClampUint8(Register output_reg, Register input_reg); | 1379 void ClampUint8(Register output_reg, Register input_reg); |
1376 | 1380 |
1377 // Saturate a value into 8-bit unsigned integer | 1381 // Saturate a value into 8-bit unsigned integer |
1378 // if input_value < 0, output_value is 0 | 1382 // if input_value < 0, output_value is 0 |
1379 // if input_value > 255, output_value is 255 | 1383 // if input_value > 255, output_value is 255 |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1569 #define ACCESS_MASM(masm) \ | 1573 #define ACCESS_MASM(masm) \ |
1570 masm->stop(__FILE_LINE__); \ | 1574 masm->stop(__FILE_LINE__); \ |
1571 masm-> | 1575 masm-> |
1572 #else | 1576 #else |
1573 #define ACCESS_MASM(masm) masm-> | 1577 #define ACCESS_MASM(masm) masm-> |
1574 #endif | 1578 #endif |
1575 } | 1579 } |
1576 } // namespace v8::internal | 1580 } // namespace v8::internal |
1577 | 1581 |
1578 #endif // V8_PPC_MACRO_ASSEMBLER_PPC_H_ | 1582 #endif // V8_PPC_MACRO_ASSEMBLER_PPC_H_ |
OLD | NEW |