OLD | NEW |
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 // Push a new try handler and link into try handler chain. The return | 237 // Push a new try handler and link into try handler chain. The return |
238 // address must be pushed before calling this helper. | 238 // address must be pushed before calling this helper. |
239 void PushTryHandler(CodeLocation try_location, HandlerType type); | 239 void PushTryHandler(CodeLocation try_location, HandlerType type); |
240 | 240 |
241 // Unlink the stack handler on top of the stack from the try handler chain. | 241 // Unlink the stack handler on top of the stack from the try handler chain. |
242 void PopTryHandler(); | 242 void PopTryHandler(); |
243 | 243 |
244 // --------------------------------------------------------------------------- | 244 // --------------------------------------------------------------------------- |
245 // Inline caching support | 245 // Inline caching support |
246 | 246 |
247 // Generates code that verifies that the maps of objects in the | |
248 // prototype chain of object hasn't changed since the code was | |
249 // generated and branches to the miss label if any map has. If | |
250 // necessary the function also generates code for security check | |
251 // in case of global object holders. The scratch and holder | |
252 // registers are always clobbered, but the object register is only | |
253 // clobbered if it the same as the holder register. The function | |
254 // returns a register containing the holder - either object_reg or | |
255 // holder_reg. | |
256 // The function can optionally (when save_at_depth != | |
257 // kInvalidProtoDepth) save the object at the given depth by moving | |
258 // it to [esp + kPointerSize]. | |
259 Register CheckMaps(JSObject* object, Register object_reg, | |
260 JSObject* holder, Register holder_reg, | |
261 Register scratch, | |
262 int save_at_depth, | |
263 Label* miss); | |
264 | |
265 // Generate code for checking access rights - used for security checks | 247 // Generate code for checking access rights - used for security checks |
266 // on access to global objects across environments. The holder register | 248 // on access to global objects across environments. The holder register |
267 // is left untouched, but the scratch register is clobbered. | 249 // is left untouched, but the scratch register is clobbered. |
268 void CheckAccessGlobalProxy(Register holder_reg, | 250 void CheckAccessGlobalProxy(Register holder_reg, |
269 Register scratch, | 251 Register scratch, |
270 Label* miss); | 252 Label* miss); |
271 | 253 |
272 | 254 |
273 // --------------------------------------------------------------------------- | 255 // --------------------------------------------------------------------------- |
274 // Allocation support | 256 // Allocation support |
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
619 } \ | 601 } \ |
620 masm-> | 602 masm-> |
621 #else | 603 #else |
622 #define ACCESS_MASM(masm) masm-> | 604 #define ACCESS_MASM(masm) masm-> |
623 #endif | 605 #endif |
624 | 606 |
625 | 607 |
626 } } // namespace v8::internal | 608 } } // namespace v8::internal |
627 | 609 |
628 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 610 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
OLD | NEW |