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

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

Issue 2272793004: Update some switchable call stub names and comments. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: . Created 4 years, 3 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 1944 matching lines...) Expand 10 before | Expand all | Expand 10 after
1955 __ movl(left, Address(ESP, 2 * kWordSize)); 1955 __ movl(left, Address(ESP, 2 * kWordSize));
1956 __ movl(right, Address(ESP, 1 * kWordSize)); 1956 __ movl(right, Address(ESP, 1 * kWordSize));
1957 GenerateIdenticalWithNumberCheckStub(assembler, left, right, temp); 1957 GenerateIdenticalWithNumberCheckStub(assembler, left, right, temp);
1958 __ ret(); 1958 __ ret();
1959 } 1959 }
1960 1960
1961 1961
1962 // Called from megamorphic calls. 1962 // Called from megamorphic calls.
1963 // EBX: receiver 1963 // EBX: receiver
1964 // ECX: MegamorphicCache (preserved) 1964 // ECX: MegamorphicCache (preserved)
1965 // Result: 1965 // Passed to target:
1966 // EBX: target entry point 1966 // EBX: target entry point
1967 // EDX: argument descriptor 1967 // EDX: argument descriptor
1968 void StubCode::GenerateMegamorphicLookupStub(Assembler* assembler) { 1968 void StubCode::GenerateMegamorphicCallStub(Assembler* assembler) {
1969 // Jump if receiver is a smi. 1969 // Jump if receiver is a smi.
1970 Label smi_case; 1970 Label smi_case;
1971 // Check if object (in tmp) is a Smi. 1971 // Check if object (in tmp) is a Smi.
1972 __ testl(EBX, Immediate(kSmiTagMask)); 1972 __ testl(EBX, Immediate(kSmiTagMask));
1973 // Jump out of line for smi case. 1973 // Jump out of line for smi case.
1974 __ j(ZERO, &smi_case, Assembler::kNearJump); 1974 __ j(ZERO, &smi_case, Assembler::kNearJump);
1975 1975
1976 // Loads the cid of the instance. 1976 // Loads the cid of the instance.
1977 __ LoadClassId(EAX, EBX); 1977 __ LoadClassId(EAX, EBX);
1978 1978
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
2025 2025
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 // Passed to target:
2036 // EDX: arguments descriptor 2036 // EDX: arguments descriptor
2037 void StubCode::GenerateICLookupThroughFunctionStub(Assembler* assembler) { 2037 void StubCode::GenerateICCallThroughFunctionStub(Assembler* assembler) {
2038 __ int3(); 2038 __ int3();
2039 } 2039 }
2040 2040
2041 2041
2042 void StubCode::GenerateICLookupThroughCodeStub(Assembler* assembler) { 2042 void StubCode::GenerateICCallThroughCodeStub(Assembler* assembler) {
2043 __ int3(); 2043 __ int3();
2044 } 2044 }
2045 2045
2046 2046
2047 void StubCode::GenerateMonomorphicMissStub(Assembler* assembler) { 2047 void StubCode::GenerateMonomorphicMissStub(Assembler* assembler) {
2048 __ int3(); 2048 __ int3();
2049 } 2049 }
2050 2050
2051 2051
2052 void StubCode::GenerateFrameAwaitingMaterializationStub(Assembler* assembler) { 2052 void StubCode::GenerateFrameAwaitingMaterializationStub(Assembler* assembler) {
2053 __ int3(); 2053 __ int3();
2054 } 2054 }
2055 2055
2056 } // namespace dart 2056 } // namespace dart
2057 2057
2058 #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