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

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

Issue 6368009: ARM: Implement StringLength and StringCharCodeAt in the lithium-arm (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address comments Created 9 years, 11 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 | « src/arm/lithium-codegen-arm.cc ('k') | 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 723 matching lines...) Expand 10 before | Expand all | Expand 10 after
734 mov(reg, Operand(reg, ASR, kSmiTagSize)); 734 mov(reg, Operand(reg, ASR, kSmiTagSize));
735 } 735 }
736 736
737 // Jump if either of the registers contain a non-smi. 737 // Jump if either of the registers contain a non-smi.
738 void JumpIfNotBothSmi(Register reg1, Register reg2, Label* on_not_both_smi); 738 void JumpIfNotBothSmi(Register reg1, Register reg2, Label* on_not_both_smi);
739 // Jump if either of the registers contain a smi. 739 // Jump if either of the registers contain a smi.
740 void JumpIfEitherSmi(Register reg1, Register reg2, Label* on_either_smi); 740 void JumpIfEitherSmi(Register reg1, Register reg2, Label* on_either_smi);
741 741
742 // Abort execution if argument is a smi. Used in debug code. 742 // Abort execution if argument is a smi. Used in debug code.
743 void AbortIfSmi(Register object); 743 void AbortIfSmi(Register object);
744 void AbortIfNotSmi(Register object);
744 745
745 // --------------------------------------------------------------------------- 746 // ---------------------------------------------------------------------------
746 // String utilities 747 // String utilities
747 748
748 // Checks if both objects are sequential ASCII strings and jumps to label 749 // Checks if both objects are sequential ASCII strings and jumps to label
749 // if either is not. Assumes that neither object is a smi. 750 // if either is not. Assumes that neither object is a smi.
750 void JumpIfNonSmisNotBothSequentialAsciiStrings(Register object1, 751 void JumpIfNonSmisNotBothSequentialAsciiStrings(Register object1,
751 Register object2, 752 Register object2,
752 Register scratch1, 753 Register scratch1,
753 Register scratch2, 754 Register scratch2,
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
875 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 876 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
876 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 877 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
877 #else 878 #else
878 #define ACCESS_MASM(masm) masm-> 879 #define ACCESS_MASM(masm) masm->
879 #endif 880 #endif
880 881
881 882
882 } } // namespace v8::internal 883 } } // namespace v8::internal
883 884
884 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ 885 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/arm/macro-assembler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698