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

Unified Diff: runtime/vm/intrinsifier_ia32.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_ia32.cc
===================================================================
--- runtime/vm/intrinsifier_ia32.cc (revision 25997)
+++ runtime/vm/intrinsifier_ia32.cc (working copy)
@@ -136,19 +136,6 @@
}
-bool Intrinsifier::Array_getLength(Assembler* assembler) {
- __ movl(EAX, Address(ESP, + 1 * kWordSize));
- __ movl(EAX, FieldAddress(EAX, Array::length_offset()));
- __ ret();
- return true;
-}
-
-
-bool Intrinsifier::ImmutableArray_getLength(Assembler* assembler) {
- return Array_getLength(assembler);
-}
-
-
bool Intrinsifier::Array_getIndexed(Assembler* assembler) {
Label fall_through;
__ movl(EBX, Address(ESP, + 1 * kWordSize)); // Index.
@@ -315,16 +302,6 @@
}
-// Get length of growable object array.
-// On stack: growable array (+1), return-address (+0).
-bool Intrinsifier::GrowableArray_getLength(Assembler* assembler) {
- __ movl(EAX, Address(ESP, + 1 * kWordSize));
- __ movl(EAX, FieldAddress(EAX, GrowableObjectArray::length_offset()));
- __ ret();
- return true;
-}
-
-
// Get capacity of growable object array.
// On stack: growable array (+1), return-address (+0).
bool Intrinsifier::GrowableArray_getCapacity(Assembler* assembler) {
@@ -552,16 +529,6 @@
__ Bind(&fall_through); \
-
-// Gets the length of a TypedData.
-bool Intrinsifier::TypedData_getLength(Assembler* assembler) {
- __ movl(EAX, Address(ESP, + 1 * kWordSize));
- __ movl(EAX, FieldAddress(EAX, TypedData::length_offset()));
- __ ret();
- return true;
-}
-
-
static ScaleFactor GetScaleFactor(intptr_t size) {
switch (size) {
case 1: return TIMES_1;
@@ -1502,14 +1469,6 @@
}
-bool Intrinsifier::String_getLength(Assembler* assembler) {
- __ movl(EAX, Address(ESP, + 1 * kWordSize)); // String object.
- __ movl(EAX, FieldAddress(EAX, String::length_offset()));
- __ ret();
- return true;
-}
-
-
bool Intrinsifier::String_codeUnitAt(Assembler* assembler) {
Label fall_through, try_two_byte_string;
__ movl(EBX, Address(ESP, + 1 * kWordSize)); // Index.

Powered by Google App Engine
This is Rietveld 408576698