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 <stdlib.h> | 5 #include <stdlib.h> |
6 #include <cmath> | 6 #include <cmath> |
7 #include <cstdarg> | 7 #include <cstdarg> |
8 | 8 |
9 #if V8_TARGET_ARCH_ARM64 | 9 #if V8_TARGET_ARCH_ARM64 |
10 | 10 |
(...skipping 783 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
794 } | 794 } |
795 | 795 |
796 set_lr(return_address); | 796 set_lr(return_address); |
797 set_pc(return_address); | 797 set_pc(return_address); |
798 } | 798 } |
799 | 799 |
800 | 800 |
801 void* Simulator::RedirectExternalReference(Isolate* isolate, | 801 void* Simulator::RedirectExternalReference(Isolate* isolate, |
802 void* external_function, | 802 void* external_function, |
803 ExternalReference::Type type) { | 803 ExternalReference::Type type) { |
| 804 base::LockGuard<base::Mutex> lock_guard( |
| 805 isolate->simulator_redirection_mutex()); |
804 Redirection* redirection = Redirection::Get(isolate, external_function, type); | 806 Redirection* redirection = Redirection::Get(isolate, external_function, type); |
805 return redirection->address_of_redirect_call(); | 807 return redirection->address_of_redirect_call(); |
806 } | 808 } |
807 | 809 |
808 | 810 |
809 const char* Simulator::xreg_names[] = { | 811 const char* Simulator::xreg_names[] = { |
810 "x0", "x1", "x2", "x3", "x4", "x5", "x6", "x7", | 812 "x0", "x1", "x2", "x3", "x4", "x5", "x6", "x7", |
811 "x8", "x9", "x10", "x11", "x12", "x13", "x14", "x15", | 813 "x8", "x9", "x10", "x11", "x12", "x13", "x14", "x15", |
812 "ip0", "ip1", "x18", "x19", "x20", "x21", "x22", "x23", | 814 "ip0", "ip1", "x18", "x19", "x20", "x21", "x22", "x23", |
813 "x24", "x25", "x26", "cp", "jssp", "fp", "lr", "xzr", "csp"}; | 815 "x24", "x25", "x26", "cp", "jssp", "fp", "lr", "xzr", "csp"}; |
(...skipping 3388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4202 processor->prev_ = nullptr; | 4204 processor->prev_ = nullptr; |
4203 processor->next_ = nullptr; | 4205 processor->next_ = nullptr; |
4204 } | 4206 } |
4205 | 4207 |
4206 #endif // USE_SIMULATOR | 4208 #endif // USE_SIMULATOR |
4207 | 4209 |
4208 } // namespace internal | 4210 } // namespace internal |
4209 } // namespace v8 | 4211 } // namespace v8 |
4210 | 4212 |
4211 #endif // V8_TARGET_ARCH_ARM64 | 4213 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |