OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 // clobbered if it the same as the holder register. The function | 169 // clobbered if it the same as the holder register. The function |
170 // returns a register containing the holder - either object_reg or | 170 // returns a register containing the holder - either object_reg or |
171 // holder_reg. | 171 // holder_reg. |
172 Register CheckMaps(JSObject* object, Register object_reg, | 172 Register CheckMaps(JSObject* object, Register object_reg, |
173 JSObject* holder, Register holder_reg, | 173 JSObject* holder, Register holder_reg, |
174 Register scratch, Label* miss); | 174 Register scratch, Label* miss); |
175 | 175 |
176 // Generate code for checking access rights - used for security checks | 176 // Generate code for checking access rights - used for security checks |
177 // on access to global objects across environments. The holder register | 177 // on access to global objects across environments. The holder register |
178 // is left untouched, whereas both scratch registers are clobbered. | 178 // is left untouched, whereas both scratch registers are clobbered. |
179 void CheckAccessGlobal(Register holder_reg, Register scratch, Label* miss); | 179 void CheckAccessGlobalProxy(Register holder_reg, |
| 180 Register scratch, |
| 181 Label* miss); |
180 | 182 |
181 | 183 |
182 // --------------------------------------------------------------------------- | 184 // --------------------------------------------------------------------------- |
183 // Support functions. | 185 // Support functions. |
184 | 186 |
185 // Generates code for reporting that an illegal operation has | 187 // Generates code for reporting that an illegal operation has |
186 // occurred. | 188 // occurred. |
187 void IllegalOperation(int num_arguments); | 189 void IllegalOperation(int num_arguments); |
188 | 190 |
189 | 191 |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 // Generate a MemOperand for loading a field from an object. | 278 // Generate a MemOperand for loading a field from an object. |
277 static inline MemOperand FieldMemOperand(Register object, int offset) { | 279 static inline MemOperand FieldMemOperand(Register object, int offset) { |
278 return MemOperand(object, offset - kHeapObjectTag); | 280 return MemOperand(object, offset - kHeapObjectTag); |
279 } | 281 } |
280 | 282 |
281 | 283 |
282 | 284 |
283 } } // namespace v8::internal | 285 } } // namespace v8::internal |
284 | 286 |
285 #endif // V8_MACRO_ASSEMBLER_ARM_H_ | 287 #endif // V8_MACRO_ASSEMBLER_ARM_H_ |
OLD | NEW |