Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(151)

Side by Side Diff: runtime/vm/simulator_arm64.cc

Issue 1812753002: - Move (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include <setjmp.h> // NOLINT 5 #include <setjmp.h> // NOLINT
6 #include <stdlib.h> 6 #include <stdlib.h>
7 7
8 #include "vm/globals.h" 8 #include "vm/globals.h"
9 #if defined(TARGET_ARCH_ARM64) 9 #if defined(TARGET_ARCH_ARM64)
10 10
(...skipping 1593 matching lines...) Expand 10 before | Expand all | Expand 10 after
1604 Redirection* redirection = Redirection::FromHltInstruction(instr); 1604 Redirection* redirection = Redirection::FromHltInstruction(instr);
1605 uword external = redirection->external_function(); 1605 uword external = redirection->external_function();
1606 if (IsTracingExecution()) { 1606 if (IsTracingExecution()) {
1607 OS::Print("Call to host function at 0x%" Pd "\n", external); 1607 OS::Print("Call to host function at 0x%" Pd "\n", external);
1608 } 1608 }
1609 1609
1610 if ((redirection->call_kind() == kRuntimeCall) || 1610 if ((redirection->call_kind() == kRuntimeCall) ||
1611 (redirection->call_kind() == kBootstrapNativeCall) || 1611 (redirection->call_kind() == kBootstrapNativeCall) ||
1612 (redirection->call_kind() == kNativeCall)) { 1612 (redirection->call_kind() == kNativeCall)) {
1613 // Set the top_exit_frame_info of this simulator to the native stack. 1613 // Set the top_exit_frame_info of this simulator to the native stack.
1614 set_top_exit_frame_info(Isolate::GetCurrentStackPointer()); 1614 set_top_exit_frame_info(Thread::GetCurrentStackPointer());
1615 } 1615 }
1616 if (redirection->call_kind() == kRuntimeCall) { 1616 if (redirection->call_kind() == kRuntimeCall) {
1617 NativeArguments* arguments = 1617 NativeArguments* arguments =
1618 reinterpret_cast<NativeArguments*>(get_register(R0)); 1618 reinterpret_cast<NativeArguments*>(get_register(R0));
1619 SimulatorRuntimeCall target = 1619 SimulatorRuntimeCall target =
1620 reinterpret_cast<SimulatorRuntimeCall>(external); 1620 reinterpret_cast<SimulatorRuntimeCall>(external);
1621 target(*arguments); 1621 target(*arguments);
1622 // Zap result register from void function. 1622 // Zap result register from void function.
1623 set_register(instr, R0, icount_); 1623 set_register(instr, R0, icount_);
1624 set_register(instr, R1, icount_); 1624 set_register(instr, R1, icount_);
(...skipping 1981 matching lines...) Expand 10 before | Expand all | Expand 10 after
3606 set_register(NULL, kExceptionObjectReg, bit_cast<int64_t>(raw_exception)); 3606 set_register(NULL, kExceptionObjectReg, bit_cast<int64_t>(raw_exception));
3607 set_register(NULL, kStackTraceObjectReg, bit_cast<int64_t>(raw_stacktrace)); 3607 set_register(NULL, kStackTraceObjectReg, bit_cast<int64_t>(raw_stacktrace));
3608 buf->Longjmp(); 3608 buf->Longjmp();
3609 } 3609 }
3610 3610
3611 } // namespace dart 3611 } // namespace dart
3612 3612
3613 #endif // !defined(USING_SIMULATOR) 3613 #endif // !defined(USING_SIMULATOR)
3614 3614
3615 #endif // defined TARGET_ARCH_ARM64 3615 #endif // defined TARGET_ARCH_ARM64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698