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. |
Rodolph Perfetta
2013/09/13 14:14:40
nit: why don't you use kRegister_r7_Code like in a
rmcilroy_google
2013/09/13 14:52:58
Done (and done for cp and kRootRegister below).
| |
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 1420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1479 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1480 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1480 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1481 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1481 #else | 1482 #else |
1482 #define ACCESS_MASM(masm) masm-> | 1483 #define ACCESS_MASM(masm) masm-> |
1483 #endif | 1484 #endif |
1484 | 1485 |
1485 | 1486 |
1486 } } // namespace v8::internal | 1487 } } // namespace v8::internal |
1487 | 1488 |
1488 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 1489 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
OLD | NEW |