Commit 19dc4f4f authored by lrn@chromium.org's avatar lrn@chromium.org

Revert try-commit.

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4742 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 72f19229
......@@ -1245,38 +1245,17 @@ void RegExpMacroAssemblerX64::BranchOrBacktrack(Condition condition,
void RegExpMacroAssemblerX64::SafeCall(Label* to) {
__ call(to);
//// TESTING CODE - REVERT WHEN TEST IS DONE.
__ nop();
//// END TESTING CODE
}
void RegExpMacroAssemblerX64::SafeCallTarget(Label* label) {
__ bind(label);
//// TESTING CODE - REVERT WHEN TEST IS DONE.
__ movq(rax, Operand(rsp, 0));
__ movb(rax, Operand(rax, 0));
__ cmpb(rax, Immediate(0x90)); // Points to nop.
Label ok;
__ j(equal, &ok);
__ int3();
__ bind(&ok);
//// END TESTING CODE
__ subq(Operand(rsp, 0), code_object_pointer());
}
void RegExpMacroAssemblerX64::SafeReturn() {
__ addq(Operand(rsp, 0), code_object_pointer());
//// TESTING CODE - REVERT WHEN TEST IS DONE.
__ movq(rax, Operand(rsp, 0));
__ movb(rax, Operand(rax, 0));
__ cmpb(rax, Immediate(0x90)); // Points to nop.
Label ok;
__ j(equal, &ok);
__ int3();
__ bind(&ok);
//// END TESTING CODE
__ ret(0);
}
......
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