| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |