| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 1f996b7 commit 0524c7a
6 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3431,15 +3431,15 @@ bool Isolate::Init(ReadOnlyDeserializer* read_only_deserializer, | |||
| 3431 | 3431 | ||
| 3432 | 3432 | setup_delegate_->SetupBuiltins(this); | |
| 3433 | 3433 | ||
| 3434 | - #if !defined(V8_TARGET_ARCH_ARM) && !defined(V8_TARGET_ARCH_S390X) | ||
| 3434 | + #ifndef V8_TARGET_ARCH_ARM | ||
| 3435 | 3435 | // Store the interpreter entry trampoline on the root list. It is used as a | |
| 3436 | 3436 | // template for further copies that may later be created to help profile | |
| 3437 | 3437 | // interpreted code. | |
| 3438 | - // We currently cannot do this on above architectures due to | ||
| 3439 | - // RELATIVE_CODE_TARGETs assuming that all possible Code targets may be | ||
| 3440 | - // addressed with an int24 offset, effectively limiting code space size to | ||
| 3441 | - // 32MB. We can guarantee this at mksnapshot-time, but not at runtime. See | ||
| 3442 | - // also: https://crbug.com/v8/8713. | ||
| 3438 | + // We currently cannot do this on arm due to RELATIVE_CODE_TARGETs | ||
| 3439 | + // assuming that all possible Code targets may be addressed with an int24 | ||
| 3440 | + // offset, effectively limiting code space size to 32MB. We can guarantee | ||
| 3441 | + // this at mksnapshot-time, but not at runtime. | ||
| 3442 | + // See also: https://crbug.com/v8/8713. | ||
| 3443 | 3443 | heap_.SetInterpreterEntryTrampolineForProfiling( | |
| 3444 | 3444 | heap_.builtin(Builtins::kInterpreterEntryTrampoline)); | |
| 3445 | 3445 | #endif | |
@@ -3514,11 +3514,11 @@ bool Isolate::Init(ReadOnlyDeserializer* read_only_deserializer, | |||
| 3514 | 3514 | } | |
| 3515 | 3515 | #endif // DEBUG | |
| 3516 | 3516 | ||
| 3517 | - #if !defined(V8_TARGET_ARCH_ARM) && !defined(V8_TARGET_ARCH_S390X) | ||
| 3517 | + #ifndef V8_TARGET_ARCH_ARM | ||
| 3518 | 3518 | // The IET for profiling should always be a full on-heap Code object. | |
| 3519 | 3519 | DCHECK(!Code::cast(heap_.interpreter_entry_trampoline_for_profiling()) | |
| 3520 | 3520 | .is_off_heap_trampoline()); | |
| 3521 | - #endif // !V8_TARGET_ARCH_ARM && !V8_TARGET_ARCH_S390X | ||
| 3521 | + #endif // V8_TARGET_ARCH_ARM | ||
| 3522 | 3522 | ||
| 3523 | 3523 | if (FLAG_print_builtin_code) builtins()->PrintBuiltinCode(); | |
| 3524 | 3524 | if (FLAG_print_builtin_size) builtins()->PrintBuiltinSize(); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1625,8 +1625,8 @@ DEFINE_BOOL(vtune_prof_annotate_wasm, false, | |||
| 1625 | 1625 | ||
| 1626 | 1626 | DEFINE_BOOL(win64_unwinding_info, true, "Enable unwinding info for Windows/x64") | |
| 1627 | 1627 | ||
| 1628 | - #if defined(V8_TARGET_ARCH_ARM) || defined(V8_TARGET_ARCH_S390X) | ||
| 1629 | - // Unsupported on above architectures. See https://crbug.com/v8/8713. | ||
| 1628 | + #ifdef V8_TARGET_ARCH_ARM | ||
| 1629 | + // Unsupported on arm. See https://crbug.com/v8/8713. | ||
| 1630 | 1630 | DEFINE_BOOL_READONLY( | |
| 1631 | 1631 | interpreted_frames_native_stack, false, | |
| 1632 | 1632 | "Show interpreted frames on the native stack (useful for external " | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -190,12 +190,12 @@ void CodeSerializer::SerializeObject(HeapObject obj) { | |||
| 190 | 190 | // bytecode array stored within the InterpreterData, which is the important | |
| 191 | 191 | // information. On deserialization we'll create our code objects again, if | |
| 192 | 192 | // --interpreted-frames-native-stack is on. See v8:9122 for more context | |
| 193 | - #if !defined(V8_TARGET_ARCH_ARM) && !defined(V8_TARGET_ARCH_S390X) | ||
| 193 | + #ifndef V8_TARGET_ARCH_ARM | ||
| 194 | 194 | if (V8_UNLIKELY(FLAG_interpreted_frames_native_stack) && | |
| 195 | 195 | obj.IsInterpreterData()) { | |
| 196 | 196 | obj = InterpreterData::cast(obj).bytecode_array(); | |
| 197 | 197 | } | |
| 198 | - #endif // !V8_TARGET_ARCH_ARM && !V8_TARGET_ARCH_S390X | ||
| 198 | + #endif // V8_TARGET_ARCH_ARM | ||
| 199 | 199 | ||
| 200 | 200 | // Past this point we should not see any (context-specific) maps anymore. | |
| 201 | 201 | CHECK(!obj.IsMap()); | |
@@ -215,7 +215,7 @@ void CodeSerializer::SerializeGeneric(HeapObject heap_object) { | |||
| 215 | 215 | serializer.Serialize(); | |
| 216 | 216 | } | |
| 217 | 217 | ||
| 218 | - #if !defined(V8_TARGET_ARCH_ARM) && !defined(V8_TARGET_ARCH_S390X) | ||
| 218 | + #ifndef V8_TARGET_ARCH_ARM | ||
| 219 | 219 | // NOTE(mmarchini): when FLAG_interpreted_frames_native_stack is on, we want to | |
| 220 | 220 | // create duplicates of InterpreterEntryTrampoline for the deserialized | |
| 221 | 221 | // functions, otherwise we'll call the builtin IET for those functions (which | |
@@ -255,7 +255,7 @@ void CreateInterpreterDataForDeserializedCode(Isolate* isolate, | |||
| 255 | 255 | column_num)); | |
| 256 | 256 | } | |
| 257 | 257 | } | |
| 258 | - #endif // !V8_TARGET_ARCH_ARM && !V8_TARGET_ARCH_S390X | ||
| 258 | + #endif // V8_TARGET_ARCH_ARM | ||
| 259 | 259 | ||
| 260 | 260 | MaybeHandle<SharedFunctionInfo> CodeSerializer::Deserialize( | |
| 261 | 261 | Isolate* isolate, ScriptData* cached_data, Handle<String> source, | |
@@ -301,11 +301,11 @@ MaybeHandle<SharedFunctionInfo> CodeSerializer::Deserialize( | |||
| 301 | 301 | isolate->is_profiling() || | |
| 302 | 302 | isolate->code_event_dispatcher()->IsListeningToCodeEvents(); | |
| 303 | 303 | ||
| 304 | - #if !defined(V8_TARGET_ARCH_ARM) && !defined(V8_TARGET_ARCH_S390X) | ||
| 304 | + #ifndef V8_TARGET_ARCH_ARM | ||
| 305 | 305 | if (V8_UNLIKELY(FLAG_interpreted_frames_native_stack)) | |
| 306 | 306 | CreateInterpreterDataForDeserializedCode(isolate, result, | |
| 307 | 307 | log_code_creation); | |
| 308 | - #endif // !V8_TARGET_ARCH_ARM && !V8_TARGET_ARCH_S390X | ||
| 308 | + #endif // V8_TARGET_ARCH_ARM | ||
| 309 | 309 | ||
| 310 | 310 | bool needs_source_positions = isolate->NeedsSourcePositionsForProfiling(); | |
| 311 | 311 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5029,7 +5029,7 @@ TEST(InterpreterGenerators) { | |||
| 5029 | 5029 | } | |
| 5030 | 5030 | } | |
| 5031 | 5031 | ||
| 5032 | - #if !defined(V8_TARGET_ARCH_ARM) && !defined(V8_TARGET_ARCH_S390X) | ||
| 5032 | + #ifndef V8_TARGET_ARCH_ARM | ||
| 5033 | 5033 | TEST(InterpreterWithNativeStack) { | |
| 5034 | 5034 | i::FLAG_interpreted_frames_native_stack = true; | |
| 5035 | 5035 | ||
@@ -5051,7 +5051,7 @@ TEST(InterpreterWithNativeStack) { | |||
| 5051 | 5051 | CHECK(code.is_interpreter_trampoline_builtin()); | |
| 5052 | 5052 | CHECK_NE(code.address(), interpreter_entry_trampoline->address()); | |
| 5053 | 5053 | } | |
| 5054 | - #endif // !V8_TARGET_ARCH_ARM && !V8_TARGET_ARCH_S390X | ||
| 5054 | + #endif // V8_TARGET_ARCH_ARM | ||
| 5055 | 5055 | ||
| 5056 | 5056 | TEST(InterpreterGetBytecodeHandler) { | |
| 5057 | 5057 | HandleAndZoneScope handles; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -565,7 +565,7 @@ UNINITIALIZED_TEST(LogAll) { | |||
| 565 | 565 | isolate->Dispose(); | |
| 566 | 566 | } | |
| 567 | 567 | ||
| 568 | - #if !defined(V8_TARGET_ARCH_ARM) && !defined(V8_TARGET_ARCH_S390X) | ||
| 568 | + #ifndef V8_TARGET_ARCH_ARM | ||
| 569 | 569 | UNINITIALIZED_TEST(LogInterpretedFramesNativeStack) { | |
| 570 | 570 | SETUP_FLAGS(); | |
| 571 | 571 | i::FLAG_interpreted_frames_native_stack = true; | |
@@ -650,7 +650,7 @@ UNINITIALIZED_TEST(LogInterpretedFramesNativeStackWithSerialization) { | |||
| 650 | 650 | } while (!has_cache); | |
| 651 | 651 | delete cache; | |
| 652 | 652 | } | |
| 653 | - #endif // !V8_TARGET_ARCH_ARM && !V8_TARGET_ARCH_S390X | ||
| 653 | + #endif // V8_TARGET_ARCH_ARM | ||
| 654 | 654 | ||
| 655 | 655 | UNINITIALIZED_TEST(ExternalCodeEventListener) { | |
| 656 | 656 | i::FLAG_log = false; | |
@@ -753,7 +753,7 @@ UNINITIALIZED_TEST(ExternalCodeEventListenerInnerFunctions) { | |||
| 753 | 753 | isolate2->Dispose(); | |
| 754 | 754 | } | |
| 755 | 755 | ||
| 756 | - #if !defined(V8_TARGET_ARCH_ARM) && !defined(V8_TARGET_ARCH_S390X) | ||
| 756 | + #ifndef V8_TARGET_ARCH_ARM | ||
| 757 | 757 | UNINITIALIZED_TEST(ExternalCodeEventListenerWithInterpretedFramesNativeStack) { | |
| 758 | 758 | i::FLAG_log = false; | |
| 759 | 759 | i::FLAG_prof = false; | |
@@ -803,7 +803,7 @@ UNINITIALIZED_TEST(ExternalCodeEventListenerWithInterpretedFramesNativeStack) { | |||
| 803 | 803 | } | |
| 804 | 804 | isolate->Dispose(); | |
| 805 | 805 | } | |
| 806 | - #endif // !V8_TARGET_ARCH_ARM && !V8_TARGET_ARCH_S390X | ||
| 806 | + #endif // V8_TARGET_ARCH_ARM | ||
| 807 | 807 | ||
| 808 | 808 | UNINITIALIZED_TEST(TraceMaps) { | |
| 809 | 809 | SETUP_FLAGS(); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1672,7 +1672,7 @@ void TestCodeSerializerOnePlusOneImpl(bool verify_builtins_count = true) { | |||
| 1672 | 1672 | TEST(CodeSerializerOnePlusOne) { TestCodeSerializerOnePlusOneImpl(); } | |
| 1673 | 1673 | ||
| 1674 | 1674 | // See bug v8:9122 | |
| 1675 | - #if !defined(V8_TARGET_ARCH_ARM) && !defined(V8_TARGET_ARCH_S390X) | ||
| 1675 | + #ifndef V8_TARGET_ARCH_ARM | ||
| 1676 | 1676 | TEST(CodeSerializerOnePlusOneWithInterpretedFramesNativeStack) { | |
| 1677 | 1677 | FLAG_interpreted_frames_native_stack = true; | |
| 1678 | 1678 | // We pass false because this test will create IET copies (which are | |
| Back | FazBrowse Home | New Git URL |
0 commit comments