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

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

Issue 2226893002: Optimize AOT's switchable calls for the monomorphic case. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: sync Created 4 years, 4 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 2015 matching lines...) Expand 10 before | Expand all | Expand 10 after
2026 // Load cid for the Smi case. 2026 // Load cid for the Smi case.
2027 __ Bind(&smi_case); 2027 __ Bind(&smi_case);
2028 __ movl(EAX, Immediate(kSmiCid)); 2028 __ movl(EAX, Immediate(kSmiCid));
2029 __ jmp(&cid_loaded); 2029 __ jmp(&cid_loaded);
2030 } 2030 }
2031 2031
2032 // Called from switchable IC calls. 2032 // Called from switchable IC calls.
2033 // EBX: receiver 2033 // EBX: receiver
2034 // ECX: ICData (preserved) 2034 // ECX: ICData (preserved)
2035 // Result: 2035 // Result:
2036 // EBX: target entry point
2037 // EDX: arguments descriptor 2036 // EDX: arguments descriptor
2038 void StubCode::GenerateICLookupThroughFunctionStub(Assembler* assembler) { 2037 void StubCode::GenerateICLookupThroughFunctionStub(Assembler* assembler) {
2039 __ int3(); 2038 __ int3();
2040 } 2039 }
2041 2040
2042 2041
2043 void StubCode::GenerateICLookupThroughCodeStub(Assembler* assembler) { 2042 void StubCode::GenerateICLookupThroughCodeStub(Assembler* assembler) {
2044 __ int3(); 2043 __ int3();
2045 } 2044 }
2046 2045
2047 2046
2047 void StubCode::GenerateMonomorphicMissStub(Assembler* assembler) {
2048 __ int3();
2049 }
2050
2048 2051
2049 void StubCode::GenerateFrameAwaitingMaterializationStub(Assembler* assembler) { 2052 void StubCode::GenerateFrameAwaitingMaterializationStub(Assembler* assembler) {
2050 __ int3(); 2053 __ int3();
2051 } 2054 }
2052 2055
2053 } // namespace dart 2056 } // namespace dart
2054 2057
2055 #endif // defined TARGET_ARCH_IA32 2058 #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