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

Side by Side Diff: src/arm/macro-assembler-arm.h

Issue 6614015: Add new ARM macro assembler function CompareRoot left out of previous commit. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 9 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
« no previous file with comments | « no previous file | src/arm/macro-assembler-arm.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 559 matching lines...) Expand 10 before | Expand all | Expand 10 after
570 Label* fail, 570 Label* fail,
571 bool is_heap_object); 571 bool is_heap_object);
572 572
573 void CheckMap(Register obj, 573 void CheckMap(Register obj,
574 Register scratch, 574 Register scratch,
575 Heap::RootListIndex index, 575 Heap::RootListIndex index,
576 Label* fail, 576 Label* fail,
577 bool is_heap_object); 577 bool is_heap_object);
578 578
579 579
580 // Compare the object in a register to a value from the root list.
581 // Uses the ip register as scratch.
582 void CompareRoot(Register obj, Heap::RootListIndex index);
583
584
580 // Load and check the instance type of an object for being a string. 585 // Load and check the instance type of an object for being a string.
581 // Loads the type into the second argument register. 586 // Loads the type into the second argument register.
582 // Returns a condition that will be enabled if the object was a string. 587 // Returns a condition that will be enabled if the object was a string.
583 Condition IsObjectStringType(Register obj, 588 Condition IsObjectStringType(Register obj,
584 Register type) { 589 Register type) {
585 ldr(type, FieldMemOperand(obj, HeapObject::kMapOffset)); 590 ldr(type, FieldMemOperand(obj, HeapObject::kMapOffset));
586 ldrb(type, FieldMemOperand(type, Map::kInstanceTypeOffset)); 591 ldrb(type, FieldMemOperand(type, Map::kInstanceTypeOffset));
587 tst(type, Operand(kIsNotStringMask)); 592 tst(type, Operand(kIsNotStringMask));
588 ASSERT_EQ(0, kStringTag); 593 ASSERT_EQ(0, kStringTag);
589 return eq; 594 return eq;
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
1006 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1011 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1007 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1012 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1008 #else 1013 #else
1009 #define ACCESS_MASM(masm) masm-> 1014 #define ACCESS_MASM(masm) masm->
1010 #endif 1015 #endif
1011 1016
1012 1017
1013 } } // namespace v8::internal 1018 } } // namespace v8::internal
1014 1019
1015 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ 1020 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/arm/macro-assembler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698