34 #include <sys/syscall.h>
40 #if V8_TARGET_ARCH_ARM
54 bool CPU::SupportsCrankshaft() {
59 void CPU::FlushICache(
void* start,
size_t size) {
65 #if defined(USE_SIMULATOR)
71 Simulator::FlushICache(Isolate::Current()->simulator_i_cache(), start, size);
73 msync(start, size, MS_SYNC | MS_INVALIDATE_ICACHE);
81 register uint32_t beg
asm(
"a1") = reinterpret_cast<uint32_t>(start);
82 register uint32_t end
asm(
"a2") =
83 reinterpret_cast<uint32_t>(start) +
size;
84 register uint32_t flg
asm(
"a3") = 0;
85 #if defined (__arm__) && !defined(__thumb__)
87 register uint32_t scno
asm(
"r7") = __ARM_NR_cacheflush;
91 :
"0" (beg),
"r" (end),
"r" (flg),
"r" (scno));
95 "@ Enter ARM Mode \n\t"
104 "@ Enter THUMB Mode\n\t"
110 :
"0" (beg),
"r" (end),
"r" (flg),
"r" (__ARM_NR_cacheflush)
118 #endif // V8_TARGET_ARCH_ARM
static bool IsSupported(CpuFeature f)
enable upcoming ES6 features enable harmony block scoping enable harmony enable harmony proxies enable harmony generators enable harmony numeric enable harmony string enable harmony math functions harmony_scoping harmony_symbols harmony_collections harmony_iteration harmony_strings harmony_scoping harmony_maths tracks arrays with only smi values Optimize object size