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

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

Issue 1160063002: Remove unused pc descriptor types. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: added comment Created 5 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
« no previous file with comments | « runtime/vm/stub_code_arm64.cc ('k') | runtime/vm/stub_code_mips.cc » ('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_IA32) 6 #if defined(TARGET_ARCH_IA32)
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 1694 matching lines...) Expand 10 before | Expand all | Expand 10 after
1705 Immediate(reinterpret_cast<intptr_t>(Object::null())); 1705 Immediate(reinterpret_cast<intptr_t>(Object::null()));
1706 __ pushl(raw_null); // Room for result. 1706 __ pushl(raw_null); // Room for result.
1707 __ CallRuntime(kBreakpointRuntimeHandlerRuntimeEntry, 0); 1707 __ CallRuntime(kBreakpointRuntimeHandlerRuntimeEntry, 0);
1708 __ popl(EAX); // Address of original stub. 1708 __ popl(EAX); // Address of original stub.
1709 __ popl(ECX); // Restore IC data. 1709 __ popl(ECX); // Restore IC data.
1710 __ LeaveFrame(); 1710 __ LeaveFrame();
1711 __ jmp(EAX); // Jump to original stub. 1711 __ jmp(EAX); // Jump to original stub.
1712 } 1712 }
1713 1713
1714 1714
1715 // ECX: Contains Smi 0 (need to preserve a GC-safe value for the lazy compile
1716 // stub).
1717 // EDX: Contains an arguments descriptor.
1718 void StubCode::GenerateClosureCallBreakpointStub(Assembler* assembler) {
1719 __ EnterStubFrame();
1720 // Save arguments to original stub.
1721 __ pushl(ECX);
1722 __ pushl(EDX);
1723 // Room for result. Debugger stub returns address of the
1724 // unpatched runtime stub.
1725 const Immediate& raw_null =
1726 Immediate(reinterpret_cast<intptr_t>(Object::null()));
1727 __ pushl(raw_null); // Room for result.
1728 __ CallRuntime(kBreakpointRuntimeHandlerRuntimeEntry, 0);
1729 __ popl(EAX); // Address of original stub.
1730 __ popl(EDX); // Restore arguments to original stub.
1731 __ popl(ECX);
1732 __ LeaveFrame();
1733 __ jmp(EAX); // Jump to original stub.
1734 }
1735
1736
1737 void StubCode::GenerateRuntimeCallBreakpointStub(Assembler* assembler) { 1715 void StubCode::GenerateRuntimeCallBreakpointStub(Assembler* assembler) {
1738 __ EnterStubFrame(); 1716 __ EnterStubFrame();
1739 // Room for result. Debugger stub returns address of the 1717 // Room for result. Debugger stub returns address of the
1740 // unpatched runtime stub. 1718 // unpatched runtime stub.
1741 const Immediate& raw_null = 1719 const Immediate& raw_null =
1742 Immediate(reinterpret_cast<intptr_t>(Object::null())); 1720 Immediate(reinterpret_cast<intptr_t>(Object::null()));
1743 __ pushl(raw_null); // Room for result. 1721 __ pushl(raw_null); // Room for result.
1744 __ CallRuntime(kBreakpointRuntimeHandlerRuntimeEntry, 0); 1722 __ CallRuntime(kBreakpointRuntimeHandlerRuntimeEntry, 0);
1745 __ popl(EAX); // Address of original stub. 1723 __ popl(EAX); // Address of original stub.
1746 __ LeaveFrame(); 1724 __ LeaveFrame();
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
2108 // EBX: entry point. 2086 // EBX: entry point.
2109 void StubCode::GenerateMegamorphicLookupStub(Assembler* assembler) { 2087 void StubCode::GenerateMegamorphicLookupStub(Assembler* assembler) {
2110 EmitMegamorphicLookup(assembler, EDI, EBX, EBX); 2088 EmitMegamorphicLookup(assembler, EDI, EBX, EBX);
2111 __ ret(); 2089 __ ret();
2112 } 2090 }
2113 2091
2114 2092
2115 } // namespace dart 2093 } // namespace dart
2116 2094
2117 #endif // defined TARGET_ARCH_IA32 2095 #endif // defined TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « runtime/vm/stub_code_arm64.cc ('k') | runtime/vm/stub_code_mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698