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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 | 101 |
102 // ----------------------------------------------------------------------------- | 102 // ----------------------------------------------------------------------------- |
103 // Static helper functions. | 103 // Static helper functions. |
104 | 104 |
105 inline MemOperand ContextOperand(Register context, int index) { | 105 inline MemOperand ContextOperand(Register context, int index) { |
106 return MemOperand(context, Context::SlotOffset(index)); | 106 return MemOperand(context, Context::SlotOffset(index)); |
107 } | 107 } |
108 | 108 |
109 | 109 |
110 inline MemOperand GlobalObjectOperand() { | 110 inline MemOperand GlobalObjectOperand() { |
111 return ContextOperand(cp, Context::GLOBAL_INDEX); | 111 return ContextOperand(cp, Context::GLOBAL_OBJECT_INDEX); |
112 } | 112 } |
113 | 113 |
114 | 114 |
115 // Generate a MemOperand for loading a field from an object. | 115 // Generate a MemOperand for loading a field from an object. |
116 inline MemOperand FieldMemOperand(Register object, int offset) { | 116 inline MemOperand FieldMemOperand(Register object, int offset) { |
117 return MemOperand(object, offset - kHeapObjectTag); | 117 return MemOperand(object, offset - kHeapObjectTag); |
118 } | 118 } |
119 | 119 |
120 | 120 |
121 // Generate a MemOperand for storing arguments 5..N on the stack | 121 // Generate a MemOperand for storing arguments 5..N on the stack |
(...skipping 1413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1535 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 1535 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
1536 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1536 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1537 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1537 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1538 #else | 1538 #else |
1539 #define ACCESS_MASM(masm) masm-> | 1539 #define ACCESS_MASM(masm) masm-> |
1540 #endif | 1540 #endif |
1541 | 1541 |
1542 } } // namespace v8::internal | 1542 } } // namespace v8::internal |
1543 | 1543 |
1544 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1544 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |