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 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
517 | 517 |
518 private: | 518 private: |
519 void* external_function_; | 519 void* external_function_; |
520 Instruction redirect_call_; | 520 Instruction redirect_call_; |
521 ExternalReference::Type type_; | 521 ExternalReference::Type type_; |
522 Redirection* next_; | 522 Redirection* next_; |
523 }; | 523 }; |
524 | 524 |
525 | 525 |
526 // static | 526 // static |
527 void Simulator::TearDown(base::HashMap* i_cache, Redirection* first) { | 527 void Simulator::TearDown(base::CustomMatcherHashMap* i_cache, |
| 528 Redirection* first) { |
528 Redirection::DeleteChain(first); | 529 Redirection::DeleteChain(first); |
529 } | 530 } |
530 | 531 |
531 | 532 |
532 // Calls into the V8 runtime are based on this very simple interface. | 533 // Calls into the V8 runtime are based on this very simple interface. |
533 // Note: To be able to return two values from some calls the code in runtime.cc | 534 // Note: To be able to return two values from some calls the code in runtime.cc |
534 // uses the ObjectPair structure. | 535 // uses the ObjectPair structure. |
535 // The simulator assumes all runtime calls return two 64-bits values. If they | 536 // The simulator assumes all runtime calls return two 64-bits values. If they |
536 // don't, register x1 is clobbered. This is fine because x1 is caller-saved. | 537 // don't, register x1 is clobbered. This is fine because x1 is caller-saved. |
537 typedef ObjectPair (*SimulatorRuntimeCall)(int64_t arg0, | 538 typedef ObjectPair (*SimulatorRuntimeCall)(int64_t arg0, |
(...skipping 3338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3876 delete[] format; | 3877 delete[] format; |
3877 } | 3878 } |
3878 | 3879 |
3879 | 3880 |
3880 #endif // USE_SIMULATOR | 3881 #endif // USE_SIMULATOR |
3881 | 3882 |
3882 } // namespace internal | 3883 } // namespace internal |
3883 } // namespace v8 | 3884 } // namespace v8 |
3884 | 3885 |
3885 #endif // V8_TARGET_ARCH_ARM64 | 3886 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |