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 548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
559 Register heap_number_map, | 559 Register heap_number_map, |
560 Label* gc_required, | 560 Label* gc_required, |
561 TaggingMode tagging_mode = TAG_RESULT, | 561 TaggingMode tagging_mode = TAG_RESULT, |
562 MutableMode mode = IMMUTABLE); | 562 MutableMode mode = IMMUTABLE); |
563 void AllocateHeapNumberWithValue(Register result, | 563 void AllocateHeapNumberWithValue(Register result, |
564 FPURegister value, | 564 FPURegister value, |
565 Register scratch1, | 565 Register scratch1, |
566 Register scratch2, | 566 Register scratch2, |
567 Label* gc_required); | 567 Label* gc_required); |
568 | 568 |
| 569 // Allocate and initialize a JSValue wrapper with the specified {constructor} |
| 570 // and {value}. |
| 571 void AllocateJSValue(Register result, Register constructor, Register value, |
| 572 Register scratch1, Register scratch2, |
| 573 Label* gc_required); |
| 574 |
569 // --------------------------------------------------------------------------- | 575 // --------------------------------------------------------------------------- |
570 // Instruction macros. | 576 // Instruction macros. |
571 | 577 |
572 #define DEFINE_INSTRUCTION(instr) \ | 578 #define DEFINE_INSTRUCTION(instr) \ |
573 void instr(Register rd, Register rs, const Operand& rt); \ | 579 void instr(Register rd, Register rs, const Operand& rt); \ |
574 void instr(Register rd, Register rs, Register rt) { \ | 580 void instr(Register rd, Register rs, Register rt) { \ |
575 instr(rd, rs, Operand(rt)); \ | 581 instr(rd, rs, Operand(rt)); \ |
576 } \ | 582 } \ |
577 void instr(Register rs, Register rt, int32_t j) { \ | 583 void instr(Register rs, Register rt, int32_t j) { \ |
578 instr(rs, rt, Operand(j)); \ | 584 instr(rs, rt, Operand(j)); \ |
(...skipping 1172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1751 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1757 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1752 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1758 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1753 #else | 1759 #else |
1754 #define ACCESS_MASM(masm) masm-> | 1760 #define ACCESS_MASM(masm) masm-> |
1755 #endif | 1761 #endif |
1756 | 1762 |
1757 } // namespace internal | 1763 } // namespace internal |
1758 } // namespace v8 | 1764 } // namespace v8 |
1759 | 1765 |
1760 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1766 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |