OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 #include "v8utils.h" | 57 #include "v8utils.h" |
58 #include "flags.h" | 58 #include "flags.h" |
59 | 59 |
60 // Objects & heap | 60 // Objects & heap |
61 #include "objects-inl.h" | 61 #include "objects-inl.h" |
62 #include "spaces-inl.h" | 62 #include "spaces-inl.h" |
63 #include "heap-inl.h" | 63 #include "heap-inl.h" |
64 #include "incremental-marking-inl.h" | 64 #include "incremental-marking-inl.h" |
65 #include "mark-compact-inl.h" | 65 #include "mark-compact-inl.h" |
66 #include "log-inl.h" | 66 #include "log-inl.h" |
67 #include "cpu-profiler-inl.h" | |
68 #include "handles-inl.h" | 67 #include "handles-inl.h" |
69 #include "heap-snapshot-generator-inl.h" | |
70 #include "zone-inl.h" | 68 #include "zone-inl.h" |
71 | 69 |
72 namespace v8 { | 70 namespace v8 { |
73 namespace internal { | 71 namespace internal { |
74 | 72 |
75 class Deserializer; | 73 class Deserializer; |
76 | 74 |
77 class V8 : public AllStatic { | 75 class V8 : public AllStatic { |
78 public: | 76 public: |
79 // Global actions. | 77 // Global actions. |
(...skipping 14 matching lines...) Expand all Loading... |
94 // Report process out of memory. Implementation found in api.cc. | 92 // Report process out of memory. Implementation found in api.cc. |
95 static void FatalProcessOutOfMemory(const char* location, | 93 static void FatalProcessOutOfMemory(const char* location, |
96 bool take_snapshot = false); | 94 bool take_snapshot = false); |
97 | 95 |
98 // Allows an entropy source to be provided for use in random number | 96 // Allows an entropy source to be provided for use in random number |
99 // generation. | 97 // generation. |
100 static void SetEntropySource(EntropySource source); | 98 static void SetEntropySource(EntropySource source); |
101 // Support for return-address rewriting profilers. | 99 // Support for return-address rewriting profilers. |
102 static void SetReturnAddressLocationResolver( | 100 static void SetReturnAddressLocationResolver( |
103 ReturnAddressLocationResolver resolver); | 101 ReturnAddressLocationResolver resolver); |
| 102 // Support for entry hooking JITed code. |
| 103 static void SetFunctionEntryHook(FunctionEntryHook entry_hook); |
104 // Random number generation support. Not cryptographically safe. | 104 // Random number generation support. Not cryptographically safe. |
105 static uint32_t Random(Context* context); | 105 static uint32_t Random(Context* context); |
106 // We use random numbers internally in memory allocation and in the | 106 // We use random numbers internally in memory allocation and in the |
107 // compilers for security. In order to prevent information leaks we | 107 // compilers for security. In order to prevent information leaks we |
108 // use a separate random state for internal random number | 108 // use a separate random state for internal random number |
109 // generation. | 109 // generation. |
110 static uint32_t RandomPrivate(Isolate* isolate); | 110 static uint32_t RandomPrivate(Isolate* isolate); |
111 static Object* FillHeapNumberWithRandom(Object* heap_number, | 111 static Object* FillHeapNumberWithRandom(Object* heap_number, |
112 Context* context); | 112 Context* context); |
113 | 113 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 | 152 |
153 // JavaScript defines two kinds of 'nil'. | 153 // JavaScript defines two kinds of 'nil'. |
154 enum NilValue { kNullValue, kUndefinedValue }; | 154 enum NilValue { kNullValue, kUndefinedValue }; |
155 | 155 |
156 | 156 |
157 } } // namespace v8::internal | 157 } } // namespace v8::internal |
158 | 158 |
159 namespace i = v8::internal; | 159 namespace i = v8::internal; |
160 | 160 |
161 #endif // V8_V8_H_ | 161 #endif // V8_V8_H_ |
OLD | NEW |