OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 | 5 |
6 // Defined when linking against shared lib on Windows. | 6 // Defined when linking against shared lib on Windows. |
7 #if defined(USING_V8_SHARED) && !defined(V8_SHARED) | 7 #if defined(USING_V8_SHARED) && !defined(V8_SHARED) |
8 #define V8_SHARED | 8 #define V8_SHARED |
9 #endif | 9 #endif |
10 | 10 |
(...skipping 1707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1718 if (Shell::DeserializeValue(isolate, *data, &offset) | 1718 if (Shell::DeserializeValue(isolate, *data, &offset) |
1719 .ToLocal(&data_value)) { | 1719 .ToLocal(&data_value)) { |
1720 Handle<Value> argv[] = {data_value}; | 1720 Handle<Value> argv[] = {data_value}; |
1721 (void)onmessage_fun->Call(context, global, 1, argv); | 1721 (void)onmessage_fun->Call(context, global, 1, argv); |
1722 } | 1722 } |
1723 delete data; | 1723 delete data; |
1724 } | 1724 } |
1725 } | 1725 } |
1726 } | 1726 } |
1727 } | 1727 } |
| 1728 Shell::CollectGarbage(isolate); |
1728 } | 1729 } |
1729 Shell::CollectGarbage(isolate); | |
1730 isolate->Dispose(); | 1730 isolate->Dispose(); |
1731 } | 1731 } |
1732 | 1732 |
1733 | 1733 |
1734 void Worker::Cleanup() { | 1734 void Worker::Cleanup() { |
1735 delete thread_; | 1735 delete thread_; |
1736 thread_ = NULL; | 1736 thread_ = NULL; |
1737 delete[] script_; | 1737 delete[] script_; |
1738 script_ = NULL; | 1738 script_ = NULL; |
1739 in_queue_.Clear(); | 1739 in_queue_.Clear(); |
(...skipping 657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2397 } | 2397 } |
2398 | 2398 |
2399 } // namespace v8 | 2399 } // namespace v8 |
2400 | 2400 |
2401 | 2401 |
2402 #ifndef GOOGLE3 | 2402 #ifndef GOOGLE3 |
2403 int main(int argc, char* argv[]) { | 2403 int main(int argc, char* argv[]) { |
2404 return v8::Shell::Main(argc, argv); | 2404 return v8::Shell::Main(argc, argv); |
2405 } | 2405 } |
2406 #endif | 2406 #endif |
OLD | NEW |