Chromium Code Reviews| 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 1162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1173 #endif | 1173 #endif |
| 1174 SaveContext* prev_; | 1174 SaveContext* prev_; |
| 1175 Address js_sp_; // The top JS frame's sp when saving context. | 1175 Address js_sp_; // The top JS frame's sp when saving context. |
| 1176 }; | 1176 }; |
| 1177 | 1177 |
| 1178 | 1178 |
| 1179 class AssertNoContextChange BASE_EMBEDDED { | 1179 class AssertNoContextChange BASE_EMBEDDED { |
| 1180 #ifdef DEBUG | 1180 #ifdef DEBUG |
| 1181 public: | 1181 public: |
| 1182 AssertNoContextChange() : | 1182 AssertNoContextChange() : |
| 1183 context_(Isolate::Current()->context()) { | 1183 » isolate_(Isolate::Current()), |
|
Vitaly Repeshko
2011/03/17 18:13:43
Convert tabs to spaces.
| |
| 1184 » scope_(isolate_), | |
| 1185 context_(isolate_->context(), isolate_) { | |
|
Vitaly Repeshko
2011/03/17 18:13:43
Just pass Isolate::Current(). No need to save it i
| |
| 1184 } | 1186 } |
| 1185 | 1187 |
| 1186 ~AssertNoContextChange() { | 1188 ~AssertNoContextChange() { |
| 1187 ASSERT(Isolate::Current()->context() == *context_); | 1189 ASSERT(Isolate::Current()->context() == *context_); |
| 1188 } | 1190 } |
| 1189 | 1191 |
| 1190 private: | 1192 private: |
| 1193 Isolate* isolate_; | |
| 1191 HandleScope scope_; | 1194 HandleScope scope_; |
| 1192 Handle<Context> context_; | 1195 Handle<Context> context_; |
| 1193 #else | 1196 #else |
| 1194 public: | 1197 public: |
| 1195 AssertNoContextChange() { } | 1198 AssertNoContextChange() { } |
| 1196 #endif | 1199 #endif |
| 1197 }; | 1200 }; |
| 1198 | 1201 |
| 1199 | 1202 |
| 1200 class ExecutionAccess BASE_EMBEDDED { | 1203 class ExecutionAccess BASE_EMBEDDED { |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1294 | 1297 |
| 1295 } } // namespace v8::internal | 1298 } } // namespace v8::internal |
| 1296 | 1299 |
| 1297 // TODO(isolates): Get rid of these -inl.h includes and place them only where | 1300 // TODO(isolates): Get rid of these -inl.h includes and place them only where |
| 1298 // they're needed. | 1301 // they're needed. |
| 1299 #include "allocation-inl.h" | 1302 #include "allocation-inl.h" |
| 1300 #include "zone-inl.h" | 1303 #include "zone-inl.h" |
| 1301 #include "frames-inl.h" | 1304 #include "frames-inl.h" |
| 1302 | 1305 |
| 1303 #endif // V8_ISOLATE_H_ | 1306 #endif // V8_ISOLATE_H_ |
| OLD | NEW |