| OLD | NEW |
| 1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 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/extensions/ignition-statistics-extension.h" | 5 #include "src/extensions/ignition-statistics-extension.h" |
| 6 | 6 |
| 7 #include "src/base/logging.h" | |
| 8 #include "src/interpreter/bytecodes.h" | 7 #include "src/interpreter/bytecodes.h" |
| 9 #include "src/interpreter/interpreter.h" | 8 #include "src/interpreter/interpreter.h" |
| 10 #include "src/isolate.h" | 9 #include "src/isolate.h" |
| 11 | 10 |
| 12 namespace v8 { | 11 namespace v8 { |
| 13 namespace internal { | 12 namespace internal { |
| 14 | 13 |
| 15 v8::Local<v8::FunctionTemplate> | 14 v8::Local<v8::FunctionTemplate> |
| 16 IgnitionStatisticsExtension::GetNativeFunctionTemplate( | 15 IgnitionStatisticsExtension::GetNativeFunctionTemplate( |
| 17 v8::Isolate* isolate, v8::Local<v8::String> name) { | 16 v8::Isolate* isolate, v8::Local<v8::String> name) { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 28 const v8::FunctionCallbackInfo<v8::Value>& args) { | 27 const v8::FunctionCallbackInfo<v8::Value>& args) { |
| 29 DCHECK_EQ(args.Length(), 0); | 28 DCHECK_EQ(args.Length(), 0); |
| 30 DCHECK(FLAG_trace_ignition_dispatches); | 29 DCHECK(FLAG_trace_ignition_dispatches); |
| 31 args.GetReturnValue().Set(reinterpret_cast<Isolate*>(args.GetIsolate()) | 30 args.GetReturnValue().Set(reinterpret_cast<Isolate*>(args.GetIsolate()) |
| 32 ->interpreter() | 31 ->interpreter() |
| 33 ->GetDispatchCountersObject()); | 32 ->GetDispatchCountersObject()); |
| 34 } | 33 } |
| 35 | 34 |
| 36 } // namespace internal | 35 } // namespace internal |
| 37 } // namespace v8 | 36 } // namespace v8 |
| OLD | NEW |