| OLD | NEW |
| 1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 1173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1184 i::Handle<i::Script> script(i::Script::cast(fun->shared()->script())); | 1184 i::Handle<i::Script> script(i::Script::cast(fun->shared()->script())); |
| 1185 script->set_data(*raw_data); | 1185 script->set_data(*raw_data); |
| 1186 } | 1186 } |
| 1187 } | 1187 } |
| 1188 | 1188 |
| 1189 | 1189 |
| 1190 // --- E x c e p t i o n s --- | 1190 // --- E x c e p t i o n s --- |
| 1191 | 1191 |
| 1192 | 1192 |
| 1193 v8::TryCatch::TryCatch() | 1193 v8::TryCatch::TryCatch() |
| 1194 : next_(i::Top::try_catch_handler()), | 1194 : next_(i::Top::try_catch_handler_address()), |
| 1195 exception_(i::Heap::the_hole_value()), | 1195 exception_(i::Heap::the_hole_value()), |
| 1196 message_(i::Smi::FromInt(0)), | 1196 message_(i::Smi::FromInt(0)), |
| 1197 is_verbose_(false), | 1197 is_verbose_(false), |
| 1198 can_continue_(true), | 1198 can_continue_(true), |
| 1199 capture_message_(true), | 1199 capture_message_(true), |
| 1200 rethrow_(false), | 1200 rethrow_(false) { |
| 1201 js_handler_(NULL) { | |
| 1202 i::Top::RegisterTryCatchHandler(this); | 1201 i::Top::RegisterTryCatchHandler(this); |
| 1203 } | 1202 } |
| 1204 | 1203 |
| 1205 | 1204 |
| 1206 v8::TryCatch::~TryCatch() { | 1205 v8::TryCatch::~TryCatch() { |
| 1207 if (rethrow_) { | 1206 if (rethrow_) { |
| 1208 v8::HandleScope scope; | 1207 v8::HandleScope scope; |
| 1209 v8::Local<v8::Value> exc = v8::Local<v8::Value>::New(Exception()); | 1208 v8::Local<v8::Value> exc = v8::Local<v8::Value>::New(Exception()); |
| 1210 i::Top::UnregisterTryCatchHandler(this); | 1209 i::Top::UnregisterTryCatchHandler(this); |
| 1211 v8::ThrowException(exc); | 1210 v8::ThrowException(exc); |
| (...skipping 2646 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3858 | 3857 |
| 3859 | 3858 |
| 3860 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { | 3859 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { |
| 3861 HandleScopeImplementer* thread_local = | 3860 HandleScopeImplementer* thread_local = |
| 3862 reinterpret_cast<HandleScopeImplementer*>(storage); | 3861 reinterpret_cast<HandleScopeImplementer*>(storage); |
| 3863 thread_local->IterateThis(v); | 3862 thread_local->IterateThis(v); |
| 3864 return storage + ArchiveSpacePerThread(); | 3863 return storage + ArchiveSpacePerThread(); |
| 3865 } | 3864 } |
| 3866 | 3865 |
| 3867 } } // namespace v8::internal | 3866 } } // namespace v8::internal |
| OLD | NEW |