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 1506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1517 Handle<String> script_name = factory->NewStringFromUtf8(name); | 1517 Handle<String> script_name = factory->NewStringFromUtf8(name); |
1518 function_info = Compiler::CompileScript( | 1518 function_info = Compiler::CompileScript( |
1519 source, | 1519 source, |
1520 script_name, | 1520 script_name, |
1521 0, | 1521 0, |
1522 0, | 1522 0, |
1523 false, | 1523 false, |
1524 top_context, | 1524 top_context, |
1525 extension, | 1525 extension, |
1526 NULL, | 1526 NULL, |
| 1527 NO_CACHED_DATA, |
1527 use_runtime_context ? NATIVES_CODE : NOT_NATIVES_CODE); | 1528 use_runtime_context ? NATIVES_CODE : NOT_NATIVES_CODE); |
1528 if (function_info.is_null()) return false; | 1529 if (function_info.is_null()) return false; |
1529 if (cache != NULL) cache->Add(name, function_info); | 1530 if (cache != NULL) cache->Add(name, function_info); |
1530 } | 1531 } |
1531 | 1532 |
1532 // Set up the function context. Conceptually, we should clone the | 1533 // Set up the function context. Conceptually, we should clone the |
1533 // function before overwriting the context but since we're in a | 1534 // function before overwriting the context but since we're in a |
1534 // single-threaded environment it is not strictly necessary. | 1535 // single-threaded environment it is not strictly necessary. |
1535 ASSERT(top_context->IsNativeContext()); | 1536 ASSERT(top_context->IsNativeContext()); |
1536 Handle<Context> context = | 1537 Handle<Context> context = |
(...skipping 1212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2749 return from + sizeof(NestingCounterType); | 2750 return from + sizeof(NestingCounterType); |
2750 } | 2751 } |
2751 | 2752 |
2752 | 2753 |
2753 // Called when the top-level V8 mutex is destroyed. | 2754 // Called when the top-level V8 mutex is destroyed. |
2754 void Bootstrapper::FreeThreadResources() { | 2755 void Bootstrapper::FreeThreadResources() { |
2755 ASSERT(!IsActive()); | 2756 ASSERT(!IsActive()); |
2756 } | 2757 } |
2757 | 2758 |
2758 } } // namespace v8::internal | 2759 } } // namespace v8::internal |
OLD | NEW |