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_X87_MACRO_ASSEMBLER_X87_H_ | 5 #ifndef V8_X87_MACRO_ASSEMBLER_X87_H_ |
6 #define V8_X87_MACRO_ASSEMBLER_X87_H_ | 6 #define V8_X87_MACRO_ASSEMBLER_X87_H_ |
7 | 7 |
8 #include "src/assembler.h" | 8 #include "src/assembler.h" |
9 #include "src/bailout-reason.h" | 9 #include "src/bailout-reason.h" |
10 #include "src/frames.h" | 10 #include "src/frames.h" |
(...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
658 void AllocateTwoByteSlicedString(Register result, Register scratch1, | 658 void AllocateTwoByteSlicedString(Register result, Register scratch1, |
659 Register scratch2, Label* gc_required); | 659 Register scratch2, Label* gc_required); |
660 void AllocateOneByteSlicedString(Register result, Register scratch1, | 660 void AllocateOneByteSlicedString(Register result, Register scratch1, |
661 Register scratch2, Label* gc_required); | 661 Register scratch2, Label* gc_required); |
662 | 662 |
663 // Allocate and initialize a JSValue wrapper with the specified {constructor} | 663 // Allocate and initialize a JSValue wrapper with the specified {constructor} |
664 // and {value}. | 664 // and {value}. |
665 void AllocateJSValue(Register result, Register constructor, Register value, | 665 void AllocateJSValue(Register result, Register constructor, Register value, |
666 Register scratch, Label* gc_required); | 666 Register scratch, Label* gc_required); |
667 | 667 |
668 // Copy memory, byte-by-byte, from source to destination. Not optimized for | |
669 // long or aligned copies. | |
670 // The contents of index and scratch are destroyed. | |
671 void CopyBytes(Register source, Register destination, Register length, | |
672 Register scratch); | |
673 | |
674 // Initialize fields with filler values. Fields starting at |current_address| | 668 // Initialize fields with filler values. Fields starting at |current_address| |
675 // not including |end_address| are overwritten with the value in |filler|. At | 669 // not including |end_address| are overwritten with the value in |filler|. At |
676 // the end the loop, |current_address| takes the value of |end_address|. | 670 // the end the loop, |current_address| takes the value of |end_address|. |
677 void InitializeFieldsWithFiller(Register current_address, | 671 void InitializeFieldsWithFiller(Register current_address, |
678 Register end_address, Register filler); | 672 Register end_address, Register filler); |
679 | 673 |
680 // --------------------------------------------------------------------------- | 674 // --------------------------------------------------------------------------- |
681 // Support functions. | 675 // Support functions. |
682 | 676 |
683 // Check a boolean-bit of a Smi field. | 677 // Check a boolean-bit of a Smi field. |
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1041 inline Operand NativeContextOperand() { | 1035 inline Operand NativeContextOperand() { |
1042 return ContextOperand(esi, Context::NATIVE_CONTEXT_INDEX); | 1036 return ContextOperand(esi, Context::NATIVE_CONTEXT_INDEX); |
1043 } | 1037 } |
1044 | 1038 |
1045 #define ACCESS_MASM(masm) masm-> | 1039 #define ACCESS_MASM(masm) masm-> |
1046 | 1040 |
1047 } // namespace internal | 1041 } // namespace internal |
1048 } // namespace v8 | 1042 } // namespace v8 |
1049 | 1043 |
1050 #endif // V8_X87_MACRO_ASSEMBLER_X87_H_ | 1044 #endif // V8_X87_MACRO_ASSEMBLER_X87_H_ |
OLD | NEW |