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(HashMap* i_cache, Redirection* first) { | 527 void Simulator::TearDown(base::HashMap* i_cache, Redirection* first) { |
528 Redirection::DeleteChain(first); | 528 Redirection::DeleteChain(first); |
529 } | 529 } |
530 | 530 |
531 | 531 |
532 // Calls into the V8 runtime are based on this very simple interface. | 532 // 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 | 533 // Note: To be able to return two values from some calls the code in runtime.cc |
534 // uses the ObjectPair structure. | 534 // uses the ObjectPair structure. |
535 // The simulator assumes all runtime calls return two 64-bits values. If they | 535 // 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. | 536 // don't, register x1 is clobbered. This is fine because x1 is caller-saved. |
537 typedef ObjectPair (*SimulatorRuntimeCall)(int64_t arg0, | 537 typedef ObjectPair (*SimulatorRuntimeCall)(int64_t arg0, |
(...skipping 3335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3873 delete[] format; | 3873 delete[] format; |
3874 } | 3874 } |
3875 | 3875 |
3876 | 3876 |
3877 #endif // USE_SIMULATOR | 3877 #endif // USE_SIMULATOR |
3878 | 3878 |
3879 } // namespace internal | 3879 } // namespace internal |
3880 } // namespace v8 | 3880 } // namespace v8 |
3881 | 3881 |
3882 #endif // V8_TARGET_ARCH_ARM64 | 3882 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |