| 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 1519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1530 ASSERT(pre_data_impl == NULL || pre_data_impl->SanityCheck()); | 1530 ASSERT(pre_data_impl == NULL || pre_data_impl->SanityCheck()); |
| 1531 // If the pre-data isn't sane we simply ignore it | 1531 // If the pre-data isn't sane we simply ignore it |
| 1532 if (pre_data_impl != NULL && !pre_data_impl->SanityCheck()) { | 1532 if (pre_data_impl != NULL && !pre_data_impl->SanityCheck()) { |
| 1533 pre_data_impl = NULL; | 1533 pre_data_impl = NULL; |
| 1534 } | 1534 } |
| 1535 i::Handle<i::SharedFunctionInfo> result = | 1535 i::Handle<i::SharedFunctionInfo> result = |
| 1536 i::Compiler::Compile(str, | 1536 i::Compiler::Compile(str, |
| 1537 name_obj, | 1537 name_obj, |
| 1538 line_offset, | 1538 line_offset, |
| 1539 column_offset, | 1539 column_offset, |
| 1540 isolate->native_context(), |
| 1540 NULL, | 1541 NULL, |
| 1541 pre_data_impl, | 1542 pre_data_impl, |
| 1542 Utils::OpenHandle(*script_data), | 1543 Utils::OpenHandle(*script_data), |
| 1543 i::NOT_NATIVES_CODE); | 1544 i::NOT_NATIVES_CODE); |
| 1544 has_pending_exception = result.is_null(); | 1545 has_pending_exception = result.is_null(); |
| 1545 EXCEPTION_BAILOUT_CHECK(isolate, Local<Script>()); | 1546 EXCEPTION_BAILOUT_CHECK(isolate, Local<Script>()); |
| 1546 raw_result = *result; | 1547 raw_result = *result; |
| 1547 } | 1548 } |
| 1548 i::Handle<i::SharedFunctionInfo> result(raw_result, isolate); | 1549 i::Handle<i::SharedFunctionInfo> result(raw_result, isolate); |
| 1549 return Local<Script>(ToApi<Script>(result)); | 1550 return Local<Script>(ToApi<Script>(result)); |
| (...skipping 4975 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6525 | 6526 |
| 6526 v->VisitPointers(blocks_.first(), first_block_limit_); | 6527 v->VisitPointers(blocks_.first(), first_block_limit_); |
| 6527 | 6528 |
| 6528 for (int i = 1; i < blocks_.length(); i++) { | 6529 for (int i = 1; i < blocks_.length(); i++) { |
| 6529 v->VisitPointers(blocks_[i], &blocks_[i][kHandleBlockSize]); | 6530 v->VisitPointers(blocks_[i], &blocks_[i][kHandleBlockSize]); |
| 6530 } | 6531 } |
| 6531 } | 6532 } |
| 6532 | 6533 |
| 6533 | 6534 |
| 6534 } } // namespace v8::internal | 6535 } } // namespace v8::internal |
| OLD | NEW |