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

Unified Diff: runtime/vm/intrinsifier_x64.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_x64.cc
===================================================================
--- runtime/vm/intrinsifier_x64.cc (revision 25997)
+++ runtime/vm/intrinsifier_x64.cc (working copy)
@@ -136,19 +136,6 @@
}
-bool Intrinsifier::Array_getLength(Assembler* assembler) {
- __ movq(RAX, Address(RSP, + 1 * kWordSize));
- __ movq(RAX, FieldAddress(RAX, 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;
__ movq(RCX, Address(RSP, + 1 * kWordSize)); // Index.
@@ -271,16 +258,6 @@
}
-// Get length of growable object array.
-// On stack: growable array (+1), return-address (+0).
-bool Intrinsifier::GrowableArray_getLength(Assembler* assembler) {
- __ movq(RAX, Address(RSP, + 1 * kWordSize));
- __ movq(RAX, FieldAddress(RAX, GrowableObjectArray::length_offset()));
- __ ret();
- return true;
-}
-
-
bool Intrinsifier::GrowableArray_getCapacity(Assembler* assembler) {
__ movq(RAX, Address(RSP, + 1 * kWordSize));
__ movq(RAX, FieldAddress(RAX, GrowableObjectArray::data_offset()));
@@ -510,18 +487,6 @@
__ Bind(&fall_through); \
-// Gets the length of a TypedData.
-bool Intrinsifier::TypedData_getLength(Assembler* assembler) {
- __ movq(RAX, Address(RSP, + 1 * kWordSize));
- __ movq(RAX, FieldAddress(RAX, TypedData::length_offset()));
- __ ret();
- // Generate enough code to satisfy patchability constraint.
- intptr_t offset = __ CodeSize();
- __ nop(JumpPattern::InstructionLength() - offset);
- return true;
-}
-
-
static ScaleFactor GetScaleFactor(intptr_t size) {
switch (size) {
case 1: return TIMES_1;
@@ -1418,14 +1383,6 @@
}
-bool Intrinsifier::String_getLength(Assembler* assembler) {
- __ movq(RAX, Address(RSP, + 1 * kWordSize)); // String object.
- __ movq(RAX, FieldAddress(RAX, String::length_offset()));
- __ ret();
- return true;
-}
-
-
bool Intrinsifier::String_codeUnitAt(Assembler* assembler) {
Label fall_through, try_two_byte_string;
__ movq(RCX, Address(RSP, + 1 * kWordSize)); // Index.

Powered by Google App Engine
This is Rietveld 408576698