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_MACRO_ASSEMBLER_ARM64_H_ | 5 #ifndef V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ |
6 #define V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ | 6 #define V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "src/bailout-reason.h" | 10 #include "src/bailout-reason.h" |
(...skipping 1266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1277 void PushStackHandler(); | 1277 void PushStackHandler(); |
1278 | 1278 |
1279 // Unlink the stack handler on top of the stack from the stack handler chain. | 1279 // Unlink the stack handler on top of the stack from the stack handler chain. |
1280 // Must preserve the result register. | 1280 // Must preserve the result register. |
1281 void PopStackHandler(); | 1281 void PopStackHandler(); |
1282 | 1282 |
1283 | 1283 |
1284 // --------------------------------------------------------------------------- | 1284 // --------------------------------------------------------------------------- |
1285 // Allocation support | 1285 // Allocation support |
1286 | 1286 |
1287 // Allocate an object in new space or old pointer space. The object_size is | 1287 // Allocate an object in new space or old space. The object_size is |
1288 // specified either in bytes or in words if the allocation flag SIZE_IN_WORDS | 1288 // specified either in bytes or in words if the allocation flag SIZE_IN_WORDS |
1289 // is passed. The allocated object is returned in result. | 1289 // is passed. The allocated object is returned in result. |
1290 // | 1290 // |
1291 // If the new space is exhausted control continues at the gc_required label. | 1291 // If the new space is exhausted control continues at the gc_required label. |
1292 // In this case, the result and scratch registers may still be clobbered. | 1292 // In this case, the result and scratch registers may still be clobbered. |
1293 // If flags includes TAG_OBJECT, the result is tagged as as a heap object. | 1293 // If flags includes TAG_OBJECT, the result is tagged as as a heap object. |
1294 void Allocate(Register object_size, | 1294 void Allocate(Register object_size, |
1295 Register result, | 1295 Register result, |
1296 Register scratch1, | 1296 Register scratch1, |
1297 Register scratch2, | 1297 Register scratch2, |
(...skipping 1000 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2298 #error "Unsupported option" | 2298 #error "Unsupported option" |
2299 #define CODE_COVERAGE_STRINGIFY(x) #x | 2299 #define CODE_COVERAGE_STRINGIFY(x) #x |
2300 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 2300 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
2301 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 2301 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
2302 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 2302 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
2303 #else | 2303 #else |
2304 #define ACCESS_MASM(masm) masm-> | 2304 #define ACCESS_MASM(masm) masm-> |
2305 #endif | 2305 #endif |
2306 | 2306 |
2307 #endif // V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ | 2307 #endif // V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ |
OLD | NEW |