OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 // | 4 // |
5 // The intrinsic code below is executed before a method has built its frame. | 5 // The intrinsic code below is executed before a method has built its frame. |
6 // The return address is on the stack and the arguments below it. | 6 // The return address is on the stack and the arguments below it. |
7 // Registers EDX (arguments descriptor) and ECX (function) must be preserved. | 7 // Registers EDX (arguments descriptor) and ECX (function) must be preserved. |
8 // Each intrinsification method returns true if the corresponding | 8 // Each intrinsification method returns true if the corresponding |
9 // Dart method was intrinsified. | 9 // Dart method was intrinsified. |
10 | 10 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 // EAX: potential new object start. | 69 // EAX: potential new object start. |
70 // EBX: potential next object start. | 70 // EBX: potential next object start. |
71 // EDI: allocation size. | 71 // EDI: allocation size. |
72 __ cmpl(EBX, Address::Absolute(heap->EndAddress())); | 72 __ cmpl(EBX, Address::Absolute(heap->EndAddress())); |
73 __ j(ABOVE_EQUAL, &fall_through); | 73 __ j(ABOVE_EQUAL, &fall_through); |
74 | 74 |
75 // Successfully allocated the object(s), now update top to point to | 75 // Successfully allocated the object(s), now update top to point to |
76 // next object start and initialize the object. | 76 // next object start and initialize the object. |
77 __ movl(Address::Absolute(heap->TopAddress()), EBX); | 77 __ movl(Address::Absolute(heap->TopAddress()), EBX); |
78 __ addl(EAX, Immediate(kHeapObjectTag)); | 78 __ addl(EAX, Immediate(kHeapObjectTag)); |
| 79 __ BumpAllocationCount(Heap::kNew, kArrayCid, EDI, kNoRegister); |
79 | 80 |
80 // Initialize the tags. | 81 // Initialize the tags. |
81 // EAX: new object start as a tagged pointer. | 82 // EAX: new object start as a tagged pointer. |
82 // EBX: new object end address. | 83 // EBX: new object end address. |
83 // EDI: allocation size. | 84 // EDI: allocation size. |
84 { | 85 { |
85 Label size_tag_overflow, done; | 86 Label size_tag_overflow, done; |
86 __ cmpl(EDI, Immediate(RawObject::SizeTag::kMaxSizeTag)); | 87 __ cmpl(EDI, Immediate(RawObject::SizeTag::kMaxSizeTag)); |
87 __ j(ABOVE, &size_tag_overflow, Assembler::kNearJump); | 88 __ j(ABOVE, &size_tag_overflow, Assembler::kNearJump); |
88 __ shll(EDI, Immediate(RawObject::kSizeTagBit - kObjectAlignmentLog2)); | 89 __ shll(EDI, Immediate(RawObject::kSizeTagBit - kObjectAlignmentLog2)); |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 // Store the type argument field in the growable array object. | 297 // Store the type argument field in the growable array object. |
297 __ movl(EBX, Address(ESP, kTypeArgumentsOffset)); // type argument. | 298 __ movl(EBX, Address(ESP, kTypeArgumentsOffset)); // type argument. |
298 __ StoreIntoObjectNoBarrier( | 299 __ StoreIntoObjectNoBarrier( |
299 EAX, | 300 EAX, |
300 FieldAddress(EAX, GrowableObjectArray::type_arguments_offset()), | 301 FieldAddress(EAX, GrowableObjectArray::type_arguments_offset()), |
301 EBX); | 302 EBX); |
302 | 303 |
303 // Set the length field in the growable array object to 0. | 304 // Set the length field in the growable array object to 0. |
304 __ movl(FieldAddress(EAX, GrowableObjectArray::length_offset()), | 305 __ movl(FieldAddress(EAX, GrowableObjectArray::length_offset()), |
305 Immediate(0)); | 306 Immediate(0)); |
| 307 __ BumpAllocationCount(Heap::kNew, kGrowableObjectArrayCid, EBX); |
306 __ ret(); // returns the newly allocated object in EAX. | 308 __ ret(); // returns the newly allocated object in EAX. |
307 | 309 |
308 __ Bind(&fall_through); | 310 __ Bind(&fall_through); |
309 } | 311 } |
310 | 312 |
311 | 313 |
312 // Get length of growable object array. | 314 // Get length of growable object array. |
313 // On stack: growable array (+1), return-address (+0). | 315 // On stack: growable array (+1), return-address (+0). |
314 void Intrinsifier::GrowableList_getLength(Assembler* assembler) { | 316 void Intrinsifier::GrowableList_getLength(Assembler* assembler) { |
315 __ movl(EAX, Address(ESP, + 1 * kWordSize)); | 317 __ movl(EAX, Address(ESP, + 1 * kWordSize)); |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
485 /* EAX: potential new object start. */ \ | 487 /* EAX: potential new object start. */ \ |
486 /* EBX: potential next object start. */ \ | 488 /* EBX: potential next object start. */ \ |
487 /* EDI: allocation size. */ \ | 489 /* EDI: allocation size. */ \ |
488 __ cmpl(EBX, Address::Absolute(heap->EndAddress())); \ | 490 __ cmpl(EBX, Address::Absolute(heap->EndAddress())); \ |
489 __ j(ABOVE_EQUAL, &fall_through); \ | 491 __ j(ABOVE_EQUAL, &fall_through); \ |
490 \ | 492 \ |
491 /* Successfully allocated the object(s), now update top to point to */ \ | 493 /* Successfully allocated the object(s), now update top to point to */ \ |
492 /* next object start and initialize the object. */ \ | 494 /* next object start and initialize the object. */ \ |
493 __ movl(Address::Absolute(heap->TopAddress()), EBX); \ | 495 __ movl(Address::Absolute(heap->TopAddress()), EBX); \ |
494 __ addl(EAX, Immediate(kHeapObjectTag)); \ | 496 __ addl(EAX, Immediate(kHeapObjectTag)); \ |
| 497 __ BumpAllocationCount(Heap::kNew, cid, EDI, kNoRegister); \ |
495 \ | 498 \ |
496 /* Initialize the tags. */ \ | 499 /* Initialize the tags. */ \ |
497 /* EAX: new object start as a tagged pointer. */ \ | 500 /* EAX: new object start as a tagged pointer. */ \ |
498 /* EBX: new object end address. */ \ | 501 /* EBX: new object end address. */ \ |
499 /* EDI: allocation size. */ \ | 502 /* EDI: allocation size. */ \ |
500 { \ | 503 { \ |
501 Label size_tag_overflow, done; \ | 504 Label size_tag_overflow, done; \ |
502 __ cmpl(EDI, Immediate(RawObject::SizeTag::kMaxSizeTag)); \ | 505 __ cmpl(EDI, Immediate(RawObject::SizeTag::kMaxSizeTag)); \ |
503 __ j(ABOVE, &size_tag_overflow, Assembler::kNearJump); \ | 506 __ j(ABOVE, &size_tag_overflow, Assembler::kNearJump); \ |
504 __ shll(EDI, Immediate(RawObject::kSizeTagBit - kObjectAlignmentLog2)); \ | 507 __ shll(EDI, Immediate(RawObject::kSizeTagBit - kObjectAlignmentLog2)); \ |
(...skipping 23 matching lines...) Expand all Loading... |
528 __ xorl(ECX, ECX); /* Zero. */ \ | 531 __ xorl(ECX, ECX); /* Zero. */ \ |
529 __ leal(EDI, FieldAddress(EAX, sizeof(Raw##type_name))); \ | 532 __ leal(EDI, FieldAddress(EAX, sizeof(Raw##type_name))); \ |
530 Label done, init_loop; \ | 533 Label done, init_loop; \ |
531 __ Bind(&init_loop); \ | 534 __ Bind(&init_loop); \ |
532 __ cmpl(EDI, EBX); \ | 535 __ cmpl(EDI, EBX); \ |
533 __ j(ABOVE_EQUAL, &done, Assembler::kNearJump); \ | 536 __ j(ABOVE_EQUAL, &done, Assembler::kNearJump); \ |
534 __ movl(Address(EDI, 0), ECX); \ | 537 __ movl(Address(EDI, 0), ECX); \ |
535 __ addl(EDI, Immediate(kWordSize)); \ | 538 __ addl(EDI, Immediate(kWordSize)); \ |
536 __ jmp(&init_loop, Assembler::kNearJump); \ | 539 __ jmp(&init_loop, Assembler::kNearJump); \ |
537 __ Bind(&done); \ | 540 __ Bind(&done); \ |
538 \ | |
539 __ ret(); \ | 541 __ ret(); \ |
540 __ Bind(&fall_through); \ | 542 __ Bind(&fall_through); \ |
541 | 543 |
542 | 544 |
543 | 545 |
544 // Gets the length of a TypedData. | 546 // Gets the length of a TypedData. |
545 void Intrinsifier::TypedData_getLength(Assembler* assembler) { | 547 void Intrinsifier::TypedData_getLength(Assembler* assembler) { |
546 __ movl(EAX, Address(ESP, + 1 * kWordSize)); | 548 __ movl(EAX, Address(ESP, + 1 * kWordSize)); |
547 __ movl(EAX, FieldAddress(EAX, TypedData::length_offset())); | 549 __ movl(EAX, FieldAddress(EAX, TypedData::length_offset())); |
548 __ ret(); | 550 __ ret(); |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
849 __ movl(EAX, EBX); | 851 __ movl(EAX, EBX); |
850 __ shll(EBX, ECX); | 852 __ shll(EBX, ECX); |
851 __ xorl(EDI, EDI); | 853 __ xorl(EDI, EDI); |
852 __ shld(EDI, EAX); | 854 __ shld(EDI, EAX); |
853 // Result in EDI (high) and EBX (low). | 855 // Result in EDI (high) and EBX (low). |
854 const Class& mint_class = Class::Handle( | 856 const Class& mint_class = Class::Handle( |
855 Isolate::Current()->object_store()->mint_class()); | 857 Isolate::Current()->object_store()->mint_class()); |
856 __ TryAllocate(mint_class, | 858 __ TryAllocate(mint_class, |
857 &fall_through, | 859 &fall_through, |
858 Assembler::kNearJump, | 860 Assembler::kNearJump, |
859 EAX); // Result register. | 861 EAX, // Result register. |
| 862 kNoRegister); |
860 // EBX and EDI are not objects but integer values. | 863 // EBX and EDI are not objects but integer values. |
861 __ movl(FieldAddress(EAX, Mint::value_offset()), EBX); | 864 __ movl(FieldAddress(EAX, Mint::value_offset()), EBX); |
862 __ movl(FieldAddress(EAX, Mint::value_offset() + kWordSize), EDI); | 865 __ movl(FieldAddress(EAX, Mint::value_offset() + kWordSize), EDI); |
863 __ ret(); | 866 __ ret(); |
864 __ Bind(&fall_through); | 867 __ Bind(&fall_through); |
865 } | 868 } |
866 | 869 |
867 | 870 |
868 static void Push64SmiOrMint(Assembler* assembler, | 871 static void Push64SmiOrMint(Assembler* assembler, |
869 Register reg, | 872 Register reg, |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1170 case Token::kSUB: __ subsd(XMM0, XMM1); break; | 1173 case Token::kSUB: __ subsd(XMM0, XMM1); break; |
1171 case Token::kMUL: __ mulsd(XMM0, XMM1); break; | 1174 case Token::kMUL: __ mulsd(XMM0, XMM1); break; |
1172 case Token::kDIV: __ divsd(XMM0, XMM1); break; | 1175 case Token::kDIV: __ divsd(XMM0, XMM1); break; |
1173 default: UNREACHABLE(); | 1176 default: UNREACHABLE(); |
1174 } | 1177 } |
1175 const Class& double_class = Class::Handle( | 1178 const Class& double_class = Class::Handle( |
1176 Isolate::Current()->object_store()->double_class()); | 1179 Isolate::Current()->object_store()->double_class()); |
1177 __ TryAllocate(double_class, | 1180 __ TryAllocate(double_class, |
1178 &fall_through, | 1181 &fall_through, |
1179 Assembler::kNearJump, | 1182 Assembler::kNearJump, |
1180 EAX); // Result register. | 1183 EAX, // Result register. |
| 1184 EBX); |
1181 __ movsd(FieldAddress(EAX, Double::value_offset()), XMM0); | 1185 __ movsd(FieldAddress(EAX, Double::value_offset()), XMM0); |
1182 __ ret(); | 1186 __ ret(); |
1183 __ Bind(&fall_through); | 1187 __ Bind(&fall_through); |
1184 } | 1188 } |
1185 | 1189 |
1186 | 1190 |
1187 void Intrinsifier::Double_add(Assembler* assembler) { | 1191 void Intrinsifier::Double_add(Assembler* assembler) { |
1188 return DoubleArithmeticOperations(assembler, Token::kADD); | 1192 return DoubleArithmeticOperations(assembler, Token::kADD); |
1189 } | 1193 } |
1190 | 1194 |
(...skipping 24 matching lines...) Expand all Loading... |
1215 __ SmiUntag(EAX); | 1219 __ SmiUntag(EAX); |
1216 __ cvtsi2sd(XMM1, EAX); | 1220 __ cvtsi2sd(XMM1, EAX); |
1217 __ movl(EAX, Address(ESP, + 2 * kWordSize)); | 1221 __ movl(EAX, Address(ESP, + 2 * kWordSize)); |
1218 __ movsd(XMM0, FieldAddress(EAX, Double::value_offset())); | 1222 __ movsd(XMM0, FieldAddress(EAX, Double::value_offset())); |
1219 __ mulsd(XMM0, XMM1); | 1223 __ mulsd(XMM0, XMM1); |
1220 const Class& double_class = Class::Handle( | 1224 const Class& double_class = Class::Handle( |
1221 Isolate::Current()->object_store()->double_class()); | 1225 Isolate::Current()->object_store()->double_class()); |
1222 __ TryAllocate(double_class, | 1226 __ TryAllocate(double_class, |
1223 &fall_through, | 1227 &fall_through, |
1224 Assembler::kNearJump, | 1228 Assembler::kNearJump, |
1225 EAX); // Result register. | 1229 EAX, // Result register. |
| 1230 EBX); |
1226 __ movsd(FieldAddress(EAX, Double::value_offset()), XMM0); | 1231 __ movsd(FieldAddress(EAX, Double::value_offset()), XMM0); |
1227 __ ret(); | 1232 __ ret(); |
1228 __ Bind(&fall_through); | 1233 __ Bind(&fall_through); |
1229 } | 1234 } |
1230 | 1235 |
1231 | 1236 |
1232 void Intrinsifier::Double_fromInteger(Assembler* assembler) { | 1237 void Intrinsifier::Double_fromInteger(Assembler* assembler) { |
1233 Label fall_through; | 1238 Label fall_through; |
1234 __ movl(EAX, Address(ESP, +1 * kWordSize)); | 1239 __ movl(EAX, Address(ESP, +1 * kWordSize)); |
1235 __ testl(EAX, Immediate(kSmiTagMask)); | 1240 __ testl(EAX, Immediate(kSmiTagMask)); |
1236 __ j(NOT_ZERO, &fall_through, Assembler::kNearJump); | 1241 __ j(NOT_ZERO, &fall_through, Assembler::kNearJump); |
1237 // Is Smi. | 1242 // Is Smi. |
1238 __ SmiUntag(EAX); | 1243 __ SmiUntag(EAX); |
1239 __ cvtsi2sd(XMM0, EAX); | 1244 __ cvtsi2sd(XMM0, EAX); |
1240 const Class& double_class = Class::Handle( | 1245 const Class& double_class = Class::Handle( |
1241 Isolate::Current()->object_store()->double_class()); | 1246 Isolate::Current()->object_store()->double_class()); |
1242 __ TryAllocate(double_class, | 1247 __ TryAllocate(double_class, |
1243 &fall_through, | 1248 &fall_through, |
1244 Assembler::kNearJump, | 1249 Assembler::kNearJump, |
1245 EAX); // Result register. | 1250 EAX, // Result register. |
| 1251 EBX); |
1246 __ movsd(FieldAddress(EAX, Double::value_offset()), XMM0); | 1252 __ movsd(FieldAddress(EAX, Double::value_offset()), XMM0); |
1247 __ ret(); | 1253 __ ret(); |
1248 __ Bind(&fall_through); | 1254 __ Bind(&fall_through); |
1249 } | 1255 } |
1250 | 1256 |
1251 | 1257 |
1252 void Intrinsifier::Double_getIsNaN(Assembler* assembler) { | 1258 void Intrinsifier::Double_getIsNaN(Assembler* assembler) { |
1253 Label is_true; | 1259 Label is_true; |
1254 __ movl(EAX, Address(ESP, +1 * kWordSize)); | 1260 __ movl(EAX, Address(ESP, +1 * kWordSize)); |
1255 __ movsd(XMM0, FieldAddress(EAX, Double::value_offset())); | 1261 __ movsd(XMM0, FieldAddress(EAX, Double::value_offset())); |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1308 TestLastArgumentIsDouble(assembler, &is_smi, &fall_through); | 1314 TestLastArgumentIsDouble(assembler, &is_smi, &fall_through); |
1309 // Argument is double and is in EAX. | 1315 // Argument is double and is in EAX. |
1310 __ movsd(XMM1, FieldAddress(EAX, Double::value_offset())); | 1316 __ movsd(XMM1, FieldAddress(EAX, Double::value_offset())); |
1311 __ Bind(&double_op); | 1317 __ Bind(&double_op); |
1312 __ sqrtsd(XMM0, XMM1); | 1318 __ sqrtsd(XMM0, XMM1); |
1313 const Class& double_class = Class::Handle( | 1319 const Class& double_class = Class::Handle( |
1314 Isolate::Current()->object_store()->double_class()); | 1320 Isolate::Current()->object_store()->double_class()); |
1315 __ TryAllocate(double_class, | 1321 __ TryAllocate(double_class, |
1316 &fall_through, | 1322 &fall_through, |
1317 Assembler::kNearJump, | 1323 Assembler::kNearJump, |
1318 EAX); // Result register. | 1324 EAX, // Result register. |
| 1325 EBX); |
1319 __ movsd(FieldAddress(EAX, Double::value_offset()), XMM0); | 1326 __ movsd(FieldAddress(EAX, Double::value_offset()), XMM0); |
1320 __ ret(); | 1327 __ ret(); |
1321 __ Bind(&is_smi); | 1328 __ Bind(&is_smi); |
1322 __ SmiUntag(EAX); | 1329 __ SmiUntag(EAX); |
1323 __ cvtsi2sd(XMM1, EAX); | 1330 __ cvtsi2sd(XMM1, EAX); |
1324 __ jmp(&double_op); | 1331 __ jmp(&double_op); |
1325 __ Bind(&fall_through); | 1332 __ Bind(&fall_through); |
1326 } | 1333 } |
1327 | 1334 |
1328 | 1335 |
(...skipping 15 matching lines...) Expand all Loading... |
1344 case kCosine: __ fcos(); break; | 1351 case kCosine: __ fcos(); break; |
1345 default: | 1352 default: |
1346 UNREACHABLE(); | 1353 UNREACHABLE(); |
1347 } | 1354 } |
1348 const Class& double_class = Class::Handle( | 1355 const Class& double_class = Class::Handle( |
1349 Isolate::Current()->object_store()->double_class()); | 1356 Isolate::Current()->object_store()->double_class()); |
1350 Label alloc_failed; | 1357 Label alloc_failed; |
1351 __ TryAllocate(double_class, | 1358 __ TryAllocate(double_class, |
1352 &alloc_failed, | 1359 &alloc_failed, |
1353 Assembler::kNearJump, | 1360 Assembler::kNearJump, |
1354 EAX); // Result register. | 1361 EAX, // Result register. |
| 1362 EBX); |
1355 __ fstpl(FieldAddress(EAX, Double::value_offset())); | 1363 __ fstpl(FieldAddress(EAX, Double::value_offset())); |
1356 __ ret(); | 1364 __ ret(); |
1357 | 1365 |
1358 __ Bind(&is_smi); // smi -> double. | 1366 __ Bind(&is_smi); // smi -> double. |
1359 __ SmiUntag(EAX); | 1367 __ SmiUntag(EAX); |
1360 __ pushl(EAX); | 1368 __ pushl(EAX); |
1361 __ filds(Address(ESP, 0)); | 1369 __ filds(Address(ESP, 0)); |
1362 __ popl(EAX); | 1370 __ popl(EAX); |
1363 __ jmp(&double_op); | 1371 __ jmp(&double_op); |
1364 | 1372 |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1603 // EBX: potential next object start. | 1611 // EBX: potential next object start. |
1604 // EDI: allocation size. | 1612 // EDI: allocation size. |
1605 __ cmpl(EBX, Address::Absolute(heap->EndAddress())); | 1613 __ cmpl(EBX, Address::Absolute(heap->EndAddress())); |
1606 __ j(ABOVE_EQUAL, &pop_and_fail, Assembler::kNearJump); | 1614 __ j(ABOVE_EQUAL, &pop_and_fail, Assembler::kNearJump); |
1607 | 1615 |
1608 // Successfully allocated the object(s), now update top to point to | 1616 // Successfully allocated the object(s), now update top to point to |
1609 // next object start and initialize the object. | 1617 // next object start and initialize the object. |
1610 __ movl(Address::Absolute(heap->TopAddress()), EBX); | 1618 __ movl(Address::Absolute(heap->TopAddress()), EBX); |
1611 __ addl(EAX, Immediate(kHeapObjectTag)); | 1619 __ addl(EAX, Immediate(kHeapObjectTag)); |
1612 | 1620 |
| 1621 __ BumpAllocationCount(Heap::kNew, kOneByteStringCid, EDI, kNoRegister); |
| 1622 |
1613 // Initialize the tags. | 1623 // Initialize the tags. |
1614 // EAX: new object start as a tagged pointer. | 1624 // EAX: new object start as a tagged pointer. |
1615 // EBX: new object end address. | 1625 // EBX: new object end address. |
1616 // EDI: allocation size. | 1626 // EDI: allocation size. |
1617 { | 1627 { |
1618 Label size_tag_overflow, done; | 1628 Label size_tag_overflow, done; |
1619 __ cmpl(EDI, Immediate(RawObject::SizeTag::kMaxSizeTag)); | 1629 __ cmpl(EDI, Immediate(RawObject::SizeTag::kMaxSizeTag)); |
1620 __ j(ABOVE, &size_tag_overflow, Assembler::kNearJump); | 1630 __ j(ABOVE, &size_tag_overflow, Assembler::kNearJump); |
1621 __ shll(EDI, Immediate(RawObject::kSizeTagBit - kObjectAlignmentLog2)); | 1631 __ shll(EDI, Immediate(RawObject::kSizeTagBit - kObjectAlignmentLog2)); |
1622 __ jmp(&done, Assembler::kNearJump); | 1632 __ jmp(&done, Assembler::kNearJump); |
(...skipping 10 matching lines...) Expand all Loading... |
1633 } | 1643 } |
1634 | 1644 |
1635 // Set the length field. | 1645 // Set the length field. |
1636 __ popl(EDI); | 1646 __ popl(EDI); |
1637 __ StoreIntoObjectNoBarrier(EAX, | 1647 __ StoreIntoObjectNoBarrier(EAX, |
1638 FieldAddress(EAX, String::length_offset()), | 1648 FieldAddress(EAX, String::length_offset()), |
1639 EDI); | 1649 EDI); |
1640 // Clear hash. | 1650 // Clear hash. |
1641 __ movl(FieldAddress(EAX, String::hash_offset()), Immediate(0)); | 1651 __ movl(FieldAddress(EAX, String::hash_offset()), Immediate(0)); |
1642 __ jmp(ok, Assembler::kNearJump); | 1652 __ jmp(ok, Assembler::kNearJump); |
1643 | |
1644 __ Bind(&pop_and_fail); | 1653 __ Bind(&pop_and_fail); |
1645 __ popl(EDI); | 1654 __ popl(EDI); |
1646 __ jmp(failure); | 1655 __ jmp(failure); |
1647 } | 1656 } |
1648 | 1657 |
1649 | 1658 |
1650 // Arg0: OneByteString (receiver) | 1659 // Arg0: OneByteString (receiver) |
1651 // Arg1: Start index as Smi. | 1660 // Arg1: Start index as Smi. |
1652 // Arg2: End index as Smi. | 1661 // Arg2: End index as Smi. |
1653 // The indexes must be valid. | 1662 // The indexes must be valid. |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1783 | 1792 |
1784 | 1793 |
1785 void Intrinsifier::TwoByteString_equality(Assembler* assembler) { | 1794 void Intrinsifier::TwoByteString_equality(Assembler* assembler) { |
1786 StringEquality(assembler, kTwoByteStringCid); | 1795 StringEquality(assembler, kTwoByteStringCid); |
1787 } | 1796 } |
1788 | 1797 |
1789 #undef __ | 1798 #undef __ |
1790 } // namespace dart | 1799 } // namespace dart |
1791 | 1800 |
1792 #endif // defined TARGET_ARCH_IA32 | 1801 #endif // defined TARGET_ARCH_IA32 |
OLD | NEW |