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

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

Issue 335443002: Setup R10/EDX to be valid Oops before stub calls (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
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 "vm/globals.h" 5 #include "vm/globals.h"
6 #if defined(TARGET_ARCH_ARM64) 6 #if defined(TARGET_ARCH_ARM64)
7 7
8 #include "vm/assembler.h" 8 #include "vm/assembler.h"
9 #include "vm/code_generator.h" 9 #include "vm/code_generator.h"
10 #include "vm/compiler.h" 10 #include "vm/compiler.h"
(...skipping 27 matching lines...) Expand all
38 void StubCode::GenerateCallToRuntimeStub(Assembler* assembler) { 38 void StubCode::GenerateCallToRuntimeStub(Assembler* assembler) {
39 const intptr_t isolate_offset = NativeArguments::isolate_offset(); 39 const intptr_t isolate_offset = NativeArguments::isolate_offset();
40 const intptr_t argc_tag_offset = NativeArguments::argc_tag_offset(); 40 const intptr_t argc_tag_offset = NativeArguments::argc_tag_offset();
41 const intptr_t argv_offset = NativeArguments::argv_offset(); 41 const intptr_t argv_offset = NativeArguments::argv_offset();
42 const intptr_t retval_offset = NativeArguments::retval_offset(); 42 const intptr_t retval_offset = NativeArguments::retval_offset();
43 const intptr_t exitframe_last_param_slot_from_fp = 1; 43 const intptr_t exitframe_last_param_slot_from_fp = 1;
44 44
45 __ SetPrologueOffset(); 45 __ SetPrologueOffset();
46 __ Comment("CallToRuntimeStub"); 46 __ Comment("CallToRuntimeStub");
47 __ EnterFrame(0); 47 __ EnterFrame(0);
48 __ SmiUntag(R4);
48 49
49 // Load current Isolate pointer from Context structure into R0. 50 // Load current Isolate pointer from Context structure into R0.
50 __ LoadFieldFromOffset(R0, CTX, Context::isolate_offset(), kNoPP); 51 __ LoadFieldFromOffset(R0, CTX, Context::isolate_offset(), kNoPP);
51 52
52 // Save exit frame information to enable stack walking as we are about 53 // Save exit frame information to enable stack walking as we are about
53 // to transition to Dart VM C++ code. 54 // to transition to Dart VM C++ code.
54 __ StoreToOffset(SP, R0, Isolate::top_exit_frame_info_offset(), kNoPP); 55 __ StoreToOffset(SP, R0, Isolate::top_exit_frame_info_offset(), kNoPP);
55 56
56 // Save current Context pointer into Isolate structure. 57 // Save current Context pointer into Isolate structure.
57 __ StoreToOffset(CTX, R0, Isolate::top_context_offset(), kNoPP); 58 __ StoreToOffset(CTX, R0, Isolate::top_context_offset(), kNoPP);
(...skipping 1871 matching lines...) Expand 10 before | Expand all | Expand 10 after
1929 const Register right = R0; 1930 const Register right = R0;
1930 __ LoadFromOffset(left, SP, 1 * kWordSize, kNoPP); 1931 __ LoadFromOffset(left, SP, 1 * kWordSize, kNoPP);
1931 __ LoadFromOffset(right, SP, 0 * kWordSize, kNoPP); 1932 __ LoadFromOffset(right, SP, 0 * kWordSize, kNoPP);
1932 GenerateIdenticalWithNumberCheckStub(assembler, left, right, temp); 1933 GenerateIdenticalWithNumberCheckStub(assembler, left, right, temp);
1933 __ ret(); 1934 __ ret();
1934 } 1935 }
1935 1936
1936 } // namespace dart 1937 } // namespace dart
1937 1938
1938 #endif // defined TARGET_ARCH_ARM64 1939 #endif // defined TARGET_ARCH_ARM64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698