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 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
432 i::ExperimentalNatives::GetScriptsSource(); | 432 i::ExperimentalNatives::GetScriptsSource(); |
433 compressed_data[kExperimentalLibraries].data = | 433 compressed_data[kExperimentalLibraries].data = |
434 reinterpret_cast<const char*>(exp_libraries_source.start()); | 434 reinterpret_cast<const char*>(exp_libraries_source.start()); |
435 compressed_data[kExperimentalLibraries].compressed_size = | 435 compressed_data[kExperimentalLibraries].compressed_size = |
436 exp_libraries_source.length(); | 436 exp_libraries_source.length(); |
437 compressed_data[kExperimentalLibraries].raw_size = | 437 compressed_data[kExperimentalLibraries].raw_size = |
438 i::ExperimentalNatives::GetRawScriptsSize(); | 438 i::ExperimentalNatives::GetRawScriptsSize(); |
439 | 439 |
440 #if defined(ENABLE_I18N_SUPPORT) | 440 #if defined(ENABLE_I18N_SUPPORT) |
441 i::Vector<const ii:byte> i18n_extension_source = | 441 i::Vector<const ii:byte> i18n_extension_source = |
442 i::I18NNatvies::GetScriptsSource(); | 442 i::I18NNatives::GetScriptsSource(); |
443 compressed_data[kI18NExtension].data = | 443 compressed_data[kI18NExtension].data = |
444 reinterpret_cast<const char*>(i18n_extension_source.start()); | 444 reinterpret_cast<const char*>(i18n_extension_source.start()); |
445 compressed_data[kI18NExtension].compressed_size = | 445 compressed_data[kI18NExtension].compressed_size = |
446 i18n_extension_source.length(); | 446 i18n_extension_source.length(); |
447 compressed_data[kI18NExtension].raw_size = | 447 compressed_data[kI18NExtension].raw_size = |
448 i::I18NNatives::GetRawScriptsSize(); | 448 i::I18NNatives::GetRawScriptsSize(); |
449 #endif | 449 #endif |
450 #endif | 450 #endif |
451 } | 451 } |
452 | 452 |
(...skipping 7609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8062 Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate()); | 8062 Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate()); |
8063 Address callback_address = | 8063 Address callback_address = |
8064 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); | 8064 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); |
8065 VMState<EXTERNAL> state(isolate); | 8065 VMState<EXTERNAL> state(isolate); |
8066 ExternalCallbackScope call_scope(isolate, callback_address); | 8066 ExternalCallbackScope call_scope(isolate, callback_address); |
8067 return callback(info); | 8067 return callback(info); |
8068 } | 8068 } |
8069 | 8069 |
8070 | 8070 |
8071 } } // namespace v8::internal | 8071 } } // namespace v8::internal |
OLD | NEW |