Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(250)

Side by Side Diff: src/isolate.h

Issue 132623005: A64: Synchronize with r18642. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/ic.cc ('k') | src/isolate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 12 matching lines...) Expand all
23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 27
28 #ifndef V8_ISOLATE_H_ 28 #ifndef V8_ISOLATE_H_
29 #define V8_ISOLATE_H_ 29 #define V8_ISOLATE_H_
30 30
31 #include "../include/v8-debug.h" 31 #include "../include/v8-debug.h"
32 #include "allocation.h" 32 #include "allocation.h"
33 #include "apiutils.h"
34 #include "assert-scope.h" 33 #include "assert-scope.h"
35 #include "atomicops.h" 34 #include "atomicops.h"
36 #include "builtins.h" 35 #include "builtins.h"
37 #include "contexts.h" 36 #include "contexts.h"
38 #include "execution.h" 37 #include "execution.h"
39 #include "frames.h" 38 #include "frames.h"
40 #include "date.h" 39 #include "date.h"
41 #include "global-handles.h" 40 #include "global-handles.h"
42 #include "handles.h" 41 #include "handles.h"
43 #include "hashmap.h" 42 #include "hashmap.h"
44 #include "heap.h" 43 #include "heap.h"
45 #include "optimizing-compiler-thread.h" 44 #include "optimizing-compiler-thread.h"
46 #include "regexp-stack.h" 45 #include "regexp-stack.h"
47 #include "runtime-profiler.h" 46 #include "runtime-profiler.h"
48 #include "runtime.h" 47 #include "runtime.h"
49 #include "zone.h" 48 #include "zone.h"
50 49
51 namespace v8 { 50 namespace v8 {
52 namespace internal { 51 namespace internal {
53 52
54 class Bootstrapper; 53 class Bootstrapper;
55 class CodeGenerator; 54 class CodeGenerator;
56 class CodeRange; 55 class CodeRange;
57 struct CodeStubInterfaceDescriptor; 56 struct CodeStubInterfaceDescriptor;
57 struct CallInterfaceDescriptor;
58 class CodeTracer; 58 class CodeTracer;
59 class CompilationCache; 59 class CompilationCache;
60 class ContextSlotCache; 60 class ContextSlotCache;
61 class Counters; 61 class Counters;
62 class CpuFeatures; 62 class CpuFeatures;
63 class CpuProfiler; 63 class CpuProfiler;
64 class DeoptimizerData; 64 class DeoptimizerData;
65 class Deserializer; 65 class Deserializer;
66 class EmptyStatement; 66 class EmptyStatement;
67 class ExternalCallbackScope; 67 class ExternalCallbackScope;
(...skipping 815 matching lines...) Expand 10 before | Expand all | Expand 10 after
883 } 883 }
884 884
885 ContextSlotCache* context_slot_cache() { 885 ContextSlotCache* context_slot_cache() {
886 return context_slot_cache_; 886 return context_slot_cache_;
887 } 887 }
888 888
889 DescriptorLookupCache* descriptor_lookup_cache() { 889 DescriptorLookupCache* descriptor_lookup_cache() {
890 return descriptor_lookup_cache_; 890 return descriptor_lookup_cache_;
891 } 891 }
892 892
893 v8::ImplementationUtilities::HandleScopeData* handle_scope_data() { 893 HandleScopeData* handle_scope_data() { return &handle_scope_data_; }
894 return &handle_scope_data_; 894
895 }
896 HandleScopeImplementer* handle_scope_implementer() { 895 HandleScopeImplementer* handle_scope_implementer() {
897 ASSERT(handle_scope_implementer_); 896 ASSERT(handle_scope_implementer_);
898 return handle_scope_implementer_; 897 return handle_scope_implementer_;
899 } 898 }
900 Zone* runtime_zone() { return &runtime_zone_; } 899 Zone* runtime_zone() { return &runtime_zone_; }
901 900
902 UnicodeCache* unicode_cache() { 901 UnicodeCache* unicode_cache() {
903 return unicode_cache_; 902 return unicode_cache_;
904 } 903 }
905 904
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
1072 date_cache_ = date_cache; 1071 date_cache_ = date_cache;
1073 } 1072 }
1074 1073
1075 Map* get_initial_js_array_map(ElementsKind kind); 1074 Map* get_initial_js_array_map(ElementsKind kind);
1076 1075
1077 bool IsFastArrayConstructorPrototypeChainIntact(); 1076 bool IsFastArrayConstructorPrototypeChainIntact();
1078 1077
1079 CodeStubInterfaceDescriptor* 1078 CodeStubInterfaceDescriptor*
1080 code_stub_interface_descriptor(int index); 1079 code_stub_interface_descriptor(int index);
1081 1080
1081 enum CallDescriptorKey {
1082 KeyedCall,
1083 NamedCall,
1084 ArgumentAdaptorCall,
1085 NUMBER_OF_CALL_DESCRIPTORS
1086 };
1087
1088 CallInterfaceDescriptor* call_descriptor(CallDescriptorKey index);
1089
1082 void IterateDeferredHandles(ObjectVisitor* visitor); 1090 void IterateDeferredHandles(ObjectVisitor* visitor);
1083 void LinkDeferredHandles(DeferredHandles* deferred_handles); 1091 void LinkDeferredHandles(DeferredHandles* deferred_handles);
1084 void UnlinkDeferredHandles(DeferredHandles* deferred_handles); 1092 void UnlinkDeferredHandles(DeferredHandles* deferred_handles);
1085 1093
1086 #ifdef DEBUG 1094 #ifdef DEBUG
1087 bool IsDeferredHandle(Object** location); 1095 bool IsDeferredHandle(Object** location);
1088 #endif // DEBUG 1096 #endif // DEBUG
1089 1097
1090 int max_available_threads() const { 1098 int max_available_threads() const {
1091 return max_available_threads_; 1099 return max_available_threads_;
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
1272 StubCache* stub_cache_; 1280 StubCache* stub_cache_;
1273 DeoptimizerData* deoptimizer_data_; 1281 DeoptimizerData* deoptimizer_data_;
1274 ThreadLocalTop thread_local_top_; 1282 ThreadLocalTop thread_local_top_;
1275 bool capture_stack_trace_for_uncaught_exceptions_; 1283 bool capture_stack_trace_for_uncaught_exceptions_;
1276 int stack_trace_for_uncaught_exceptions_frame_limit_; 1284 int stack_trace_for_uncaught_exceptions_frame_limit_;
1277 StackTrace::StackTraceOptions stack_trace_for_uncaught_exceptions_options_; 1285 StackTrace::StackTraceOptions stack_trace_for_uncaught_exceptions_options_;
1278 MemoryAllocator* memory_allocator_; 1286 MemoryAllocator* memory_allocator_;
1279 KeyedLookupCache* keyed_lookup_cache_; 1287 KeyedLookupCache* keyed_lookup_cache_;
1280 ContextSlotCache* context_slot_cache_; 1288 ContextSlotCache* context_slot_cache_;
1281 DescriptorLookupCache* descriptor_lookup_cache_; 1289 DescriptorLookupCache* descriptor_lookup_cache_;
1282 v8::ImplementationUtilities::HandleScopeData handle_scope_data_; 1290 HandleScopeData handle_scope_data_;
1283 HandleScopeImplementer* handle_scope_implementer_; 1291 HandleScopeImplementer* handle_scope_implementer_;
1284 UnicodeCache* unicode_cache_; 1292 UnicodeCache* unicode_cache_;
1285 Zone runtime_zone_; 1293 Zone runtime_zone_;
1286 InnerPointerToCodeCache* inner_pointer_to_code_cache_; 1294 InnerPointerToCodeCache* inner_pointer_to_code_cache_;
1287 ConsStringIteratorOp* write_iterator_; 1295 ConsStringIteratorOp* write_iterator_;
1288 GlobalHandles* global_handles_; 1296 GlobalHandles* global_handles_;
1289 EternalHandles* eternal_handles_; 1297 EternalHandles* eternal_handles_;
1290 ThreadManager* thread_manager_; 1298 ThreadManager* thread_manager_;
1291 RuntimeState runtime_state_; 1299 RuntimeState runtime_state_;
1292 bool fp_stubs_generated_; 1300 bool fp_stubs_generated_;
1293 Builtins builtins_; 1301 Builtins builtins_;
1294 bool has_installed_extensions_; 1302 bool has_installed_extensions_;
1295 StringTracker* string_tracker_; 1303 StringTracker* string_tracker_;
1296 unibrow::Mapping<unibrow::Ecma262UnCanonicalize> jsregexp_uncanonicalize_; 1304 unibrow::Mapping<unibrow::Ecma262UnCanonicalize> jsregexp_uncanonicalize_;
1297 unibrow::Mapping<unibrow::CanonicalizationRange> jsregexp_canonrange_; 1305 unibrow::Mapping<unibrow::CanonicalizationRange> jsregexp_canonrange_;
1298 ConsStringIteratorOp objects_string_compare_iterator_a_; 1306 ConsStringIteratorOp objects_string_compare_iterator_a_;
1299 ConsStringIteratorOp objects_string_compare_iterator_b_; 1307 ConsStringIteratorOp objects_string_compare_iterator_b_;
1300 StaticResource<ConsStringIteratorOp> objects_string_iterator_; 1308 StaticResource<ConsStringIteratorOp> objects_string_iterator_;
1301 unibrow::Mapping<unibrow::Ecma262Canonicalize> 1309 unibrow::Mapping<unibrow::Ecma262Canonicalize>
1302 regexp_macro_assembler_canonicalize_; 1310 regexp_macro_assembler_canonicalize_;
1303 RegExpStack* regexp_stack_; 1311 RegExpStack* regexp_stack_;
1304 DateCache* date_cache_; 1312 DateCache* date_cache_;
1305 unibrow::Mapping<unibrow::Ecma262Canonicalize> interp_canonicalize_mapping_; 1313 unibrow::Mapping<unibrow::Ecma262Canonicalize> interp_canonicalize_mapping_;
1306 CodeStubInterfaceDescriptor* code_stub_interface_descriptors_; 1314 CodeStubInterfaceDescriptor* code_stub_interface_descriptors_;
1315 CallInterfaceDescriptor* call_descriptors_;
1307 RandomNumberGenerator* random_number_generator_; 1316 RandomNumberGenerator* random_number_generator_;
1308 1317
1309 // True if fatal error has been signaled for this isolate. 1318 // True if fatal error has been signaled for this isolate.
1310 bool has_fatal_error_; 1319 bool has_fatal_error_;
1311 1320
1312 // True if we are using the Crankshaft optimizing compiler. 1321 // True if we are using the Crankshaft optimizing compiler.
1313 bool use_crankshaft_; 1322 bool use_crankshaft_;
1314 1323
1315 // True if this isolate was initialized from a snapshot. 1324 // True if this isolate was initialized from a snapshot.
1316 bool initialized_from_snapshot_; 1325 bool initialized_from_snapshot_;
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
1571 } 1580 }
1572 1581
1573 EmbeddedVector<char, 128> filename_; 1582 EmbeddedVector<char, 128> filename_;
1574 FILE* file_; 1583 FILE* file_;
1575 int scope_depth_; 1584 int scope_depth_;
1576 }; 1585 };
1577 1586
1578 } } // namespace v8::internal 1587 } } // namespace v8::internal
1579 1588
1580 #endif // V8_ISOLATE_H_ 1589 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « src/ic.cc ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698