Revision f230a1cf deps/v8/src/debug.cc

View differences:

deps/v8/src/debug.cc
1793 1793
        // function to be called and not the code for Builtins::FunctionApply or
1794 1794
        // Builtins::FunctionCall. The receiver of call/apply is the target
1795 1795
        // function.
1796
        if (!holder.is_null() && holder->IsJSFunction() &&
1797
            !JSFunction::cast(*holder)->IsBuiltin()) {
1796
        if (!holder.is_null() && holder->IsJSFunction()) {
1798 1797
          Handle<JSFunction> js_function = Handle<JSFunction>::cast(holder);
1799
          Debug::FloodWithOneShot(js_function);
1798
          if (!js_function->IsBuiltin()) {
1799
            Debug::FloodWithOneShot(js_function);
1800
          } else if (js_function->shared()->bound()) {
1801
            // Handle Function.prototype.bind
1802
            Debug::FloodBoundFunctionWithOneShot(js_function);
1803
          }
1800 1804
        }
1801 1805
      } else {
1802 1806
        Debug::FloodWithOneShot(function);
......
2102 2106

  
2103 2107
          if (!shared->allows_lazy_compilation()) continue;
2104 2108
          if (!shared->script()->IsScript()) continue;
2109
          if (function->IsBuiltin()) continue;
2105 2110
          if (shared->code()->gc_metadata() == active_code_marker) continue;
2106 2111

  
2107 2112
          Code::Kind kind = function->code()->kind();
......
3131 3136
    v8::Local<v8::Function> fun =
3132 3137
        v8::Local<v8::Function>::Cast(api_exec_state->Get(fun_name));
3133 3138

  
3134
    v8::Handle<v8::Boolean> running =
3135
        auto_continue ? v8::True() : v8::False();
3139
    v8::Handle<v8::Boolean> running = v8::Boolean::New(auto_continue);
3136 3140
    static const int kArgc = 1;
3137 3141
    v8::Handle<Value> argv[kArgc] = { running };
3138 3142
    cmd_processor = v8::Local<v8::Object>::Cast(

Also available in: Unified diff