| 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/ast/prettyprinter.h" | 8 #include "src/ast/prettyprinter.h" |
| 9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
| 10 #include "src/conversions.h" | 10 #include "src/conversions.h" |
| (...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 341 } | 341 } |
| 342 | 342 |
| 343 | 343 |
| 344 static inline Object* ReturnBoolean(bool value, Isolate* isolate) { | 344 static inline Object* ReturnBoolean(bool value, Isolate* isolate) { |
| 345 return isolate->heap()->ToBoolean(value); | 345 return isolate->heap()->ToBoolean(value); |
| 346 } | 346 } |
| 347 | 347 |
| 348 | 348 |
| 349 CALLSITE_GET(GetFileName, ReturnDereferencedHandle) | 349 CALLSITE_GET(GetFileName, ReturnDereferencedHandle) |
| 350 CALLSITE_GET(GetFunctionName, ReturnDereferencedHandle) | 350 CALLSITE_GET(GetFunctionName, ReturnDereferencedHandle) |
| 351 CALLSITE_GET(GetDebugName, ReturnDereferencedHandle) | |
| 352 CALLSITE_GET(GetScriptNameOrSourceUrl, ReturnDereferencedHandle) | 351 CALLSITE_GET(GetScriptNameOrSourceUrl, ReturnDereferencedHandle) |
| 353 CALLSITE_GET(GetMethodName, ReturnDereferencedHandle) | 352 CALLSITE_GET(GetMethodName, ReturnDereferencedHandle) |
| 354 CALLSITE_GET(GetLineNumber, ReturnPositiveNumberOrNull) | 353 CALLSITE_GET(GetLineNumber, ReturnPositiveNumberOrNull) |
| 355 CALLSITE_GET(GetColumnNumber, ReturnPositiveNumberOrNull) | 354 CALLSITE_GET(GetColumnNumber, ReturnPositiveNumberOrNull) |
| 356 CALLSITE_GET(IsNative, ReturnBoolean) | 355 CALLSITE_GET(IsNative, ReturnBoolean) |
| 357 CALLSITE_GET(IsToplevel, ReturnBoolean) | 356 CALLSITE_GET(IsToplevel, ReturnBoolean) |
| 358 CALLSITE_GET(IsEval, ReturnBoolean) | 357 CALLSITE_GET(IsEval, ReturnBoolean) |
| 359 CALLSITE_GET(IsConstructor, ReturnBoolean) | 358 CALLSITE_GET(IsConstructor, ReturnBoolean) |
| 360 | 359 |
| 361 #undef CALLSITE_GET | 360 #undef CALLSITE_GET |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 485 std::stringstream stats_stream; | 484 std::stringstream stats_stream; |
| 486 isolate->counters()->runtime_call_stats()->Print(stats_stream); | 485 isolate->counters()->runtime_call_stats()->Print(stats_stream); |
| 487 Handle<String> result = | 486 Handle<String> result = |
| 488 isolate->factory()->NewStringFromAsciiChecked(stats_stream.str().c_str()); | 487 isolate->factory()->NewStringFromAsciiChecked(stats_stream.str().c_str()); |
| 489 isolate->counters()->runtime_call_stats()->Reset(); | 488 isolate->counters()->runtime_call_stats()->Reset(); |
| 490 return *result; | 489 return *result; |
| 491 } | 490 } |
| 492 | 491 |
| 493 } // namespace internal | 492 } // namespace internal |
| 494 } // namespace v8 | 493 } // namespace v8 |
| OLD | NEW |