OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 1380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1391 Register scratch2, | 1391 Register scratch2, |
1392 Label* failure); | 1392 Label* failure); |
1393 | 1393 |
1394 void ClampUint8(Register output_reg, Register input_reg); | 1394 void ClampUint8(Register output_reg, Register input_reg); |
1395 | 1395 |
1396 void ClampDoubleToUint8(Register result_reg, | 1396 void ClampDoubleToUint8(Register result_reg, |
1397 DoubleRegister input_reg, | 1397 DoubleRegister input_reg, |
1398 DoubleRegister temp_double_reg); | 1398 DoubleRegister temp_double_reg); |
1399 | 1399 |
1400 | 1400 |
1401 void LoadInstanceDescriptors(Register map, | 1401 void LoadInstanceDescriptors(Register map, Register descriptors); |
1402 Register descriptors, | |
1403 Register scratch); | |
1404 void EnumLength(Register dst, Register map); | 1402 void EnumLength(Register dst, Register map); |
1405 void NumberOfOwnDescriptors(Register dst, Register map); | 1403 void NumberOfOwnDescriptors(Register dst, Register map); |
1406 | 1404 |
1407 template<typename Field> | 1405 template<typename Field> |
1408 void DecodeField(Register reg) { | 1406 void DecodeField(Register reg) { |
1409 static const int shift = Field::kShift; | 1407 static const int shift = Field::kShift; |
1410 static const int mask = (Field::kMask >> shift) << kSmiTagSize; | 1408 static const int mask = (Field::kMask >> shift) << kSmiTagSize; |
1411 srl(reg, reg, shift); | 1409 srl(reg, reg, shift); |
1412 And(reg, reg, Operand(mask)); | 1410 And(reg, reg, Operand(mask)); |
1413 } | 1411 } |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1546 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 1544 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
1547 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1545 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1548 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1546 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1549 #else | 1547 #else |
1550 #define ACCESS_MASM(masm) masm-> | 1548 #define ACCESS_MASM(masm) masm-> |
1551 #endif | 1549 #endif |
1552 | 1550 |
1553 } } // namespace v8::internal | 1551 } } // namespace v8::internal |
1554 | 1552 |
1555 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1553 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |