Commit cd16b5be authored by yurys@chromium.org's avatar yurys@chromium.org

Use JSFunction::IsBuiltin() for checking if a function is a builtin one

Review URL: http://codereview.chromium.org/160323

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@2575 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent e97554ed
......@@ -592,14 +592,14 @@ Object* Execution::DebugBreakHelper() {
ASSERT(!it.done());
Object* fun = it.frame()->function();
if (fun && fun->IsJSFunction()) {
GlobalObject* global = JSFunction::cast(fun)->context()->global();
// Don't stop in builtin functions.
if (global == Top::context()->builtins()) {
return Heap::undefined_value();
if (JSFunction::cast(fun)->IsBuiltin()) {
return Heap::undefined_value();
}
GlobalObject* global = JSFunction::cast(fun)->context()->global();
// Don't stop in debugger functions.
if (Debug::IsDebugGlobal(global)) {
return Heap::undefined_value();
return Heap::undefined_value();
}
}
}
......
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