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

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

Issue 2850783002: Dart SDK Spelling b, c, and d. (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « runtime/vm/snapshot_test.dart ('k') | runtime/vm/timer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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_X64) 6 #if defined(TARGET_ARCH_X64)
7 7
8 #include "vm/assembler.h" 8 #include "vm/assembler.h"
9 #include "vm/compiler.h" 9 #include "vm/compiler.h"
10 #include "vm/dart_entry.h" 10 #include "vm/dart_entry.h"
(...skipping 1921 matching lines...) Expand 10 before | Expand all | Expand 10 after
1932 1932
1933 // Calls to the runtime to optimize the given function. 1933 // Calls to the runtime to optimize the given function.
1934 // RDI: function to be reoptimized. 1934 // RDI: function to be reoptimized.
1935 // R10: argument descriptor (preserved). 1935 // R10: argument descriptor (preserved).
1936 void StubCode::GenerateOptimizeFunctionStub(Assembler* assembler) { 1936 void StubCode::GenerateOptimizeFunctionStub(Assembler* assembler) {
1937 __ EnterStubFrame(); 1937 __ EnterStubFrame();
1938 __ pushq(R10); // Preserve args descriptor. 1938 __ pushq(R10); // Preserve args descriptor.
1939 __ pushq(Immediate(0)); // Result slot. 1939 __ pushq(Immediate(0)); // Result slot.
1940 __ pushq(RDI); // Arg0: function to optimize 1940 __ pushq(RDI); // Arg0: function to optimize
1941 __ CallRuntime(kOptimizeInvokedFunctionRuntimeEntry, 1); 1941 __ CallRuntime(kOptimizeInvokedFunctionRuntimeEntry, 1);
1942 __ popq(RAX); // Disard argument. 1942 __ popq(RAX); // Discard argument.
1943 __ popq(RAX); // Get Code object. 1943 __ popq(RAX); // Get Code object.
1944 __ popq(R10); // Restore argument descriptor. 1944 __ popq(R10); // Restore argument descriptor.
1945 __ LeaveStubFrame(); 1945 __ LeaveStubFrame();
1946 __ movq(CODE_REG, FieldAddress(RAX, Function::code_offset())); 1946 __ movq(CODE_REG, FieldAddress(RAX, Function::code_offset()));
1947 __ movq(RCX, FieldAddress(RAX, Function::entry_point_offset())); 1947 __ movq(RCX, FieldAddress(RAX, Function::entry_point_offset()));
1948 __ jmp(RCX); 1948 __ jmp(RCX);
1949 __ int3(); 1949 __ int3();
1950 } 1950 }
1951 1951
1952 1952
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
2298 } 2298 }
2299 2299
2300 2300
2301 void StubCode::GenerateAsynchronousGapMarkerStub(Assembler* assembler) { 2301 void StubCode::GenerateAsynchronousGapMarkerStub(Assembler* assembler) {
2302 __ int3(); 2302 __ int3();
2303 } 2303 }
2304 2304
2305 } // namespace dart 2305 } // namespace dart
2306 2306
2307 #endif // defined TARGET_ARCH_X64 2307 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « runtime/vm/snapshot_test.dart ('k') | runtime/vm/timer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698