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 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/arm64/lithium-codegen-arm64.h" | 7 #include "src/arm64/lithium-codegen-arm64.h" |
8 #include "src/arm64/lithium-gap-resolver-arm64.h" | 8 #include "src/arm64/lithium-gap-resolver-arm64.h" |
9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
10 #include "src/code-factory.h" | 10 #include "src/code-factory.h" |
(...skipping 1040 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1051 __ Pop(x2, x1, x0); | 1051 __ Pop(x2, x1, x0); |
1052 } | 1052 } |
1053 | 1053 |
1054 if (info()->ShouldTrapOnDeopt()) { | 1054 if (info()->ShouldTrapOnDeopt()) { |
1055 Label dont_trap; | 1055 Label dont_trap; |
1056 __ B(&dont_trap, InvertBranchType(branch_type), reg, bit); | 1056 __ B(&dont_trap, InvertBranchType(branch_type), reg, bit); |
1057 __ Debug("trap_on_deopt", __LINE__, BREAK); | 1057 __ Debug("trap_on_deopt", __LINE__, BREAK); |
1058 __ Bind(&dont_trap); | 1058 __ Bind(&dont_trap); |
1059 } | 1059 } |
1060 | 1060 |
1061 Deoptimizer::DeoptInfo deopt_info(instr->hydrogen_value()->position().raw(), | 1061 Deoptimizer::DeoptInfo deopt_info(instr->hydrogen_value()->position(), |
1062 instr->Mnemonic(), deopt_reason); | 1062 instr->Mnemonic(), deopt_reason); |
1063 DCHECK(info()->IsStub() || frame_is_built_); | 1063 DCHECK(info()->IsStub() || frame_is_built_); |
1064 // Go through jump table if we need to build frame, or restore caller doubles. | 1064 // Go through jump table if we need to build frame, or restore caller doubles. |
1065 if (branch_type == always && | 1065 if (branch_type == always && |
1066 frame_is_built_ && !info()->saves_caller_doubles()) { | 1066 frame_is_built_ && !info()->saves_caller_doubles()) { |
1067 DeoptComment(deopt_info); | 1067 DeoptComment(deopt_info); |
1068 __ Call(entry, RelocInfo::RUNTIME_ENTRY); | 1068 __ Call(entry, RelocInfo::RUNTIME_ENTRY); |
1069 } else { | 1069 } else { |
1070 Deoptimizer::JumpTableEntry* table_entry = | 1070 Deoptimizer::JumpTableEntry* table_entry = |
1071 new (zone()) Deoptimizer::JumpTableEntry( | 1071 new (zone()) Deoptimizer::JumpTableEntry( |
(...skipping 5035 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6107 Handle<ScopeInfo> scope_info = instr->scope_info(); | 6107 Handle<ScopeInfo> scope_info = instr->scope_info(); |
6108 __ Push(scope_info); | 6108 __ Push(scope_info); |
6109 __ Push(ToRegister(instr->function())); | 6109 __ Push(ToRegister(instr->function())); |
6110 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 6110 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
6111 RecordSafepoint(Safepoint::kNoLazyDeopt); | 6111 RecordSafepoint(Safepoint::kNoLazyDeopt); |
6112 } | 6112 } |
6113 | 6113 |
6114 | 6114 |
6115 | 6115 |
6116 } } // namespace v8::internal | 6116 } } // namespace v8::internal |
OLD | NEW |