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/mips64/assembler-mips64.h" | 10 #include "src/mips64/assembler-mips64.h" |
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
520 SaveFPRegsMode save_fp, | 520 SaveFPRegsMode save_fp, |
521 RememberedSetAction remembered_set_action = EMIT_REMEMBERED_SET, | 521 RememberedSetAction remembered_set_action = EMIT_REMEMBERED_SET, |
522 SmiCheck smi_check = INLINE_SMI_CHECK, | 522 SmiCheck smi_check = INLINE_SMI_CHECK, |
523 PointersToHereCheck pointers_to_here_check_for_value = | 523 PointersToHereCheck pointers_to_here_check_for_value = |
524 kPointersToHereMaybeInteresting); | 524 kPointersToHereMaybeInteresting); |
525 | 525 |
526 | 526 |
527 // --------------------------------------------------------------------------- | 527 // --------------------------------------------------------------------------- |
528 // Inline caching support. | 528 // Inline caching support. |
529 | 529 |
530 // Generate code for checking access rights - used for security checks | |
531 // on access to global objects across environments. The holder register | |
532 // is left untouched, whereas both scratch registers are clobbered. | |
533 void CheckAccessGlobalProxy(Register holder_reg, | |
534 Register scratch, | |
535 Label* miss); | |
536 | |
537 void GetNumberHash(Register reg0, Register scratch); | 530 void GetNumberHash(Register reg0, Register scratch); |
538 | 531 |
539 inline void MarkCode(NopMarkerTypes type) { | 532 inline void MarkCode(NopMarkerTypes type) { |
540 nop(type); | 533 nop(type); |
541 } | 534 } |
542 | 535 |
543 // Check if the given instruction is a 'type' marker. | 536 // Check if the given instruction is a 'type' marker. |
544 // i.e. check if it is a sll zero_reg, zero_reg, <type> (referenced as | 537 // i.e. check if it is a sll zero_reg, zero_reg, <type> (referenced as |
545 // nop(type)). These instructions are generated to mark special location in | 538 // nop(type)). These instructions are generated to mark special location in |
546 // the code, like some special IC code. | 539 // the code, like some special IC code. |
(...skipping 1497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2044 dd(GetLabelFunction(index)); | 2037 dd(GetLabelFunction(index)); |
2045 } | 2038 } |
2046 } | 2039 } |
2047 | 2040 |
2048 #define ACCESS_MASM(masm) masm-> | 2041 #define ACCESS_MASM(masm) masm-> |
2049 | 2042 |
2050 } // namespace internal | 2043 } // namespace internal |
2051 } // namespace v8 | 2044 } // namespace v8 |
2052 | 2045 |
2053 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 2046 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |