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

Side by Side Diff: src/isolate.h

Issue 12832002: Parallel recompilation: fewer handle dereferences and tighter checks. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: addressed comments Created 7 years, 9 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/ia32/lithium-ia32.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 970 matching lines...) Expand 10 before | Expand all | Expand 10 after
981 981
982 #ifdef DEBUG 982 #ifdef DEBUG
983 HistogramInfo* heap_histograms() { return heap_histograms_; } 983 HistogramInfo* heap_histograms() { return heap_histograms_; }
984 984
985 JSObject::SpillInformation* js_spill_information() { 985 JSObject::SpillInformation* js_spill_information() {
986 return &js_spill_information_; 986 return &js_spill_information_;
987 } 987 }
988 988
989 int* code_kind_statistics() { return code_kind_statistics_; } 989 int* code_kind_statistics() { return code_kind_statistics_; }
990 990
991 bool allow_handle_deref() { return allow_handle_deref_; } 991 bool AllowHandleDereference();
992 void set_allow_handle_deref(bool allow) { allow_handle_deref_ = allow; } 992
993 void SetAllowHandleDereference(bool allow);
993 #endif 994 #endif
994 995
995 #if defined(V8_TARGET_ARCH_ARM) && !defined(__arm__) || \ 996 #if defined(V8_TARGET_ARCH_ARM) && !defined(__arm__) || \
996 defined(V8_TARGET_ARCH_MIPS) && !defined(__mips__) 997 defined(V8_TARGET_ARCH_MIPS) && !defined(__mips__)
997 bool simulator_initialized() { return simulator_initialized_; } 998 bool simulator_initialized() { return simulator_initialized_; }
998 void set_simulator_initialized(bool initialized) { 999 void set_simulator_initialized(bool initialized) {
999 simulator_initialized_ = initialized; 1000 simulator_initialized_ = initialized;
1000 } 1001 }
1001 1002
1002 HashMap* simulator_i_cache() { return simulator_i_cache_; } 1003 HashMap* simulator_i_cache() { return simulator_i_cache_; }
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
1298 HashMap* simulator_i_cache_; 1299 HashMap* simulator_i_cache_;
1299 Redirection* simulator_redirection_; 1300 Redirection* simulator_redirection_;
1300 #endif 1301 #endif
1301 1302
1302 #ifdef DEBUG 1303 #ifdef DEBUG
1303 // A static array of histogram info for each type. 1304 // A static array of histogram info for each type.
1304 HistogramInfo heap_histograms_[LAST_TYPE + 1]; 1305 HistogramInfo heap_histograms_[LAST_TYPE + 1];
1305 JSObject::SpillInformation js_spill_information_; 1306 JSObject::SpillInformation js_spill_information_;
1306 int code_kind_statistics_[Code::NUMBER_OF_KINDS]; 1307 int code_kind_statistics_[Code::NUMBER_OF_KINDS];
1307 1308
1308 bool allow_handle_deref_; 1309 bool allow_compiler_thread_handle_deref_;
1310 bool allow_execution_thread_handle_deref_;
1309 #endif 1311 #endif
1310 1312
1311 #ifdef ENABLE_DEBUGGER_SUPPORT 1313 #ifdef ENABLE_DEBUGGER_SUPPORT
1312 Debugger* debugger_; 1314 Debugger* debugger_;
1313 Debug* debug_; 1315 Debug* debug_;
1314 #endif 1316 #endif
1315 1317
1316 #define GLOBAL_BACKING_STORE(type, name, initialvalue) \ 1318 #define GLOBAL_BACKING_STORE(type, name, initialvalue) \
1317 type name##_; 1319 type name##_;
1318 ISOLATE_INIT_LIST(GLOBAL_BACKING_STORE) 1320 ISOLATE_INIT_LIST(GLOBAL_BACKING_STORE)
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
1489 1491
1490 // Mark the native context with out of memory. 1492 // Mark the native context with out of memory.
1491 inline void Context::mark_out_of_memory() { 1493 inline void Context::mark_out_of_memory() {
1492 native_context()->set_out_of_memory(HEAP->true_value()); 1494 native_context()->set_out_of_memory(HEAP->true_value());
1493 } 1495 }
1494 1496
1495 1497
1496 } } // namespace v8::internal 1498 } } // namespace v8::internal
1497 1499
1498 #endif // V8_ISOLATE_H_ 1500 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698