OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 5 #ifndef V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
6 #define V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 6 #define V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
7 | 7 |
8 #include "src/assembler.h" | 8 #include "src/assembler.h" |
9 #include "src/globals.h" | 9 #include "src/globals.h" |
10 #include "src/mips/assembler-mips.h" | 10 #include "src/mips/assembler-mips.h" |
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
488 SaveFPRegsMode save_fp, | 488 SaveFPRegsMode save_fp, |
489 RememberedSetAction remembered_set_action = EMIT_REMEMBERED_SET, | 489 RememberedSetAction remembered_set_action = EMIT_REMEMBERED_SET, |
490 SmiCheck smi_check = INLINE_SMI_CHECK, | 490 SmiCheck smi_check = INLINE_SMI_CHECK, |
491 PointersToHereCheck pointers_to_here_check_for_value = | 491 PointersToHereCheck pointers_to_here_check_for_value = |
492 kPointersToHereMaybeInteresting); | 492 kPointersToHereMaybeInteresting); |
493 | 493 |
494 | 494 |
495 // --------------------------------------------------------------------------- | 495 // --------------------------------------------------------------------------- |
496 // Inline caching support. | 496 // Inline caching support. |
497 | 497 |
498 // Generate code for checking access rights - used for security checks | |
499 // on access to global objects across environments. The holder register | |
500 // is left untouched, whereas both scratch registers are clobbered. | |
501 void CheckAccessGlobalProxy(Register holder_reg, | |
502 Register scratch, | |
503 Label* miss); | |
504 | |
505 void GetNumberHash(Register reg0, Register scratch); | 498 void GetNumberHash(Register reg0, Register scratch); |
506 | 499 |
507 inline void MarkCode(NopMarkerTypes type) { | 500 inline void MarkCode(NopMarkerTypes type) { |
508 nop(type); | 501 nop(type); |
509 } | 502 } |
510 | 503 |
511 // Check if the given instruction is a 'type' marker. | 504 // Check if the given instruction is a 'type' marker. |
512 // i.e. check if it is a sll zero_reg, zero_reg, <type> (referenced as | 505 // i.e. check if it is a sll zero_reg, zero_reg, <type> (referenced as |
513 // nop(type)). These instructions are generated to mark special location in | 506 // nop(type)). These instructions are generated to mark special location in |
514 // the code, like some special IC code. | 507 // the code, like some special IC code. |
(...skipping 1384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1899 dd(GetLabelFunction(index)); | 1892 dd(GetLabelFunction(index)); |
1900 } | 1893 } |
1901 } | 1894 } |
1902 | 1895 |
1903 #define ACCESS_MASM(masm) masm-> | 1896 #define ACCESS_MASM(masm) masm-> |
1904 | 1897 |
1905 } // namespace internal | 1898 } // namespace internal |
1906 } // namespace v8 | 1899 } // namespace v8 |
1907 | 1900 |
1908 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1901 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |