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 1323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1334 v8::Extension* extension, | 1334 v8::Extension* extension, |
1335 Handle<Context> top_context, | 1335 Handle<Context> top_context, |
1336 bool use_runtime_context) { | 1336 bool use_runtime_context) { |
1337 Factory* factory = source->GetIsolate()->factory(); | 1337 Factory* factory = source->GetIsolate()->factory(); |
1338 HandleScope scope; | 1338 HandleScope scope; |
1339 Handle<SharedFunctionInfo> function_info; | 1339 Handle<SharedFunctionInfo> function_info; |
1340 | 1340 |
1341 // If we can't find the function in the cache, we compile a new | 1341 // If we can't find the function in the cache, we compile a new |
1342 // function and insert it into the cache. | 1342 // function and insert it into the cache. |
1343 if (cache == NULL || !cache->Lookup(name, &function_info)) { | 1343 if (cache == NULL || !cache->Lookup(name, &function_info)) { |
1344 ASSERT(source->IsAsciiRepresentation()); | 1344 ASSERT(source->IsOneByteRepresentation()); |
1345 Handle<String> script_name = factory->NewStringFromUtf8(name); | 1345 Handle<String> script_name = factory->NewStringFromUtf8(name); |
1346 function_info = Compiler::Compile( | 1346 function_info = Compiler::Compile( |
1347 source, | 1347 source, |
1348 script_name, | 1348 script_name, |
1349 0, | 1349 0, |
1350 0, | 1350 0, |
1351 top_context, | 1351 top_context, |
1352 extension, | 1352 extension, |
1353 NULL, | 1353 NULL, |
1354 Handle<String>::null(), | 1354 Handle<String>::null(), |
(...skipping 1055 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2410 return from + sizeof(NestingCounterType); | 2410 return from + sizeof(NestingCounterType); |
2411 } | 2411 } |
2412 | 2412 |
2413 | 2413 |
2414 // Called when the top-level V8 mutex is destroyed. | 2414 // Called when the top-level V8 mutex is destroyed. |
2415 void Bootstrapper::FreeThreadResources() { | 2415 void Bootstrapper::FreeThreadResources() { |
2416 ASSERT(!IsActive()); | 2416 ASSERT(!IsActive()); |
2417 } | 2417 } |
2418 | 2418 |
2419 } } // namespace v8::internal | 2419 } } // namespace v8::internal |
OLD | NEW |