OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 class FunctionInfoListener; | 70 class FunctionInfoListener; |
71 class HandleScopeImplementer; | 71 class HandleScopeImplementer; |
72 class HeapProfiler; | 72 class HeapProfiler; |
73 class HStatistics; | 73 class HStatistics; |
74 class HTracer; | 74 class HTracer; |
75 class InlineRuntimeFunctionsTable; | 75 class InlineRuntimeFunctionsTable; |
76 class NoAllocationStringAllocator; | 76 class NoAllocationStringAllocator; |
77 class InnerPointerToCodeCache; | 77 class InnerPointerToCodeCache; |
78 class MarkingThread; | 78 class MarkingThread; |
79 class PreallocatedMemoryThread; | 79 class PreallocatedMemoryThread; |
| 80 class RandomNumberGenerator; |
80 class RegExpStack; | 81 class RegExpStack; |
81 class SaveContext; | 82 class SaveContext; |
82 class UnicodeCache; | 83 class UnicodeCache; |
83 class ConsStringIteratorOp; | 84 class ConsStringIteratorOp; |
84 class StringTracker; | 85 class StringTracker; |
85 class StubCache; | 86 class StubCache; |
86 class SweeperThread; | 87 class SweeperThread; |
87 class ThreadManager; | 88 class ThreadManager; |
88 class ThreadState; | 89 class ThreadState; |
89 class ThreadVisitor; // Defined in v8threads.h | 90 class ThreadVisitor; // Defined in v8threads.h |
(...skipping 1028 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1118 HStatistics* GetHStatistics(); | 1119 HStatistics* GetHStatistics(); |
1119 HTracer* GetHTracer(); | 1120 HTracer* GetHTracer(); |
1120 | 1121 |
1121 FunctionEntryHook function_entry_hook() { return function_entry_hook_; } | 1122 FunctionEntryHook function_entry_hook() { return function_entry_hook_; } |
1122 void set_function_entry_hook(FunctionEntryHook function_entry_hook) { | 1123 void set_function_entry_hook(FunctionEntryHook function_entry_hook) { |
1123 function_entry_hook_ = function_entry_hook; | 1124 function_entry_hook_ = function_entry_hook; |
1124 } | 1125 } |
1125 | 1126 |
1126 void* stress_deopt_count_address() { return &stress_deopt_count_; } | 1127 void* stress_deopt_count_address() { return &stress_deopt_count_; } |
1127 | 1128 |
| 1129 inline RandomNumberGenerator* random_number_generator(); |
| 1130 |
1128 // Given an address occupied by a live code object, return that object. | 1131 // Given an address occupied by a live code object, return that object. |
1129 Object* FindCodeObject(Address a); | 1132 Object* FindCodeObject(Address a); |
1130 | 1133 |
1131 bool is_memory_constrained() const { | 1134 bool is_memory_constrained() const { |
1132 return is_memory_constrained_; | 1135 return is_memory_constrained_; |
1133 } | 1136 } |
1134 void set_is_memory_constrained(bool value) { | 1137 void set_is_memory_constrained(bool value) { |
1135 is_memory_constrained_ = value; | 1138 is_memory_constrained_ = value; |
1136 } | 1139 } |
1137 | 1140 |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1299 unibrow::Mapping<unibrow::CanonicalizationRange> jsregexp_canonrange_; | 1302 unibrow::Mapping<unibrow::CanonicalizationRange> jsregexp_canonrange_; |
1300 ConsStringIteratorOp objects_string_compare_iterator_a_; | 1303 ConsStringIteratorOp objects_string_compare_iterator_a_; |
1301 ConsStringIteratorOp objects_string_compare_iterator_b_; | 1304 ConsStringIteratorOp objects_string_compare_iterator_b_; |
1302 StaticResource<ConsStringIteratorOp> objects_string_iterator_; | 1305 StaticResource<ConsStringIteratorOp> objects_string_iterator_; |
1303 unibrow::Mapping<unibrow::Ecma262Canonicalize> | 1306 unibrow::Mapping<unibrow::Ecma262Canonicalize> |
1304 regexp_macro_assembler_canonicalize_; | 1307 regexp_macro_assembler_canonicalize_; |
1305 RegExpStack* regexp_stack_; | 1308 RegExpStack* regexp_stack_; |
1306 DateCache* date_cache_; | 1309 DateCache* date_cache_; |
1307 unibrow::Mapping<unibrow::Ecma262Canonicalize> interp_canonicalize_mapping_; | 1310 unibrow::Mapping<unibrow::Ecma262Canonicalize> interp_canonicalize_mapping_; |
1308 CodeStubInterfaceDescriptor* code_stub_interface_descriptors_; | 1311 CodeStubInterfaceDescriptor* code_stub_interface_descriptors_; |
| 1312 RandomNumberGenerator* random_number_generator_; |
1309 bool is_memory_constrained_; | 1313 bool is_memory_constrained_; |
1310 | 1314 |
1311 // True if fatal error has been signaled for this isolate. | 1315 // True if fatal error has been signaled for this isolate. |
1312 bool has_fatal_error_; | 1316 bool has_fatal_error_; |
1313 | 1317 |
1314 // True if we are using the Crankshaft optimizing compiler. | 1318 // True if we are using the Crankshaft optimizing compiler. |
1315 bool use_crankshaft_; | 1319 bool use_crankshaft_; |
1316 | 1320 |
1317 // True if this isolate was initialized from a snapshot. | 1321 // True if this isolate was initialized from a snapshot. |
1318 bool initialized_from_snapshot_; | 1322 bool initialized_from_snapshot_; |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1528 | 1532 |
1529 // Mark the native context with out of memory. | 1533 // Mark the native context with out of memory. |
1530 inline void Context::mark_out_of_memory() { | 1534 inline void Context::mark_out_of_memory() { |
1531 native_context()->set_out_of_memory(HEAP->true_value()); | 1535 native_context()->set_out_of_memory(HEAP->true_value()); |
1532 } | 1536 } |
1533 | 1537 |
1534 | 1538 |
1535 } } // namespace v8::internal | 1539 } } // namespace v8::internal |
1536 | 1540 |
1537 #endif // V8_ISOLATE_H_ | 1541 #endif // V8_ISOLATE_H_ |
OLD | NEW |