| 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.
|
|
|