| 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 5094 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5105 } | 5105 } |
| 5106 | 5106 |
| 5107 | 5107 |
| 5108 int v8::V8::ContextDisposedNotification() { | 5108 int v8::V8::ContextDisposedNotification() { |
| 5109 i::Isolate* isolate = i::Isolate::Current(); | 5109 i::Isolate* isolate = i::Isolate::Current(); |
| 5110 if (!isolate->IsInitialized()) return 0; | 5110 if (!isolate->IsInitialized()) return 0; |
| 5111 return isolate->heap()->NotifyContextDisposed(); | 5111 return isolate->heap()->NotifyContextDisposed(); |
| 5112 } | 5112 } |
| 5113 | 5113 |
| 5114 | 5114 |
| 5115 bool v8::V8::InitializeICU() { | 5115 bool v8::V8::InitializeICU(const char* icu_data_file) { |
| 5116 return i::InitializeICU(); | 5116 return i::InitializeICU(icu_data_file); |
| 5117 } | 5117 } |
| 5118 | 5118 |
| 5119 | 5119 |
| 5120 const char* v8::V8::GetVersion() { | 5120 const char* v8::V8::GetVersion() { |
| 5121 return i::Version::GetVersion(); | 5121 return i::Version::GetVersion(); |
| 5122 } | 5122 } |
| 5123 | 5123 |
| 5124 | 5124 |
| 5125 static i::Handle<i::Context> CreateEnvironment( | 5125 static i::Handle<i::Context> CreateEnvironment( |
| 5126 i::Isolate* isolate, | 5126 i::Isolate* isolate, |
| (...skipping 2449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7576 Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate()); | 7576 Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate()); |
| 7577 Address callback_address = | 7577 Address callback_address = |
| 7578 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); | 7578 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); |
| 7579 VMState<EXTERNAL> state(isolate); | 7579 VMState<EXTERNAL> state(isolate); |
| 7580 ExternalCallbackScope call_scope(isolate, callback_address); | 7580 ExternalCallbackScope call_scope(isolate, callback_address); |
| 7581 callback(info); | 7581 callback(info); |
| 7582 } | 7582 } |
| 7583 | 7583 |
| 7584 | 7584 |
| 7585 } } // namespace v8::internal | 7585 } } // namespace v8::internal |
| OLD | NEW |