OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
426 // --------------------------------------------------------------------------- | 426 // --------------------------------------------------------------------------- |
427 // Inline caching support | 427 // Inline caching support |
428 | 428 |
429 // Generate code for checking access rights - used for security checks | 429 // Generate code for checking access rights - used for security checks |
430 // on access to global objects across environments. The holder register | 430 // on access to global objects across environments. The holder register |
431 // is left untouched, whereas both scratch registers are clobbered. | 431 // is left untouched, whereas both scratch registers are clobbered. |
432 void CheckAccessGlobalProxy(Register holder_reg, | 432 void CheckAccessGlobalProxy(Register holder_reg, |
433 Register scratch, | 433 Register scratch, |
434 Label* miss); | 434 Label* miss); |
435 | 435 |
| 436 |
| 437 void LoadFromNumberDictionary(Label* miss, |
| 438 Register elements, |
| 439 Register key, |
| 440 Register result, |
| 441 Register t0, |
| 442 Register t1, |
| 443 Register t2); |
| 444 |
| 445 |
436 inline void MarkCode(NopMarkerTypes type) { | 446 inline void MarkCode(NopMarkerTypes type) { |
437 nop(type); | 447 nop(type); |
438 } | 448 } |
439 | 449 |
440 // Check if the given instruction is a 'type' marker. | 450 // Check if the given instruction is a 'type' marker. |
441 // ie. check if is is a mov r<type>, r<type> (referenced as nop(type)) | 451 // ie. check if is is a mov r<type>, r<type> (referenced as nop(type)) |
442 // These instructions are generated to mark special location in the code, | 452 // These instructions are generated to mark special location in the code, |
443 // like some special IC code. | 453 // like some special IC code. |
444 static inline bool IsMarkedCode(Instr instr, int type) { | 454 static inline bool IsMarkedCode(Instr instr, int type) { |
445 ASSERT((FIRST_IC_MARKER <= type) && (type < LAST_CODE_MARKER)); | 455 ASSERT((FIRST_IC_MARKER <= type) && (type < LAST_CODE_MARKER)); |
(...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1125 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1135 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1126 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1136 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1127 #else | 1137 #else |
1128 #define ACCESS_MASM(masm) masm-> | 1138 #define ACCESS_MASM(masm) masm-> |
1129 #endif | 1139 #endif |
1130 | 1140 |
1131 | 1141 |
1132 } } // namespace v8::internal | 1142 } } // namespace v8::internal |
1133 | 1143 |
1134 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 1144 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
OLD | NEW |