| 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 = { 7 }; // Constant pool pointer. |
| 49 const Register cp = { 8 }; // JavaScript context pointer. |
| 49 const Register kRootRegister = { 10 }; // Roots array pointer. | 50 const Register kRootRegister = { 10 }; // 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 |
| (...skipping 1391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1450 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1451 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
| 1451 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1452 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
| 1452 #else | 1453 #else |
| 1453 #define ACCESS_MASM(masm) masm-> | 1454 #define ACCESS_MASM(masm) masm-> |
| 1454 #endif | 1455 #endif |
| 1455 | 1456 |
| 1456 | 1457 |
| 1457 } } // namespace v8::internal | 1458 } } // namespace v8::internal |
| 1458 | 1459 |
| 1459 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 1460 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
| OLD | NEW |