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 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 // On exit, r0 contains TOS (code slot). | 309 // On exit, r0 contains TOS (code slot). |
310 void PushTryHandler(CodeLocation try_location, HandlerType type); | 310 void PushTryHandler(CodeLocation try_location, HandlerType type); |
311 | 311 |
312 // Unlink the stack handler on top of the stack from the try handler chain. | 312 // Unlink the stack handler on top of the stack from the try handler chain. |
313 // Must preserve the result register. | 313 // Must preserve the result register. |
314 void PopTryHandler(); | 314 void PopTryHandler(); |
315 | 315 |
316 // --------------------------------------------------------------------------- | 316 // --------------------------------------------------------------------------- |
317 // Inline caching support | 317 // Inline caching support |
318 | 318 |
319 // Generates code that verifies that the maps of objects in the | |
320 // prototype chain of object hasn't changed since the code was | |
321 // generated and branches to the miss label if any map has. If | |
322 // necessary the function also generates code for security check | |
323 // in case of global object holders. The scratch and holder | |
324 // registers are always clobbered, but the object register is only | |
325 // clobbered if it the same as the holder register. The function | |
326 // returns a register containing the holder - either object_reg or | |
327 // holder_reg. | |
328 // The function can optionally (when save_at_depth != | |
329 // kInvalidProtoDepth) save the object at the given depth by moving | |
330 // it to [sp]. | |
331 Register CheckMaps(JSObject* object, Register object_reg, | |
332 JSObject* holder, Register holder_reg, | |
333 Register scratch, | |
334 int save_at_depth, | |
335 Label* miss); | |
336 | |
337 // Generate code for checking access rights - used for security checks | 319 // Generate code for checking access rights - used for security checks |
338 // on access to global objects across environments. The holder register | 320 // on access to global objects across environments. The holder register |
339 // is left untouched, whereas both scratch registers are clobbered. | 321 // is left untouched, whereas both scratch registers are clobbered. |
340 void CheckAccessGlobalProxy(Register holder_reg, | 322 void CheckAccessGlobalProxy(Register holder_reg, |
341 Register scratch, | 323 Register scratch, |
342 Label* miss); | 324 Label* miss); |
343 | 325 |
344 | 326 |
345 // --------------------------------------------------------------------------- | 327 // --------------------------------------------------------------------------- |
346 // Allocation support | 328 // Allocation support |
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
734 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 716 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
735 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 717 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
736 #else | 718 #else |
737 #define ACCESS_MASM(masm) masm-> | 719 #define ACCESS_MASM(masm) masm-> |
738 #endif | 720 #endif |
739 | 721 |
740 | 722 |
741 } } // namespace v8::internal | 723 } } // namespace v8::internal |
742 | 724 |
743 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 725 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
OLD | NEW |