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

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

Issue 3117006: Handle overwriting valueOf on String objects correctly when adding... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 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
« no previous file with comments | « src/arm/macro-assembler-arm.h ('k') | src/bootstrapper.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 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 1638 matching lines...) Expand 10 before | Expand all | Expand 10 after
1649 void MacroAssembler::JumpIfEitherSmi(Register reg1, 1649 void MacroAssembler::JumpIfEitherSmi(Register reg1,
1650 Register reg2, 1650 Register reg2,
1651 Label* on_either_smi) { 1651 Label* on_either_smi) {
1652 ASSERT_EQ(0, kSmiTag); 1652 ASSERT_EQ(0, kSmiTag);
1653 tst(reg1, Operand(kSmiTagMask)); 1653 tst(reg1, Operand(kSmiTagMask));
1654 tst(reg2, Operand(kSmiTagMask), ne); 1654 tst(reg2, Operand(kSmiTagMask), ne);
1655 b(eq, on_either_smi); 1655 b(eq, on_either_smi);
1656 } 1656 }
1657 1657
1658 1658
1659 void MacroAssembler::AbortIfSmi(Register object) {
1660 ASSERT_EQ(0, kSmiTag);
1661 tst(object, Operand(kSmiTagMask));
1662 Assert(ne, "Operand is a smi");
1663 }
1664
1665
1659 void MacroAssembler::JumpIfNonSmisNotBothSequentialAsciiStrings( 1666 void MacroAssembler::JumpIfNonSmisNotBothSequentialAsciiStrings(
1660 Register first, 1667 Register first,
1661 Register second, 1668 Register second,
1662 Register scratch1, 1669 Register scratch1,
1663 Register scratch2, 1670 Register scratch2,
1664 Label* failure) { 1671 Label* failure) {
1665 // Test that both first and second are sequential ASCII strings. 1672 // Test that both first and second are sequential ASCII strings.
1666 // Assume that they are non-smis. 1673 // Assume that they are non-smis.
1667 ldr(scratch1, FieldMemOperand(first, HeapObject::kMapOffset)); 1674 ldr(scratch1, FieldMemOperand(first, HeapObject::kMapOffset));
1668 ldr(scratch2, FieldMemOperand(second, HeapObject::kMapOffset)); 1675 ldr(scratch2, FieldMemOperand(second, HeapObject::kMapOffset));
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
1911 1918
1912 void CodePatcher::Emit(Address addr) { 1919 void CodePatcher::Emit(Address addr) {
1913 masm()->emit(reinterpret_cast<Instr>(addr)); 1920 masm()->emit(reinterpret_cast<Instr>(addr));
1914 } 1921 }
1915 #endif // ENABLE_DEBUGGER_SUPPORT 1922 #endif // ENABLE_DEBUGGER_SUPPORT
1916 1923
1917 1924
1918 } } // namespace v8::internal 1925 } } // namespace v8::internal
1919 1926
1920 #endif // V8_TARGET_ARCH_ARM 1927 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/macro-assembler-arm.h ('k') | src/bootstrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698