| OLD | NEW |
| 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 1075 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1086 | 1086 |
| 1087 void Isolate::UpdateScannersAfterGC(v8::Isolate* isolate, | 1087 void Isolate::UpdateScannersAfterGC(v8::Isolate* isolate, |
| 1088 GCType, | 1088 GCType, |
| 1089 GCCallbackFlags) { | 1089 GCCallbackFlags) { |
| 1090 reinterpret_cast<i::Isolate*>(isolate)->UpdateScannersAfterGC(); | 1090 reinterpret_cast<i::Isolate*>(isolate)->UpdateScannersAfterGC(); |
| 1091 } | 1091 } |
| 1092 | 1092 |
| 1093 | 1093 |
| 1094 void Isolate::UpdateScannersAfterGC() { | 1094 void Isolate::UpdateScannersAfterGC() { |
| 1095 for (std::set<ScannerBase*>::const_iterator it = scanners_.begin(); | 1095 for (std::set<ScannerBase*>::const_iterator it = scanners_.begin(); |
| 1096 it != scanners_.end(); | 1096 it != scanners_.end(); ++it) { |
| 1097 ++it) | |
| 1098 (*it)->UpdateBufferBasedOnHandle(); | 1097 (*it)->UpdateBufferBasedOnHandle(); |
| 1098 } |
| 1099 } | 1099 } |
| 1100 | 1100 |
| 1101 | 1101 |
| 1102 static int fatal_exception_depth = 0; | 1102 static int fatal_exception_depth = 0; |
| 1103 | 1103 |
| 1104 void Isolate::DoThrow(Object* exception, MessageLocation* location) { | 1104 void Isolate::DoThrow(Object* exception, MessageLocation* location) { |
| 1105 ASSERT(!has_pending_exception()); | 1105 ASSERT(!has_pending_exception()); |
| 1106 | 1106 |
| 1107 HandleScope scope(this); | 1107 HandleScope scope(this); |
| 1108 Handle<Object> exception_handle(exception, this); | 1108 Handle<Object> exception_handle(exception, this); |
| (...skipping 1233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2342 | 2342 |
| 2343 #ifdef DEBUG | 2343 #ifdef DEBUG |
| 2344 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ | 2344 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ |
| 2345 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); | 2345 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); |
| 2346 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) | 2346 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) |
| 2347 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) | 2347 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) |
| 2348 #undef ISOLATE_FIELD_OFFSET | 2348 #undef ISOLATE_FIELD_OFFSET |
| 2349 #endif | 2349 #endif |
| 2350 | 2350 |
| 2351 } } // namespace v8::internal | 2351 } } // namespace v8::internal |
| OLD | NEW |