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

Side by Side Diff: src/isolate.h

Issue 131363008: A64: Synchronize with r15922. (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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 struct CodeStubInterfaceDescriptor; 58 struct CodeStubInterfaceDescriptor;
59 class CompilationCache; 59 class CompilationCache;
60 class ContextSlotCache; 60 class ContextSlotCache;
61 class ContextSwitcher; 61 class ContextSwitcher;
62 class Counters; 62 class Counters;
63 class CpuFeatures; 63 class CpuFeatures;
64 class CpuProfiler; 64 class CpuProfiler;
65 class DeoptimizerData; 65 class DeoptimizerData;
66 class Deserializer; 66 class Deserializer;
67 class EmptyStatement; 67 class EmptyStatement;
68 class ExternalCallbackScope;
68 class ExternalReferenceTable; 69 class ExternalReferenceTable;
69 class Factory; 70 class Factory;
70 class FunctionInfoListener; 71 class FunctionInfoListener;
71 class HandleScopeImplementer; 72 class HandleScopeImplementer;
72 class HeapProfiler; 73 class HeapProfiler;
73 class HStatistics; 74 class HStatistics;
74 class HTracer; 75 class HTracer;
75 class InlineRuntimeFunctionsTable; 76 class InlineRuntimeFunctionsTable;
76 class NoAllocationStringAllocator; 77 class NoAllocationStringAllocator;
77 class InnerPointerToCodeCache; 78 class InnerPointerToCodeCache;
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 Address c_entry_fp_; // the frame pointer of the top c entry frame 274 Address c_entry_fp_; // the frame pointer of the top c entry frame
274 Address handler_; // try-blocks are chained through the stack 275 Address handler_; // try-blocks are chained through the stack
275 276
276 #ifdef USE_SIMULATOR 277 #ifdef USE_SIMULATOR
277 #if V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_A64 || V8_TARGET_ARCH_MIPS 278 #if V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_A64 || V8_TARGET_ARCH_MIPS
278 Simulator* simulator_; 279 Simulator* simulator_;
279 #endif 280 #endif
280 #endif // USE_SIMULATOR 281 #endif // USE_SIMULATOR
281 282
282 Address js_entry_sp_; // the stack pointer of the bottom JS entry frame 283 Address js_entry_sp_; // the stack pointer of the bottom JS entry frame
283 Address external_callback_; // the external callback we're currently in 284 // the external callback we're currently in
285 ExternalCallbackScope* external_callback_scope_;
284 StateTag current_vm_state_; 286 StateTag current_vm_state_;
285 287
286 // Generated code scratch locations. 288 // Generated code scratch locations.
287 int32_t formal_count_; 289 int32_t formal_count_;
288 290
289 // Call back function to report unsafe JS accesses. 291 // Call back function to report unsafe JS accesses.
290 v8::FailedAccessCheckCallback failed_access_check_callback_; 292 v8::FailedAccessCheckCallback failed_access_check_callback_;
291 293
292 // Head of the list of live LookupResults. 294 // Head of the list of live LookupResults.
293 LookupResult* top_lookup_result_; 295 LookupResult* top_lookup_result_;
(...skipping 736 matching lines...) Expand 10 before | Expand all | Expand 10 after
1030 } 1032 }
1031 void set_simulator_redirection(Redirection* redirection) { 1033 void set_simulator_redirection(Redirection* redirection) {
1032 simulator_redirection_ = redirection; 1034 simulator_redirection_ = redirection;
1033 } 1035 }
1034 #endif 1036 #endif
1035 1037
1036 Factory* factory() { return reinterpret_cast<Factory*>(this); } 1038 Factory* factory() { return reinterpret_cast<Factory*>(this); }
1037 1039
1038 static const int kJSRegexpStaticOffsetsVectorSize = 128; 1040 static const int kJSRegexpStaticOffsetsVectorSize = 128;
1039 1041
1040 Address external_callback() { 1042 ExternalCallbackScope* external_callback_scope() {
1041 return thread_local_top_.external_callback_; 1043 return thread_local_top_.external_callback_scope_;
1042 } 1044 }
1043 void set_external_callback(Address callback) { 1045 void set_external_callback_scope(ExternalCallbackScope* scope) {
1044 thread_local_top_.external_callback_ = callback; 1046 thread_local_top_.external_callback_scope_ = scope;
1045 } 1047 }
1046 1048
1047 StateTag current_vm_state() { 1049 StateTag current_vm_state() {
1048 return thread_local_top_.current_vm_state_; 1050 return thread_local_top_.current_vm_state_;
1049 } 1051 }
1050 1052
1051 void set_current_vm_state(StateTag state) { 1053 void set_current_vm_state(StateTag state) {
1052 thread_local_top_.current_vm_state_ = state; 1054 thread_local_top_.current_vm_state_ = state;
1053 } 1055 }
1054 1056
1055 void SetData(void* data) { embedder_data_ = data; } 1057 void SetData(void* data) { embedder_data_ = data; }
1056 void* GetData() { return embedder_data_; } 1058 void* GetData() { return embedder_data_; }
1057 1059
1058 LookupResult* top_lookup_result() { 1060 LookupResult* top_lookup_result() {
1059 return thread_local_top_.top_lookup_result_; 1061 return thread_local_top_.top_lookup_result_;
1060 } 1062 }
1061 void SetTopLookupResult(LookupResult* top) { 1063 void SetTopLookupResult(LookupResult* top) {
1062 thread_local_top_.top_lookup_result_ = top; 1064 thread_local_top_.top_lookup_result_ = top;
1063 } 1065 }
1064 1066
1065 bool context_exit_happened() {
1066 return context_exit_happened_;
1067 }
1068 void set_context_exit_happened(bool context_exit_happened) {
1069 context_exit_happened_ = context_exit_happened;
1070 }
1071
1072 bool initialized_from_snapshot() { return initialized_from_snapshot_; } 1067 bool initialized_from_snapshot() { return initialized_from_snapshot_; }
1073 1068
1074 double time_millis_since_init() { 1069 double time_millis_since_init() {
1075 return OS::TimeCurrentMillis() - time_millis_at_init_; 1070 return OS::TimeCurrentMillis() - time_millis_at_init_;
1076 } 1071 }
1077 1072
1078 DateCache* date_cache() { 1073 DateCache* date_cache() {
1079 return date_cache_; 1074 return date_cache_;
1080 } 1075 }
1081 1076
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
1309 ConsStringIteratorOp objects_string_compare_iterator_a_; 1304 ConsStringIteratorOp objects_string_compare_iterator_a_;
1310 ConsStringIteratorOp objects_string_compare_iterator_b_; 1305 ConsStringIteratorOp objects_string_compare_iterator_b_;
1311 StaticResource<ConsStringIteratorOp> objects_string_iterator_; 1306 StaticResource<ConsStringIteratorOp> objects_string_iterator_;
1312 unibrow::Mapping<unibrow::Ecma262Canonicalize> 1307 unibrow::Mapping<unibrow::Ecma262Canonicalize>
1313 regexp_macro_assembler_canonicalize_; 1308 regexp_macro_assembler_canonicalize_;
1314 RegExpStack* regexp_stack_; 1309 RegExpStack* regexp_stack_;
1315 DateCache* date_cache_; 1310 DateCache* date_cache_;
1316 unibrow::Mapping<unibrow::Ecma262Canonicalize> interp_canonicalize_mapping_; 1311 unibrow::Mapping<unibrow::Ecma262Canonicalize> interp_canonicalize_mapping_;
1317 CodeStubInterfaceDescriptor* code_stub_interface_descriptors_; 1312 CodeStubInterfaceDescriptor* code_stub_interface_descriptors_;
1318 1313
1319 // The garbage collector should be a little more aggressive when it knows
1320 // that a context was recently exited.
1321 bool context_exit_happened_;
1322
1323 // True if this isolate was initialized from a snapshot. 1314 // True if this isolate was initialized from a snapshot.
1324 bool initialized_from_snapshot_; 1315 bool initialized_from_snapshot_;
1325 1316
1326 // Time stamp at initialization. 1317 // Time stamp at initialization.
1327 double time_millis_at_init_; 1318 double time_millis_at_init_;
1328 1319
1329 #if V8_TARGET_ARCH_ARM && !defined(__arm__) || \ 1320 #if V8_TARGET_ARCH_ARM && !defined(__arm__) || \
1330 V8_TARGET_ARCH_A64 && !defined(__aarch64__) || \ 1321 V8_TARGET_ARCH_A64 && !defined(__aarch64__) || \
1331 V8_TARGET_ARCH_MIPS && !defined(__mips__) 1322 V8_TARGET_ARCH_MIPS && !defined(__mips__)
1332 bool simulator_initialized_; 1323 bool simulator_initialized_;
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
1527 1518
1528 // Mark the native context with out of memory. 1519 // Mark the native context with out of memory.
1529 inline void Context::mark_out_of_memory() { 1520 inline void Context::mark_out_of_memory() {
1530 native_context()->set_out_of_memory(HEAP->true_value()); 1521 native_context()->set_out_of_memory(HEAP->true_value());
1531 } 1522 }
1532 1523
1533 1524
1534 } } // namespace v8::internal 1525 } } // namespace v8::internal
1535 1526
1536 #endif // V8_ISOLATE_H_ 1527 #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