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/ia32/macro-assembler-ia32.cc

Issue 6097010: Fix GC issue in instanceof stub... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' 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/ia32/lithium-codegen-ia32.cc ('k') | src/x64/macro-assembler-x64.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 1697 matching lines...) Expand 10 before | Expand all | Expand 10 after
1708 intptr_t p1 = reinterpret_cast<intptr_t>(msg); 1708 intptr_t p1 = reinterpret_cast<intptr_t>(msg);
1709 intptr_t p0 = (p1 & ~kSmiTagMask) + kSmiTag; 1709 intptr_t p0 = (p1 & ~kSmiTagMask) + kSmiTag;
1710 ASSERT(reinterpret_cast<Object*>(p0)->IsSmi()); 1710 ASSERT(reinterpret_cast<Object*>(p0)->IsSmi());
1711 #ifdef DEBUG 1711 #ifdef DEBUG
1712 if (msg != NULL) { 1712 if (msg != NULL) {
1713 RecordComment("Abort message: "); 1713 RecordComment("Abort message: ");
1714 RecordComment(msg); 1714 RecordComment(msg);
1715 } 1715 }
1716 #endif 1716 #endif
1717 // Disable stub call restrictions to always allow calls to abort. 1717 // Disable stub call restrictions to always allow calls to abort.
1718 set_allow_stub_calls(true); 1718 AllowStubCallsScope allow_scope(this, true);
1719 1719
1720 push(eax); 1720 push(eax);
1721 push(Immediate(p0)); 1721 push(Immediate(p0));
1722 push(Immediate(reinterpret_cast<intptr_t>(Smi::FromInt(p1 - p0)))); 1722 push(Immediate(reinterpret_cast<intptr_t>(Smi::FromInt(p1 - p0))));
1723 CallRuntime(Runtime::kAbort, 2); 1723 CallRuntime(Runtime::kAbort, 2);
1724 // will not return here 1724 // will not return here
1725 int3(); 1725 int3();
1726 } 1726 }
1727 1727
1728 1728
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
1891 1891
1892 // Check that the code was patched as expected. 1892 // Check that the code was patched as expected.
1893 ASSERT(masm_.pc_ == address_ + size_); 1893 ASSERT(masm_.pc_ == address_ + size_);
1894 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap); 1894 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap);
1895 } 1895 }
1896 1896
1897 1897
1898 } } // namespace v8::internal 1898 } } // namespace v8::internal
1899 1899
1900 #endif // V8_TARGET_ARCH_IA32 1900 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698