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 "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 |
11 #include <cmath> // For isnan. | 11 #include <cmath> // For isnan. |
12 #include "../include/v8-debug.h" | 12 #include "include/v8-debug.h" |
13 #include "../include/v8-profiler.h" | 13 #include "include/v8-profiler.h" |
14 #include "../include/v8-testing.h" | 14 #include "include/v8-testing.h" |
15 #include "assert-scope.h" | 15 #include "src/assert-scope.h" |
16 #include "bootstrapper.h" | 16 #include "src/bootstrapper.h" |
17 #include "code-stubs.h" | 17 #include "src/code-stubs.h" |
18 #include "compiler.h" | 18 #include "src/compiler.h" |
19 #include "conversions-inl.h" | 19 #include "src/conversions-inl.h" |
20 #include "counters.h" | 20 #include "src/counters.h" |
21 #include "cpu-profiler.h" | 21 #include "src/cpu-profiler.h" |
22 #include "debug.h" | 22 #include "src/debug.h" |
23 #include "deoptimizer.h" | 23 #include "src/deoptimizer.h" |
24 #include "execution.h" | 24 #include "src/execution.h" |
25 #include "global-handles.h" | 25 #include "src/global-handles.h" |
26 #include "heap-profiler.h" | 26 #include "src/heap-profiler.h" |
27 #include "heap-snapshot-generator-inl.h" | 27 #include "src/heap-snapshot-generator-inl.h" |
28 #include "icu_util.h" | 28 #include "src/icu_util.h" |
29 #include "json-parser.h" | 29 #include "src/json-parser.h" |
30 #include "messages.h" | 30 #include "src/messages.h" |
31 #ifdef COMPRESS_STARTUP_DATA_BZ2 | 31 #ifdef COMPRESS_STARTUP_DATA_BZ2 |
32 #include "natives.h" | 32 #include "src/natives.h" |
33 #endif | 33 #endif |
34 #include "parser.h" | 34 #include "src/parser.h" |
35 #include "platform.h" | 35 #include "src/platform.h" |
36 #include "platform/time.h" | 36 #include "src/platform/time.h" |
37 #include "profile-generator-inl.h" | 37 #include "src/profile-generator-inl.h" |
38 #include "property-details.h" | 38 #include "src/property-details.h" |
39 #include "property.h" | 39 #include "src/property.h" |
40 #include "runtime.h" | 40 #include "src/runtime.h" |
41 #include "runtime-profiler.h" | 41 #include "src/runtime-profiler.h" |
42 #include "scanner-character-streams.h" | 42 #include "src/scanner-character-streams.h" |
43 #include "simulator.h" | 43 #include "src/simulator.h" |
44 #include "snapshot.h" | 44 #include "src/snapshot.h" |
45 #include "unicode-inl.h" | 45 #include "src/unicode-inl.h" |
46 #include "utils/random-number-generator.h" | 46 #include "src/utils/random-number-generator.h" |
47 #include "v8threads.h" | 47 #include "src/v8threads.h" |
48 #include "version.h" | 48 #include "src/version.h" |
49 #include "vm-state-inl.h" | 49 #include "src/vm-state-inl.h" |
50 | 50 |
51 | 51 |
52 #define LOG_API(isolate, expr) LOG(isolate, ApiEntryCall(expr)) | 52 #define LOG_API(isolate, expr) LOG(isolate, ApiEntryCall(expr)) |
53 | 53 |
54 #define ENTER_V8(isolate) \ | 54 #define ENTER_V8(isolate) \ |
55 ASSERT((isolate)->IsInitialized()); \ | 55 ASSERT((isolate)->IsInitialized()); \ |
56 i::VMState<i::OTHER> __state__((isolate)) | 56 i::VMState<i::OTHER> __state__((isolate)) |
57 | 57 |
58 namespace v8 { | 58 namespace v8 { |
59 | 59 |
(...skipping 7505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7565 Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate()); | 7565 Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate()); |
7566 Address callback_address = | 7566 Address callback_address = |
7567 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); | 7567 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); |
7568 VMState<EXTERNAL> state(isolate); | 7568 VMState<EXTERNAL> state(isolate); |
7569 ExternalCallbackScope call_scope(isolate, callback_address); | 7569 ExternalCallbackScope call_scope(isolate, callback_address); |
7570 callback(info); | 7570 callback(info); |
7571 } | 7571 } |
7572 | 7572 |
7573 | 7573 |
7574 } } // namespace v8::internal | 7574 } } // namespace v8::internal |
OLD | NEW |