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

Unified Diff: runtime/vm/stub_code_ia32.cc

Issue 1429303005: Add fast Smi op version of switchable instance calls. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/stub_code_ia32.cc
diff --git a/runtime/vm/stub_code_ia32.cc b/runtime/vm/stub_code_ia32.cc
index b6302d333ff25bfec3077ecb3f2197a6af2d4cd5..13499a93d8ce15d3b276983ba5ba01dd866a2f8f 100644
--- a/runtime/vm/stub_code_ia32.cc
+++ b/runtime/vm/stub_code_ia32.cc
@@ -2022,6 +2022,12 @@ void StubCode::GenerateOptimizedIdenticalWithNumberCheckStub(
}
+// Called from megamorphic calls.
+// EBX: receiver
+// ECX: MegamorphicCache (preserved)
+// Result:
+// EBX: target entry point
+// EDX: argument descriptor
void StubCode::EmitMegamorphicLookup(Assembler* assembler) {
__ LoadTaggedClassIdMayBeSmi(EAX, EBX);
// EAX: class ID of the receiver (smi).
@@ -2063,12 +2069,6 @@ void StubCode::EmitMegamorphicLookup(Assembler* assembler) {
}
-// Called from megamorphic calls.
-// EBX: receiver
-// ECX: MegamorphicCache (preserved)
-// Result:
-// EBX: target entry point
-// EDX: argument descriptor
void StubCode::GenerateMegamorphicLookupStub(Assembler* assembler) {
EmitMegamorphicLookup(assembler);
__ ret();
@@ -2085,6 +2085,21 @@ void StubCode::GenerateICLookupStub(Assembler* assembler) {
__ int3();
}
+
+void StubCode::GenerateICSmiAddLookupStub(Assembler* assembler) {
+ __ int3();
+}
+
+
+void StubCode::GenerateICSmiSubLookupStub(Assembler* assembler) {
+ __ int3();
+}
+
+
+void StubCode::GenerateICSmiEqualLookupStub(Assembler* assembler) {
+ __ int3();
+}
+
} // namespace dart
#endif // defined TARGET_ARCH_IA32
« 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