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 1308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1319 | 1319 |
1320 // --------------------------------------------------------------------------- | 1320 // --------------------------------------------------------------------------- |
1321 // HeapNumber utilities | 1321 // HeapNumber utilities |
1322 | 1322 |
1323 void JumpIfNotHeapNumber(Register object, Register heap_number_map, | 1323 void JumpIfNotHeapNumber(Register object, Register heap_number_map, |
1324 Register scratch, Label* on_not_heap_number); | 1324 Register scratch, Label* on_not_heap_number); |
1325 | 1325 |
1326 // --------------------------------------------------------------------------- | 1326 // --------------------------------------------------------------------------- |
1327 // String utilities | 1327 // String utilities |
1328 | 1328 |
1329 // Generate code to do a lookup in the number string cache. If the number in | |
1330 // the register object is found in the cache the generated code falls through | |
1331 // with the result in the result register. The object and the result register | |
1332 // can be the same. If the number is not found in the cache the code jumps to | |
1333 // the label not_found with only the content of register object unchanged. | |
1334 void LookupNumberStringCache(Register object, Register result, | |
1335 Register scratch1, Register scratch2, | |
1336 Register scratch3, Label* not_found); | |
1337 | |
1338 // Checks if both objects are sequential one-byte strings and jumps to label | 1329 // Checks if both objects are sequential one-byte strings and jumps to label |
1339 // if either is not. Assumes that neither object is a smi. | 1330 // if either is not. Assumes that neither object is a smi. |
1340 void JumpIfNonSmisNotBothSequentialOneByteStrings(Register object1, | 1331 void JumpIfNonSmisNotBothSequentialOneByteStrings(Register object1, |
1341 Register object2, | 1332 Register object2, |
1342 Register scratch1, | 1333 Register scratch1, |
1343 Register scratch2, | 1334 Register scratch2, |
1344 Label* failure); | 1335 Label* failure); |
1345 | 1336 |
1346 // Checks if both objects are sequential one-byte strings and jumps to label | 1337 // Checks if both objects are sequential one-byte strings and jumps to label |
1347 // if either is not. | 1338 // if either is not. |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1570 #define ACCESS_MASM(masm) \ | 1561 #define ACCESS_MASM(masm) \ |
1571 masm->stop(__FILE_LINE__); \ | 1562 masm->stop(__FILE_LINE__); \ |
1572 masm-> | 1563 masm-> |
1573 #else | 1564 #else |
1574 #define ACCESS_MASM(masm) masm-> | 1565 #define ACCESS_MASM(masm) masm-> |
1575 #endif | 1566 #endif |
1576 } | 1567 } |
1577 } // namespace v8::internal | 1568 } // namespace v8::internal |
1578 | 1569 |
1579 #endif // V8_PPC_MACRO_ASSEMBLER_PPC_H_ | 1570 #endif // V8_PPC_MACRO_ASSEMBLER_PPC_H_ |
OLD | NEW |