Commit 9e55943b authored by ulan@chromium.org's avatar ulan@chromium.org

Add missing literal pool guards.

BUG=V8:2095
TEST=see issue

Review URL: https://chromiumcodereview.appspot.com/10233006
Patch from Rodolph Perfetta <rodolph.perfetta@gmail.com>.

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11447 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 7783ba5d
...@@ -70,6 +70,7 @@ class JumpPatchSite BASE_EMBEDDED { ...@@ -70,6 +70,7 @@ class JumpPatchSite BASE_EMBEDDED {
// the inlined smi code. // the inlined smi code.
void EmitJumpIfNotSmi(Register reg, Label* target) { void EmitJumpIfNotSmi(Register reg, Label* target) {
ASSERT(!patch_site_.is_bound() && !info_emitted_); ASSERT(!patch_site_.is_bound() && !info_emitted_);
Assembler::BlockConstPoolScope block_const_pool(masm_);
__ bind(&patch_site_); __ bind(&patch_site_);
__ cmp(reg, Operand(reg)); __ cmp(reg, Operand(reg));
// Don't use b(al, ...) as that might emit the constant pool right after the // Don't use b(al, ...) as that might emit the constant pool right after the
...@@ -82,6 +83,7 @@ class JumpPatchSite BASE_EMBEDDED { ...@@ -82,6 +83,7 @@ class JumpPatchSite BASE_EMBEDDED {
// the inlined smi code. // the inlined smi code.
void EmitJumpIfSmi(Register reg, Label* target) { void EmitJumpIfSmi(Register reg, Label* target) {
ASSERT(!patch_site_.is_bound() && !info_emitted_); ASSERT(!patch_site_.is_bound() && !info_emitted_);
Assembler::BlockConstPoolScope block_const_pool(masm_);
__ bind(&patch_site_); __ bind(&patch_site_);
__ cmp(reg, Operand(reg)); __ cmp(reg, Operand(reg));
__ b(ne, target); // Never taken before patched. __ b(ne, target); // Never taken before patched.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment