| 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/runtime/runtime-utils.h" | 5 #include "src/runtime/runtime-utils.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/frames-inl.h" | 9 #include "src/frames-inl.h" |
| 10 #include "src/full-codegen/full-codegen.h" | 10 #include "src/full-codegen/full-codegen.h" |
| (...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 393 return *isolate->factory()->NewStringFromAsciiChecked(version_string); | 393 return *isolate->factory()->NewStringFromAsciiChecked(version_string); |
| 394 } | 394 } |
| 395 | 395 |
| 396 | 396 |
| 397 RUNTIME_FUNCTION(Runtime_DisassembleFunction) { | 397 RUNTIME_FUNCTION(Runtime_DisassembleFunction) { |
| 398 HandleScope scope(isolate); | 398 HandleScope scope(isolate); |
| 399 #ifdef DEBUG | 399 #ifdef DEBUG |
| 400 DCHECK(args.length() == 1); | 400 DCHECK(args.length() == 1); |
| 401 // Get the function and make sure it is compiled. | 401 // Get the function and make sure it is compiled. |
| 402 CONVERT_ARG_HANDLE_CHECKED(JSFunction, func, 0); | 402 CONVERT_ARG_HANDLE_CHECKED(JSFunction, func, 0); |
| 403 if (!Compiler::EnsureCompiled(func, KEEP_EXCEPTION)) { | 403 if (!Compiler::Compile(func, KEEP_EXCEPTION)) { |
| 404 return isolate->heap()->exception(); | 404 return isolate->heap()->exception(); |
| 405 } | 405 } |
| 406 OFStream os(stdout); | 406 OFStream os(stdout); |
| 407 func->code()->Print(os); | 407 func->code()->Print(os); |
| 408 os << std::endl; | 408 os << std::endl; |
| 409 #endif // DEBUG | 409 #endif // DEBUG |
| 410 return isolate->heap()->undefined_value(); | 410 return isolate->heap()->undefined_value(); |
| 411 } | 411 } |
| 412 | 412 |
| 413 | 413 |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 491 RUNTIME_FUNCTION(Runtime_HasFixed##Type##Elements) { \ | 491 RUNTIME_FUNCTION(Runtime_HasFixed##Type##Elements) { \ |
| 492 CONVERT_ARG_CHECKED(JSObject, obj, 0); \ | 492 CONVERT_ARG_CHECKED(JSObject, obj, 0); \ |
| 493 return isolate->heap()->ToBoolean(obj->HasFixed##Type##Elements()); \ | 493 return isolate->heap()->ToBoolean(obj->HasFixed##Type##Elements()); \ |
| 494 } | 494 } |
| 495 | 495 |
| 496 TYPED_ARRAYS(FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION) | 496 TYPED_ARRAYS(FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION) |
| 497 | 497 |
| 498 #undef FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION | 498 #undef FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION |
| 499 } // namespace internal | 499 } // namespace internal |
| 500 } // namespace v8 | 500 } // namespace v8 |
| OLD | NEW |