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

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

Issue 132793002: Delete obsolete debug stub (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 11 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
« no previous file with comments | « runtime/vm/stub_code_mips.cc ('k') | no next file » | 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 1853 matching lines...) Expand 10 before | Expand all | Expand 10 after
1864 // Load arguments descriptor into R10. 1864 // Load arguments descriptor into R10.
1865 __ movq(R10, FieldAddress(RBX, ICData::arguments_descriptor_offset())); 1865 __ movq(R10, FieldAddress(RBX, ICData::arguments_descriptor_offset()));
1866 // Now call the static function. The breakpoint handler function 1866 // Now call the static function. The breakpoint handler function
1867 // ensures that the call target is compiled. 1867 // ensures that the call target is compiled.
1868 __ movq(RBX, FieldAddress(RAX, Code::instructions_offset())); 1868 __ movq(RBX, FieldAddress(RAX, Code::instructions_offset()));
1869 __ addq(RBX, Immediate(Instructions::HeaderSize() - kHeapObjectTag)); 1869 __ addq(RBX, Immediate(Instructions::HeaderSize() - kHeapObjectTag));
1870 __ jmp(RBX); 1870 __ jmp(RBX);
1871 } 1871 }
1872 1872
1873 1873
1874 // TOS(0): return address (Dart code).
1875 void StubCode::GenerateBreakpointReturnStub(Assembler* assembler) {
1876 __ EnterStubFrame();
1877 __ pushq(RAX);
1878 __ CallRuntime(kBreakpointReturnHandlerRuntimeEntry, 0);
1879 __ popq(RAX);
1880 __ LeaveStubFrame();
1881 __ popq(R11); // discard return address of call to this stub.
1882 __ LeaveDartFrame();
1883 __ ret();
1884 }
1885
1886
1887 // RBX: Inline cache data array. 1874 // RBX: Inline cache data array.
1888 // TOS(0): return address (Dart code). 1875 // TOS(0): return address (Dart code).
1889 void StubCode::GenerateBreakpointDynamicStub(Assembler* assembler) { 1876 void StubCode::GenerateBreakpointDynamicStub(Assembler* assembler) {
1890 __ EnterStubFrame(); 1877 __ EnterStubFrame();
1891 __ pushq(RBX); 1878 __ pushq(RBX);
1892 __ CallRuntime(kBreakpointDynamicHandlerRuntimeEntry, 0); 1879 __ CallRuntime(kBreakpointDynamicHandlerRuntimeEntry, 0);
1893 __ popq(RBX); 1880 __ popq(RBX);
1894 __ LeaveStubFrame(); 1881 __ LeaveStubFrame();
1895 1882
1896 // Find out which dispatch stub to call. 1883 // Find out which dispatch stub to call.
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
2192 2179
2193 __ movq(left, Address(RSP, 2 * kWordSize)); 2180 __ movq(left, Address(RSP, 2 * kWordSize));
2194 __ movq(right, Address(RSP, 1 * kWordSize)); 2181 __ movq(right, Address(RSP, 1 * kWordSize));
2195 GenerateIdenticalWithNumberCheckStub(assembler, left, right); 2182 GenerateIdenticalWithNumberCheckStub(assembler, left, right);
2196 __ ret(); 2183 __ ret();
2197 } 2184 }
2198 2185
2199 } // namespace dart 2186 } // namespace dart
2200 2187
2201 #endif // defined TARGET_ARCH_X64 2188 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « runtime/vm/stub_code_mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698