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

Unified Diff: runtime/vm/intrinsifier_mips.cc

Issue 22839003: Polymorphic inlining for some recognized methods in the optimizing compiler. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
Index: runtime/vm/intrinsifier_mips.cc
===================================================================
--- runtime/vm/intrinsifier_mips.cc (revision 25997)
+++ runtime/vm/intrinsifier_mips.cc (working copy)
@@ -134,19 +134,6 @@
}
-bool Intrinsifier::Array_getLength(Assembler* assembler) {
- __ lw(V0, Address(SP, 0 * kWordSize));
- __ Ret();
- __ delay_slot()->lw(V0, FieldAddress(V0, Array::length_offset()));
- return true;
-}
-
-
-bool Intrinsifier::ImmutableArray_getLength(Assembler* assembler) {
- return Array_getLength(assembler);
-}
-
-
bool Intrinsifier::Array_getIndexed(Assembler* assembler) {
Label fall_through;
@@ -322,15 +309,6 @@
}
-bool Intrinsifier::GrowableArray_getLength(Assembler* assembler) {
- __ lw(V0, Address(SP, 0 * kWordSize));
- __ Ret();
- __ delay_slot()->lw(V0,
- FieldAddress(V0, GrowableObjectArray::length_offset()));
- return true;
-}
-
-
bool Intrinsifier::GrowableArray_getCapacity(Assembler* assembler) {
__ lw(V0, Address(SP, 0 * kWordSize));
__ lw(V0, FieldAddress(V0, GrowableObjectArray::data_offset()));
@@ -558,15 +536,6 @@
__ Bind(&fall_through); \
-// Gets the length of a TypedData.
-bool Intrinsifier::TypedData_getLength(Assembler* assembler) {
- __ lw(T0, Address(SP, 0 * kWordSize));
- __ Ret();
- __ delay_slot()->lw(V0, FieldAddress(T0, TypedData::length_offset()));
- return true;
-}
-
-
static int GetScaleFactor(intptr_t size) {
switch (size) {
case 1: return 0;
@@ -1498,14 +1467,6 @@
}
-bool Intrinsifier::String_getLength(Assembler* assembler) {
- __ lw(T0, Address(SP, 0 * kWordSize));
- __ Ret();
- __ delay_slot()->lw(V0, FieldAddress(T0, String::length_offset()));
- return true;
-}
-
-
bool Intrinsifier::String_codeUnitAt(Assembler* assembler) {
Label fall_through, try_two_byte_string;

Powered by Google App Engine
This is Rietveld 408576698