| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_ARM64_ASSEMBLER_ARM64_H_ | 5 #ifndef V8_ARM64_ASSEMBLER_ARM64_H_ |
| 6 #define V8_ARM64_ASSEMBLER_ARM64_H_ | 6 #define V8_ARM64_ASSEMBLER_ARM64_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 934 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 945 } | 945 } |
| 946 | 946 |
| 947 // Return the number of instructions generated from label to the | 947 // Return the number of instructions generated from label to the |
| 948 // current position. | 948 // current position. |
| 949 int InstructionsGeneratedSince(const Label* label) { | 949 int InstructionsGeneratedSince(const Label* label) { |
| 950 return SizeOfCodeGeneratedSince(label) / kInstructionSize; | 950 return SizeOfCodeGeneratedSince(label) / kInstructionSize; |
| 951 } | 951 } |
| 952 | 952 |
| 953 // Number of instructions generated for the return sequence in | 953 // Number of instructions generated for the return sequence in |
| 954 // FullCodeGenerator::EmitReturnSequence. | 954 // FullCodeGenerator::EmitReturnSequence. |
| 955 static const int kJSRetSequenceInstructions = 7; | 955 static const int kJSReturnSequenceInstructions = 7; |
| 956 static const int kJSReturnSequenceLength = |
| 957 kJSReturnSequenceInstructions * kInstructionSize; |
| 956 // Distance between start of patched return sequence and the emitted address | 958 // Distance between start of patched return sequence and the emitted address |
| 957 // to jump to. | 959 // to jump to. |
| 958 static const int kPatchReturnSequenceAddressOffset = 0; | 960 static const int kPatchReturnSequenceAddressOffset = 0; |
| 959 static const int kPatchDebugBreakSlotAddressOffset = 0; | 961 static const int kPatchDebugBreakSlotAddressOffset = 0; |
| 960 | 962 |
| 961 // Number of instructions necessary to be able to later patch it to a call. | 963 // Number of instructions necessary to be able to later patch it to a call. |
| 962 // See DebugCodegen::GenerateSlot() and | 964 // See DebugCodegen::GenerateSlot() and |
| 963 // BreakLocationIterator::SetDebugBreakAtSlot(). | 965 // BreakLocation::SetDebugBreakAtSlot(). |
| 964 static const int kDebugBreakSlotInstructions = 4; | 966 static const int kDebugBreakSlotInstructions = 4; |
| 965 static const int kDebugBreakSlotLength = | 967 static const int kDebugBreakSlotLength = |
| 966 kDebugBreakSlotInstructions * kInstructionSize; | 968 kDebugBreakSlotInstructions * kInstructionSize; |
| 967 | 969 |
| 968 static const int kPatchDebugBreakSlotReturnOffset = 2 * kInstructionSize; | 970 static const int kPatchDebugBreakSlotReturnOffset = 2 * kInstructionSize; |
| 969 | 971 |
| 970 // Prevent contant pool emission until EndBlockConstPool is called. | 972 // Prevent contant pool emission until EndBlockConstPool is called. |
| 971 // Call to this function can be nested but must be followed by an equal | 973 // Call to this function can be nested but must be followed by an equal |
| 972 // number of call to EndBlockConstpool. | 974 // number of call to EndBlockConstpool. |
| 973 void StartBlockConstPool(); | 975 void StartBlockConstPool(); |
| (...skipping 1331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2305 class EnsureSpace BASE_EMBEDDED { | 2307 class EnsureSpace BASE_EMBEDDED { |
| 2306 public: | 2308 public: |
| 2307 explicit EnsureSpace(Assembler* assembler) { | 2309 explicit EnsureSpace(Assembler* assembler) { |
| 2308 assembler->CheckBufferSpace(); | 2310 assembler->CheckBufferSpace(); |
| 2309 } | 2311 } |
| 2310 }; | 2312 }; |
| 2311 | 2313 |
| 2312 } } // namespace v8::internal | 2314 } } // namespace v8::internal |
| 2313 | 2315 |
| 2314 #endif // V8_ARM64_ASSEMBLER_ARM64_H_ | 2316 #endif // V8_ARM64_ASSEMBLER_ARM64_H_ |
| OLD | NEW |