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

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

Issue 618643002: Replace OStream with std::ostream. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix Created 6 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « src/property.cc ('k') | src/runtime/runtime-test.cc » ('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/debug.h" 9 #include "src/debug.h"
10 #include "src/deoptimizer.h" 10 #include "src/deoptimizer.h"
(...skipping 2469 matching lines...) Expand 10 before | Expand all | Expand 10 after
2480 HandleScope scope(isolate); 2480 HandleScope scope(isolate);
2481 #ifdef DEBUG 2481 #ifdef DEBUG
2482 DCHECK(args.length() == 1); 2482 DCHECK(args.length() == 1);
2483 // Get the function and make sure it is compiled. 2483 // Get the function and make sure it is compiled.
2484 CONVERT_ARG_HANDLE_CHECKED(JSFunction, func, 0); 2484 CONVERT_ARG_HANDLE_CHECKED(JSFunction, func, 0);
2485 if (!Compiler::EnsureCompiled(func, KEEP_EXCEPTION)) { 2485 if (!Compiler::EnsureCompiled(func, KEEP_EXCEPTION)) {
2486 return isolate->heap()->exception(); 2486 return isolate->heap()->exception();
2487 } 2487 }
2488 OFStream os(stdout); 2488 OFStream os(stdout);
2489 func->code()->Print(os); 2489 func->code()->Print(os);
2490 os << endl; 2490 os << std::endl;
2491 #endif // DEBUG 2491 #endif // DEBUG
2492 return isolate->heap()->undefined_value(); 2492 return isolate->heap()->undefined_value();
2493 } 2493 }
2494 2494
2495 2495
2496 RUNTIME_FUNCTION(Runtime_DebugDisassembleConstructor) { 2496 RUNTIME_FUNCTION(Runtime_DebugDisassembleConstructor) {
2497 HandleScope scope(isolate); 2497 HandleScope scope(isolate);
2498 #ifdef DEBUG 2498 #ifdef DEBUG
2499 DCHECK(args.length() == 1); 2499 DCHECK(args.length() == 1);
2500 // Get the function and make sure it is compiled. 2500 // Get the function and make sure it is compiled.
2501 CONVERT_ARG_HANDLE_CHECKED(JSFunction, func, 0); 2501 CONVERT_ARG_HANDLE_CHECKED(JSFunction, func, 0);
2502 if (!Compiler::EnsureCompiled(func, KEEP_EXCEPTION)) { 2502 if (!Compiler::EnsureCompiled(func, KEEP_EXCEPTION)) {
2503 return isolate->heap()->exception(); 2503 return isolate->heap()->exception();
2504 } 2504 }
2505 OFStream os(stdout); 2505 OFStream os(stdout);
2506 func->shared()->construct_stub()->Print(os); 2506 func->shared()->construct_stub()->Print(os);
2507 os << endl; 2507 os << std::endl;
2508 #endif // DEBUG 2508 #endif // DEBUG
2509 return isolate->heap()->undefined_value(); 2509 return isolate->heap()->undefined_value();
2510 } 2510 }
2511 2511
2512 2512
2513 RUNTIME_FUNCTION(Runtime_FunctionGetInferredName) { 2513 RUNTIME_FUNCTION(Runtime_FunctionGetInferredName) {
2514 SealHandleScope shs(isolate); 2514 SealHandleScope shs(isolate);
2515 DCHECK(args.length() == 1); 2515 DCHECK(args.length() == 1);
2516 2516
2517 CONVERT_ARG_CHECKED(JSFunction, f, 0); 2517 CONVERT_ARG_CHECKED(JSFunction, f, 0);
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
2727 return isolate->heap()->undefined_value(); 2727 return isolate->heap()->undefined_value();
2728 } 2728 }
2729 2729
2730 2730
2731 RUNTIME_FUNCTION(RuntimeReference_DebugIsActive) { 2731 RUNTIME_FUNCTION(RuntimeReference_DebugIsActive) {
2732 SealHandleScope shs(isolate); 2732 SealHandleScope shs(isolate);
2733 return Smi::FromInt(isolate->debug()->is_active()); 2733 return Smi::FromInt(isolate->debug()->is_active());
2734 } 2734 }
2735 } 2735 }
2736 } // namespace v8::internal 2736 } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/property.cc ('k') | src/runtime/runtime-test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698