| OLD | NEW | 
|     1 // Copyright 2009 the V8 project authors. All rights reserved. |     1 // Copyright 2009 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 1067 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1078     if (!origin->ResourceColumnOffset().IsEmpty()) { |  1078     if (!origin->ResourceColumnOffset().IsEmpty()) { | 
|  1079       column_offset = static_cast<int>(origin->ResourceColumnOffset()->Value()); |  1079       column_offset = static_cast<int>(origin->ResourceColumnOffset()->Value()); | 
|  1080     } |  1080     } | 
|  1081   } |  1081   } | 
|  1082   EXCEPTION_PREAMBLE(); |  1082   EXCEPTION_PREAMBLE(); | 
|  1083   i::ScriptDataImpl* pre_data = static_cast<i::ScriptDataImpl*>(script_data); |  1083   i::ScriptDataImpl* pre_data = static_cast<i::ScriptDataImpl*>(script_data); | 
|  1084   // We assert that the pre-data is sane, even though we can actually |  1084   // We assert that the pre-data is sane, even though we can actually | 
|  1085   // handle it if it turns out not to be in release mode. |  1085   // handle it if it turns out not to be in release mode. | 
|  1086   ASSERT(pre_data == NULL || pre_data->SanityCheck()); |  1086   ASSERT(pre_data == NULL || pre_data->SanityCheck()); | 
|  1087   // If the pre-data isn't sane we simply ignore it |  1087   // If the pre-data isn't sane we simply ignore it | 
|  1088   if (pre_data != NULL && !pre_data->SanityCheck()) |  1088   if (pre_data != NULL && !pre_data->SanityCheck()) { | 
|  1089     pre_data = NULL; |  1089     pre_data = NULL; | 
 |  1090   } | 
|  1090   i::Handle<i::JSFunction> boilerplate = i::Compiler::Compile(str, |  1091   i::Handle<i::JSFunction> boilerplate = i::Compiler::Compile(str, | 
|  1091                                                               name_obj, |  1092                                                               name_obj, | 
|  1092                                                               line_offset, |  1093                                                               line_offset, | 
|  1093                                                               column_offset, |  1094                                                               column_offset, | 
|  1094                                                               NULL, |  1095                                                               NULL, | 
|  1095                                                               pre_data); |  1096                                                               pre_data); | 
|  1096   has_pending_exception = boilerplate.is_null(); |  1097   has_pending_exception = boilerplate.is_null(); | 
|  1097   EXCEPTION_BAILOUT_CHECK(Local<Script>()); |  1098   EXCEPTION_BAILOUT_CHECK(Local<Script>()); | 
|  1098   i::Handle<i::JSFunction> result = |  1099   i::Handle<i::JSFunction> result = | 
|  1099       i::Factory::NewFunctionFromBoilerplate(boilerplate, |  1100       i::Factory::NewFunctionFromBoilerplate(boilerplate, | 
| (...skipping 2425 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  3525       reinterpret_cast<HandleScopeImplementer*>(storage); |  3526       reinterpret_cast<HandleScopeImplementer*>(storage); | 
|  3526   List<void**>* blocks_of_archived_thread = thread_local->Blocks(); |  3527   List<void**>* blocks_of_archived_thread = thread_local->Blocks(); | 
|  3527   v8::ImplementationUtilities::HandleScopeData* handle_data_of_archived_thread = |  3528   v8::ImplementationUtilities::HandleScopeData* handle_data_of_archived_thread = | 
|  3528       &thread_local->handle_scope_data_; |  3529       &thread_local->handle_scope_data_; | 
|  3529   Iterate(v, blocks_of_archived_thread, handle_data_of_archived_thread); |  3530   Iterate(v, blocks_of_archived_thread, handle_data_of_archived_thread); | 
|  3530  |  3531  | 
|  3531   return storage + ArchiveSpacePerThread(); |  3532   return storage + ArchiveSpacePerThread(); | 
|  3532 } |  3533 } | 
|  3533  |  3534  | 
|  3534 } }  // namespace v8::internal |  3535 } }  // namespace v8::internal | 
| OLD | NEW |