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

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

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/macro-assembler-arm.h ('k') | src/ia32/lithium-codegen-ia32.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 1952 matching lines...) Expand 10 before | Expand all | Expand 10 after
1963 } 1963 }
1964 1964
1965 1965
1966 void MacroAssembler::AbortIfSmi(Register object) { 1966 void MacroAssembler::AbortIfSmi(Register object) {
1967 ASSERT_EQ(0, kSmiTag); 1967 ASSERT_EQ(0, kSmiTag);
1968 tst(object, Operand(kSmiTagMask)); 1968 tst(object, Operand(kSmiTagMask));
1969 Assert(ne, "Operand is a smi"); 1969 Assert(ne, "Operand is a smi");
1970 } 1970 }
1971 1971
1972 1972
1973 void MacroAssembler::AbortIfNotSmi(Register object) {
1974 ASSERT_EQ(0, kSmiTag);
1975 tst(object, Operand(kSmiTagMask));
1976 Assert(eq, "Operand is not smi");
1977 }
1978
1979
1973 void MacroAssembler::JumpIfNonSmisNotBothSequentialAsciiStrings( 1980 void MacroAssembler::JumpIfNonSmisNotBothSequentialAsciiStrings(
1974 Register first, 1981 Register first,
1975 Register second, 1982 Register second,
1976 Register scratch1, 1983 Register scratch1,
1977 Register scratch2, 1984 Register scratch2,
1978 Label* failure) { 1985 Label* failure) {
1979 // Test that both first and second are sequential ASCII strings. 1986 // Test that both first and second are sequential ASCII strings.
1980 // Assume that they are non-smis. 1987 // Assume that they are non-smis.
1981 ldr(scratch1, FieldMemOperand(first, HeapObject::kMapOffset)); 1988 ldr(scratch1, FieldMemOperand(first, HeapObject::kMapOffset));
1982 ldr(scratch2, FieldMemOperand(second, HeapObject::kMapOffset)); 1989 ldr(scratch2, FieldMemOperand(second, HeapObject::kMapOffset));
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
2245 2252
2246 void CodePatcher::Emit(Address addr) { 2253 void CodePatcher::Emit(Address addr) {
2247 masm()->emit(reinterpret_cast<Instr>(addr)); 2254 masm()->emit(reinterpret_cast<Instr>(addr));
2248 } 2255 }
2249 #endif // ENABLE_DEBUGGER_SUPPORT 2256 #endif // ENABLE_DEBUGGER_SUPPORT
2250 2257
2251 2258
2252 } } // namespace v8::internal 2259 } } // namespace v8::internal
2253 2260
2254 #endif // V8_TARGET_ARCH_ARM 2261 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/macro-assembler-arm.h ('k') | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698