| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 1138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1149 Isolate* isolate_; | 1149 Isolate* isolate_; |
| 1150 }; | 1150 }; |
| 1151 | 1151 |
| 1152 | 1152 |
| 1153 // Support for temporarily postponing interrupts. When the outermost | 1153 // Support for temporarily postponing interrupts. When the outermost |
| 1154 // postpone scope is left the interrupts will be re-enabled and any | 1154 // postpone scope is left the interrupts will be re-enabled and any |
| 1155 // interrupts that occurred while in the scope will be taken into | 1155 // interrupts that occurred while in the scope will be taken into |
| 1156 // account. | 1156 // account. |
| 1157 class PostponeInterruptsScope BASE_EMBEDDED { | 1157 class PostponeInterruptsScope BASE_EMBEDDED { |
| 1158 public: | 1158 public: |
| 1159 PostponeInterruptsScope(Isolate* isolate) | 1159 explicit PostponeInterruptsScope(Isolate* isolate) |
| 1160 : stack_guard_(isolate->stack_guard()) { | 1160 : stack_guard_(isolate->stack_guard()) { |
| 1161 stack_guard_->thread_local_.postpone_interrupts_nesting_++; | 1161 stack_guard_->thread_local_.postpone_interrupts_nesting_++; |
| 1162 stack_guard_->DisableInterrupts(); | 1162 stack_guard_->DisableInterrupts(); |
| 1163 } | 1163 } |
| 1164 | 1164 |
| 1165 ~PostponeInterruptsScope() { | 1165 ~PostponeInterruptsScope() { |
| 1166 if (--stack_guard_->thread_local_.postpone_interrupts_nesting_ == 0) { | 1166 if (--stack_guard_->thread_local_.postpone_interrupts_nesting_ == 0) { |
| 1167 stack_guard_->EnableInterrupts(); | 1167 stack_guard_->EnableInterrupts(); |
| 1168 } | 1168 } |
| 1169 } | 1169 } |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1209 | 1209 |
| 1210 } } // namespace v8::internal | 1210 } } // namespace v8::internal |
| 1211 | 1211 |
| 1212 // TODO(isolates): Get rid of these -inl.h includes and place them only where | 1212 // TODO(isolates): Get rid of these -inl.h includes and place them only where |
| 1213 // they're needed. | 1213 // they're needed. |
| 1214 #include "allocation-inl.h" | 1214 #include "allocation-inl.h" |
| 1215 #include "zone-inl.h" | 1215 #include "zone-inl.h" |
| 1216 #include "frames-inl.h" | 1216 #include "frames-inl.h" |
| 1217 | 1217 |
| 1218 #endif // V8_ISOLATE_H_ | 1218 #endif // V8_ISOLATE_H_ |
| OLD | NEW |