| 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.h" | 10 #include "src/runtime/runtime.h" |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |