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

Side by Side Diff: src/isolate.h

Issue 6196006: [Isolates] Make lint happy. (Closed)
Patch Set: Created 9 years, 11 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
« no previous file with comments | « include/v8.h ('k') | src/scanner.h » ('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 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
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
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_
OLDNEW
« no previous file with comments | « include/v8.h ('k') | src/scanner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698