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 577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
588 Label* gc_required, | 588 Label* gc_required, |
589 TaggingMode tagging_mode = TAG_RESULT, | 589 TaggingMode tagging_mode = TAG_RESULT, |
590 MutableMode mode = IMMUTABLE); | 590 MutableMode mode = IMMUTABLE); |
591 | 591 |
592 void AllocateHeapNumberWithValue(Register result, | 592 void AllocateHeapNumberWithValue(Register result, |
593 FPURegister value, | 593 FPURegister value, |
594 Register scratch1, | 594 Register scratch1, |
595 Register scratch2, | 595 Register scratch2, |
596 Label* gc_required); | 596 Label* gc_required); |
597 | 597 |
| 598 // Allocate and initialize a JSValue wrapper with the specified {constructor} |
| 599 // and {value}. |
| 600 void AllocateJSValue(Register result, Register constructor, Register value, |
| 601 Register scratch1, Register scratch2, |
| 602 Label* gc_required); |
| 603 |
598 // --------------------------------------------------------------------------- | 604 // --------------------------------------------------------------------------- |
599 // Instruction macros. | 605 // Instruction macros. |
600 | 606 |
601 #define DEFINE_INSTRUCTION(instr) \ | 607 #define DEFINE_INSTRUCTION(instr) \ |
602 void instr(Register rd, Register rs, const Operand& rt); \ | 608 void instr(Register rd, Register rs, const Operand& rt); \ |
603 void instr(Register rd, Register rs, Register rt) { \ | 609 void instr(Register rd, Register rs, Register rt) { \ |
604 instr(rd, rs, Operand(rt)); \ | 610 instr(rd, rs, Operand(rt)); \ |
605 } \ | 611 } \ |
606 void instr(Register rs, Register rt, int32_t j) { \ | 612 void instr(Register rs, Register rt, int32_t j) { \ |
607 instr(rs, rt, Operand(j)); \ | 613 instr(rs, rt, Operand(j)); \ |
(...skipping 1295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1903 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1909 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1904 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1910 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1905 #else | 1911 #else |
1906 #define ACCESS_MASM(masm) masm-> | 1912 #define ACCESS_MASM(masm) masm-> |
1907 #endif | 1913 #endif |
1908 | 1914 |
1909 } // namespace internal | 1915 } // namespace internal |
1910 } // namespace v8 | 1916 } // namespace v8 |
1911 | 1917 |
1912 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1918 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |