| 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 27 matching lines...) Expand all Loading... |
| 38 // ---------------------------------------------------------------------------- | 38 // ---------------------------------------------------------------------------- |
| 39 // Static helper functions | 39 // Static helper functions |
| 40 | 40 |
| 41 // Generate a MemOperand for loading a field from an object. | 41 // Generate a MemOperand for loading a field from an object. |
| 42 inline MemOperand FieldMemOperand(Register object, int offset) { | 42 inline MemOperand FieldMemOperand(Register object, int offset) { |
| 43 return MemOperand(object, offset - kHeapObjectTag); | 43 return MemOperand(object, offset - kHeapObjectTag); |
| 44 } | 44 } |
| 45 | 45 |
| 46 | 46 |
| 47 // Give alias names to registers | 47 // Give alias names to registers |
| 48 const Register cp = { 8 }; // JavaScript context pointer | 48 const Register pp = { kRegister_r7_Code }; // Constant pool pointer. |
| 49 const Register kRootRegister = { 10 }; // Roots array pointer. | 49 const Register cp = { kRegister_r8_Code }; // JavaScript context pointer. |
| 50 const Register kRootRegister = { kRegister_r10_Code }; // Roots array pointer. |
| 50 | 51 |
| 51 // Flags used for AllocateHeapNumber | 52 // Flags used for AllocateHeapNumber |
| 52 enum TaggingMode { | 53 enum TaggingMode { |
| 53 // Tag the result. | 54 // Tag the result. |
| 54 TAG_RESULT, | 55 TAG_RESULT, |
| 55 // Don't tag | 56 // Don't tag |
| 56 DONT_TAG_RESULT | 57 DONT_TAG_RESULT |
| 57 }; | 58 }; |
| 58 | 59 |
| 59 | 60 |
| (...skipping 1439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1499 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1500 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
| 1500 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1501 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
| 1501 #else | 1502 #else |
| 1502 #define ACCESS_MASM(masm) masm-> | 1503 #define ACCESS_MASM(masm) masm-> |
| 1503 #endif | 1504 #endif |
| 1504 | 1505 |
| 1505 | 1506 |
| 1506 } } // namespace v8::internal | 1507 } } // namespace v8::internal |
| 1507 | 1508 |
| 1508 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 1509 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
| OLD | NEW |