| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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_CODE_STUBS_X87_H_ | 5 #ifndef V8_X87_CODE_STUBS_X87_H_ |
| 6 #define V8_X87_CODE_STUBS_X87_H_ | 6 #define V8_X87_CODE_STUBS_X87_H_ |
| 7 | 7 |
| 8 #include "src/macro-assembler.h" | 8 #include "src/macro-assembler.h" |
| 9 #include "src/ic-inl.h" | 9 #include "src/ic-inl.h" |
| 10 | 10 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 Major MajorKey() { return StoreBufferOverflow; } | 31 Major MajorKey() { return StoreBufferOverflow; } |
| 32 int MinorKey() { return 0; } | 32 int MinorKey() { return 0; } |
| 33 }; | 33 }; |
| 34 | 34 |
| 35 | 35 |
| 36 class StringHelper : public AllStatic { | 36 class StringHelper : public AllStatic { |
| 37 public: | 37 public: |
| 38 // Generate code for copying characters using the rep movs instruction. | 38 // Generate code for copying characters using the rep movs instruction. |
| 39 // Copies ecx characters from esi to edi. Copying of overlapping regions is | 39 // Copies ecx characters from esi to edi. Copying of overlapping regions is |
| 40 // not supported. | 40 // not supported. |
| 41 static void GenerateCopyCharactersREP(MacroAssembler* masm, | 41 static void GenerateCopyCharacters(MacroAssembler* masm, |
| 42 Register dest, // Must be edi. | 42 Register dest, |
| 43 Register src, // Must be esi. | 43 Register src, |
| 44 Register count, // Must be ecx. | 44 Register count, |
| 45 Register scratch, // Neither of above. | 45 Register scratch, |
| 46 bool ascii); | 46 String::Encoding encoding); |
| 47 | 47 |
| 48 // Generate string hash. | 48 // Generate string hash. |
| 49 static void GenerateHashInit(MacroAssembler* masm, | 49 static void GenerateHashInit(MacroAssembler* masm, |
| 50 Register hash, | 50 Register hash, |
| 51 Register character, | 51 Register character, |
| 52 Register scratch); | 52 Register scratch); |
| 53 static void GenerateHashAddCharacter(MacroAssembler* masm, | 53 static void GenerateHashAddCharacter(MacroAssembler* masm, |
| 54 Register hash, | 54 Register hash, |
| 55 Register character, | 55 Register character, |
| 56 Register scratch); | 56 Register scratch); |
| (...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 Register value_; | 404 Register value_; |
| 405 Register address_; | 405 Register address_; |
| 406 RememberedSetAction remembered_set_action_; | 406 RememberedSetAction remembered_set_action_; |
| 407 RegisterAllocation regs_; | 407 RegisterAllocation regs_; |
| 408 }; | 408 }; |
| 409 | 409 |
| 410 | 410 |
| 411 } } // namespace v8::internal | 411 } } // namespace v8::internal |
| 412 | 412 |
| 413 #endif // V8_X87_CODE_STUBS_X87_H_ | 413 #endif // V8_X87_CODE_STUBS_X87_H_ |
| OLD | NEW |