OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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/api.h" | 5 #include "src/api.h" |
6 | 6 |
7 #include <string.h> // For memcpy, strlen. | 7 #include <string.h> // For memcpy, strlen. |
8 #ifdef V8_USE_ADDRESS_SANITIZER | 8 #ifdef V8_USE_ADDRESS_SANITIZER |
9 #include <sanitizer/asan_interface.h> | 9 #include <sanitizer/asan_interface.h> |
10 #endif // V8_USE_ADDRESS_SANITIZER | 10 #endif // V8_USE_ADDRESS_SANITIZER |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 #include "src/snapshot/snapshot.h" | 66 #include "src/snapshot/snapshot.h" |
67 #include "src/startup-data-util.h" | 67 #include "src/startup-data-util.h" |
68 #include "src/tracing/trace-event.h" | 68 #include "src/tracing/trace-event.h" |
69 #include "src/unicode-inl.h" | 69 #include "src/unicode-inl.h" |
70 #include "src/v8.h" | 70 #include "src/v8.h" |
71 #include "src/v8threads.h" | 71 #include "src/v8threads.h" |
72 #include "src/value-serializer.h" | 72 #include "src/value-serializer.h" |
73 #include "src/version.h" | 73 #include "src/version.h" |
74 #include "src/vm-state-inl.h" | 74 #include "src/vm-state-inl.h" |
75 #include "src/wasm/wasm-module.h" | 75 #include "src/wasm/wasm-module.h" |
| 76 #include "src/wasm/wasm-result.h" |
76 | 77 |
77 namespace v8 { | 78 namespace v8 { |
78 | 79 |
79 #define LOG_API(isolate, class_name, function_name) \ | 80 #define LOG_API(isolate, class_name, function_name) \ |
80 i::RuntimeCallTimerScope _runtime_timer( \ | 81 i::RuntimeCallTimerScope _runtime_timer( \ |
81 isolate, &i::RuntimeCallStats::API_##class_name##_##function_name); \ | 82 isolate, &i::RuntimeCallStats::API_##class_name##_##function_name); \ |
82 LOG(isolate, ApiEntryCall("v8::" #class_name "::" #function_name)) | 83 LOG(isolate, ApiEntryCall("v8::" #class_name "::" #function_name)) |
83 | 84 |
84 #define ENTER_V8(isolate) i::VMState<v8::OTHER> __state__((isolate)) | 85 #define ENTER_V8(isolate) i::VMState<v8::OTHER> __state__((isolate)) |
85 | 86 |
(...skipping 9331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9417 Address callback_address = | 9418 Address callback_address = |
9418 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); | 9419 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); |
9419 VMState<EXTERNAL> state(isolate); | 9420 VMState<EXTERNAL> state(isolate); |
9420 ExternalCallbackScope call_scope(isolate, callback_address); | 9421 ExternalCallbackScope call_scope(isolate, callback_address); |
9421 callback(info); | 9422 callback(info); |
9422 } | 9423 } |
9423 | 9424 |
9424 | 9425 |
9425 } // namespace internal | 9426 } // namespace internal |
9426 } // namespace v8 | 9427 } // namespace v8 |
OLD | NEW |