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
This commit is contained in:
parent
e97554ed10
commit
cd16b5be95
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user