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

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

Issue 1155773003: Unbreak %DebugPrint output. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 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 | « no previous file | no next file » | 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-utils.h" 10 #include "src/runtime/runtime-utils.h"
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 SealHandleScope shs(isolate); 271 SealHandleScope shs(isolate);
272 DCHECK(args.length() == 1); 272 DCHECK(args.length() == 1);
273 273
274 OFStream os(stdout); 274 OFStream os(stdout);
275 #ifdef DEBUG 275 #ifdef DEBUG
276 if (args[0]->IsString()) { 276 if (args[0]->IsString()) {
277 // If we have a string, assume it's a code "marker" 277 // If we have a string, assume it's a code "marker"
278 // and print some interesting cpu debugging info. 278 // and print some interesting cpu debugging info.
279 JavaScriptFrameIterator it(isolate); 279 JavaScriptFrameIterator it(isolate);
280 JavaScriptFrame* frame = it.frame(); 280 JavaScriptFrame* frame = it.frame();
281 os << "fp = " << frame->fp() << ", sp = " << frame->sp() 281 os << "fp = " << static_cast<void*>(frame->fp())
282 << ", caller_sp = " << frame->caller_sp() << ": "; 282 << ", sp = " << static_cast<void*>(frame->sp())
283 << ", caller_sp = " << static_cast<void*>(frame->caller_sp()) << ": ";
283 } else { 284 } else {
284 os << "DebugPrint: "; 285 os << "DebugPrint: ";
285 } 286 }
286 args[0]->Print(os); 287 args[0]->Print(os);
287 if (args[0]->IsHeapObject()) { 288 if (args[0]->IsHeapObject()) {
288 os << "\n"; 289 os << "\n";
289 HeapObject::cast(args[0])->map()->Print(os); 290 HeapObject::cast(args[0])->map()->Print(os);
290 } 291 }
291 #else 292 #else
292 // ShortPrint is available in release mode. Print is not. 293 // ShortPrint is available in release mode. Print is not.
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 RUNTIME_FUNCTION(Runtime_HasFixed##Type##Elements) { \ 497 RUNTIME_FUNCTION(Runtime_HasFixed##Type##Elements) { \
497 CONVERT_ARG_CHECKED(JSObject, obj, 0); \ 498 CONVERT_ARG_CHECKED(JSObject, obj, 0); \
498 return isolate->heap()->ToBoolean(obj->HasFixed##Type##Elements()); \ 499 return isolate->heap()->ToBoolean(obj->HasFixed##Type##Elements()); \
499 } 500 }
500 501
501 TYPED_ARRAYS(FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION) 502 TYPED_ARRAYS(FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION)
502 503
503 #undef FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION 504 #undef FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION
504 } // namespace internal 505 } // namespace internal
505 } // namespace v8 506 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698