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

Side by Side Diff: src/runtime/runtime-test.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/runtime/runtime-debug.cc ('k') | src/safepoint-table.h » ('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/arguments.h" 7 #include "src/arguments.h"
8 #include "src/deoptimizer.h" 8 #include "src/deoptimizer.h"
9 #include "src/full-codegen.h" 9 #include "src/full-codegen.h"
10 #include "src/runtime/runtime.h" 10 #include "src/runtime/runtime.h"
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 } 208 }
209 args[0]->Print(os); 209 args[0]->Print(os);
210 if (args[0]->IsHeapObject()) { 210 if (args[0]->IsHeapObject()) {
211 os << "\n"; 211 os << "\n";
212 HeapObject::cast(args[0])->map()->Print(os); 212 HeapObject::cast(args[0])->map()->Print(os);
213 } 213 }
214 #else 214 #else
215 // ShortPrint is available in release mode. Print is not. 215 // ShortPrint is available in release mode. Print is not.
216 os << Brief(args[0]); 216 os << Brief(args[0]);
217 #endif 217 #endif
218 os << endl; 218 os << std::endl;
219 219
220 return args[0]; // return TOS 220 return args[0]; // return TOS
221 } 221 }
222 222
223 223
224 RUNTIME_FUNCTION(Runtime_DebugTrace) { 224 RUNTIME_FUNCTION(Runtime_DebugTrace) {
225 SealHandleScope shs(isolate); 225 SealHandleScope shs(isolate);
226 DCHECK(args.length() == 0); 226 DCHECK(args.length() == 0);
227 isolate->PrintStack(stdout); 227 isolate->PrintStack(stdout);
228 return isolate->heap()->undefined_value(); 228 return isolate->heap()->undefined_value();
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 RUNTIME_FUNCTION(Runtime_HasFixed##Type##Elements) { \ 391 RUNTIME_FUNCTION(Runtime_HasFixed##Type##Elements) { \
392 CONVERT_ARG_CHECKED(JSObject, obj, 0); \ 392 CONVERT_ARG_CHECKED(JSObject, obj, 0); \
393 return isolate->heap()->ToBoolean(obj->HasFixed##Type##Elements()); \ 393 return isolate->heap()->ToBoolean(obj->HasFixed##Type##Elements()); \
394 } 394 }
395 395
396 TYPED_ARRAYS(FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION) 396 TYPED_ARRAYS(FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION)
397 397
398 #undef FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION 398 #undef FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION
399 } 399 }
400 } // namespace v8::internal 400 } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/runtime/runtime-debug.cc ('k') | src/safepoint-table.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698