Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: src/runtime/runtime-debug.cc

Issue 999273003: Revert of Debugger: deduplicate shared function info when setting script break points. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/runtime/runtime.h ('k') | test/mjsunit/debug-liveedit-2.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/arguments.h" 8 #include "src/arguments.h"
9 #include "src/compiler.h" 9 #include "src/compiler.h"
10 #include "src/debug.h" 10 #include "src/debug.h"
(...skipping 2665 matching lines...) Expand 10 before | Expand all | Expand 10 after
2676 DebugScope debug_scope(isolate->debug()); 2676 DebugScope debug_scope(isolate->debug());
2677 maybe_result = Execution::Call(isolate, function, 2677 maybe_result = Execution::Call(isolate, function,
2678 handle(function->global_proxy()), 0, NULL); 2678 handle(function->global_proxy()), 0, NULL);
2679 } 2679 }
2680 Handle<Object> result; 2680 Handle<Object> result;
2681 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, result, maybe_result); 2681 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, result, maybe_result);
2682 return *result; 2682 return *result;
2683 } 2683 }
2684 2684
2685 2685
2686 RUNTIME_FUNCTION(Runtime_GetDebugContext) {
2687 HandleScope scope(isolate);
2688 DCHECK(args.length() == 0);
2689 Handle<Context> context = isolate->debug()->GetDebugContext();
2690 context->set_security_token(isolate->native_context()->security_token());
2691 return context->global_proxy();
2692 }
2693
2694
2695 // Performs a GC. 2686 // Performs a GC.
2696 // Presently, it only does a full GC. 2687 // Presently, it only does a full GC.
2697 RUNTIME_FUNCTION(Runtime_CollectGarbage) { 2688 RUNTIME_FUNCTION(Runtime_CollectGarbage) {
2698 SealHandleScope shs(isolate); 2689 SealHandleScope shs(isolate);
2699 DCHECK(args.length() == 1); 2690 DCHECK(args.length() == 1);
2700 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags, "%CollectGarbage"); 2691 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags, "%CollectGarbage");
2701 return isolate->heap()->undefined_value(); 2692 return isolate->heap()->undefined_value();
2702 } 2693 }
2703 2694
2704 2695
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
2832 return Smi::FromInt(isolate->debug()->is_active()); 2823 return Smi::FromInt(isolate->debug()->is_active());
2833 } 2824 }
2834 2825
2835 2826
2836 RUNTIME_FUNCTION(Runtime_DebugBreakInOptimizedCode) { 2827 RUNTIME_FUNCTION(Runtime_DebugBreakInOptimizedCode) {
2837 UNIMPLEMENTED(); 2828 UNIMPLEMENTED();
2838 return NULL; 2829 return NULL;
2839 } 2830 }
2840 } 2831 }
2841 } // namespace v8::internal 2832 } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/runtime/runtime.h ('k') | test/mjsunit/debug-liveedit-2.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698