| 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 5081 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5092 } | 5092 } |
| 5093 | 5093 |
| 5094 | 5094 |
| 5095 int v8::V8::ContextDisposedNotification() { | 5095 int v8::V8::ContextDisposedNotification() { |
| 5096 i::Isolate* isolate = i::Isolate::Current(); | 5096 i::Isolate* isolate = i::Isolate::Current(); |
| 5097 if (!isolate->IsInitialized()) return 0; | 5097 if (!isolate->IsInitialized()) return 0; |
| 5098 return isolate->heap()->NotifyContextDisposed(); | 5098 return isolate->heap()->NotifyContextDisposed(); |
| 5099 } | 5099 } |
| 5100 | 5100 |
| 5101 | 5101 |
| 5102 void v8::V8::PerThreadSetUp() { |
| 5103 i::OS::PerThreadSetUp(); |
| 5104 } |
| 5105 |
| 5106 |
| 5102 bool v8::V8::InitializeICU() { | 5107 bool v8::V8::InitializeICU() { |
| 5103 return i::InitializeICU(); | 5108 return i::InitializeICU(); |
| 5104 } | 5109 } |
| 5105 | 5110 |
| 5106 | 5111 |
| 5107 const char* v8::V8::GetVersion() { | 5112 const char* v8::V8::GetVersion() { |
| 5108 return i::Version::GetVersion(); | 5113 return i::Version::GetVersion(); |
| 5109 } | 5114 } |
| 5110 | 5115 |
| 5111 | 5116 |
| (...skipping 2342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7454 Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate()); | 7459 Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate()); |
| 7455 Address callback_address = | 7460 Address callback_address = |
| 7456 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); | 7461 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); |
| 7457 VMState<EXTERNAL> state(isolate); | 7462 VMState<EXTERNAL> state(isolate); |
| 7458 ExternalCallbackScope call_scope(isolate, callback_address); | 7463 ExternalCallbackScope call_scope(isolate, callback_address); |
| 7459 callback(info); | 7464 callback(info); |
| 7460 } | 7465 } |
| 7461 | 7466 |
| 7462 | 7467 |
| 7463 } } // namespace v8::internal | 7468 } } // namespace v8::internal |
| OLD | NEW |