| OLD | NEW | 
|     1 // Copyright 2012 the V8 project authors. All rights reserved. |     1 // Copyright 2012 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_MIPS_MACRO_ASSEMBLER_MIPS_H_ |     5 #ifndef V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 
|     6 #define V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |     6 #define V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 
|     7  |     7  | 
|     8 #include "assembler.h" |     8 #include "assembler.h" | 
|     9 #include "mips/assembler-mips.h" |     9 #include "mips/assembler-mips.h" | 
|    10 #include "v8globals.h" |    10 #include "v8globals.h" | 
| (...skipping 1466 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1477   void ClampDoubleToUint8(Register result_reg, |  1477   void ClampDoubleToUint8(Register result_reg, | 
|  1478                           DoubleRegister input_reg, |  1478                           DoubleRegister input_reg, | 
|  1479                           DoubleRegister temp_double_reg); |  1479                           DoubleRegister temp_double_reg); | 
|  1480  |  1480  | 
|  1481  |  1481  | 
|  1482   void LoadInstanceDescriptors(Register map, Register descriptors); |  1482   void LoadInstanceDescriptors(Register map, Register descriptors); | 
|  1483   void EnumLength(Register dst, Register map); |  1483   void EnumLength(Register dst, Register map); | 
|  1484   void NumberOfOwnDescriptors(Register dst, Register map); |  1484   void NumberOfOwnDescriptors(Register dst, Register map); | 
|  1485  |  1485  | 
|  1486   template<typename Field> |  1486   template<typename Field> | 
|  1487   void DecodeField(Register reg) { |  1487   void DecodeField(Register dst, Register src) { | 
|  1488     static const int shift = Field::kShift; |  1488     static const int shift = Field::kShift; | 
|  1489     static const int mask = Field::kMask >> shift; |  1489     static const int mask = Field::kMask >> shift; | 
|  1490     srl(reg, reg, shift); |  1490     static const int size = Field::kSize; | 
|  1491     And(reg, reg, Operand(mask)); |  1491     srl(dst, src, shift); | 
 |  1492     if (shift + size != 32) { | 
 |  1493       And(dst, dst, Operand(mask)); | 
 |  1494     } | 
 |  1495   } | 
 |  1496  | 
 |  1497   template<typename Field> | 
 |  1498   void DecodeField(Register reg) { | 
 |  1499     DecodeField<Field>(reg, reg); | 
|  1492   } |  1500   } | 
|  1493  |  1501  | 
|  1494   // Generates function and stub prologue code. |  1502   // Generates function and stub prologue code. | 
|  1495   void StubPrologue(); |  1503   void StubPrologue(); | 
|  1496   void Prologue(bool code_pre_aging); |  1504   void Prologue(bool code_pre_aging); | 
|  1497  |  1505  | 
|  1498   // Activation support. |  1506   // Activation support. | 
|  1499   void EnterFrame(StackFrame::Type type); |  1507   void EnterFrame(StackFrame::Type type); | 
|  1500   void LeaveFrame(StackFrame::Type type); |  1508   void LeaveFrame(StackFrame::Type type); | 
|  1501  |  1509  | 
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1652 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |  1660 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 
|  1653 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |  1661 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 
|  1654 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |  1662 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 
|  1655 #else |  1663 #else | 
|  1656 #define ACCESS_MASM(masm) masm-> |  1664 #define ACCESS_MASM(masm) masm-> | 
|  1657 #endif |  1665 #endif | 
|  1658  |  1666  | 
|  1659 } }  // namespace v8::internal |  1667 } }  // namespace v8::internal | 
|  1660  |  1668  | 
|  1661 #endif  // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |  1669 #endif  // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 
| OLD | NEW |