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

Side by Side Diff: src/arm/ic-arm.cc

Issue 21063002: Out-of-line constant pool on Arm: Stage 1 - Free up r7 for use as constant pool pointer register (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix typo 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1421 matching lines...) Expand 10 before | Expand all | Expand 10 after
1432 Label slow, fast_object, fast_object_grow; 1432 Label slow, fast_object, fast_object_grow;
1433 Label fast_double, fast_double_grow; 1433 Label fast_double, fast_double_grow;
1434 Label array, extra, check_if_double_array; 1434 Label array, extra, check_if_double_array;
1435 1435
1436 // Register usage. 1436 // Register usage.
1437 Register value = r0; 1437 Register value = r0;
1438 Register key = r1; 1438 Register key = r1;
1439 Register receiver = r2; 1439 Register receiver = r2;
1440 Register receiver_map = r3; 1440 Register receiver_map = r3;
1441 Register elements_map = r6; 1441 Register elements_map = r6;
1442 Register elements = r7; // Elements array of the receiver. 1442 Register elements = r9; // Elements array of the receiver.
1443 // r4 and r5 are used as general scratch registers. 1443 // r4 and r5 are used as general scratch registers.
1444 1444
1445 // Check that the key is a smi. 1445 // Check that the key is a smi.
1446 __ JumpIfNotSmi(key, &slow); 1446 __ JumpIfNotSmi(key, &slow);
1447 // Check that the object isn't a smi. 1447 // Check that the object isn't a smi.
1448 __ JumpIfSmi(receiver, &slow); 1448 __ JumpIfSmi(receiver, &slow);
1449 // Get the map of the object. 1449 // Get the map of the object.
1450 __ ldr(receiver_map, FieldMemOperand(receiver, HeapObject::kMapOffset)); 1450 __ ldr(receiver_map, FieldMemOperand(receiver, HeapObject::kMapOffset));
1451 // Check that the receiver does not require access checks. We need 1451 // Check that the receiver does not require access checks. We need
1452 // to do this because this generic stub does not perform map checks. 1452 // to do this because this generic stub does not perform map checks.
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
1698 } else { 1698 } else {
1699 ASSERT(Assembler::GetCondition(branch_instr) == ne); 1699 ASSERT(Assembler::GetCondition(branch_instr) == ne);
1700 patcher.EmitCondition(eq); 1700 patcher.EmitCondition(eq);
1701 } 1701 }
1702 } 1702 }
1703 1703
1704 1704
1705 } } // namespace v8::internal 1705 } } // namespace v8::internal
1706 1706
1707 #endif // V8_TARGET_ARCH_ARM 1707 #endif // V8_TARGET_ARCH_ARM
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698