Index: src/debug.cc |
=================================================================== |
--- src/debug.cc (revision 2572) |
+++ src/debug.cc (working copy) |
@@ -1301,7 +1301,7 @@ |
// step into was requested. |
if (fp == Debug::step_in_fp()) { |
// Don't allow step into functions in the native context. |
- if (function->context()->global() != Top::context()->builtins()) { |
+ if (!function->IsBuiltin()) { |
if (function->shared()->code() == |
Builtins::builtin(Builtins::FunctionApply) || |
function->shared()->code() == |
@@ -1311,8 +1311,7 @@ |
// Builtins::FunctionCall. The receiver of call/apply is the target |
// function. |
if (!holder.is_null() && holder->IsJSFunction() && |
- JSFunction::cast(*holder)->context()->global() != |
- Top::context()->builtins()) { |
+ !JSFunction::cast(*holder)->IsBuiltin()) { |
Handle<SharedFunctionInfo> shared_info( |
JSFunction::cast(*holder)->shared()); |
Debug::FloodWithOneShot(shared_info); |