| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 813 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 824 Address address = external_reference_decoder_->Decode(reference_id); | 824 Address address = external_reference_decoder_->Decode(reference_id); |
| 825 Address location_of_branch_data = reinterpret_cast<Address>(current); | 825 Address location_of_branch_data = reinterpret_cast<Address>(current); |
| 826 Assembler::set_external_target_at(location_of_branch_data, address); | 826 Assembler::set_external_target_at(location_of_branch_data, address); |
| 827 location_of_branch_data += Assembler::kExternalTargetSize; | 827 location_of_branch_data += Assembler::kExternalTargetSize; |
| 828 current = reinterpret_cast<Object**>(location_of_branch_data); | 828 current = reinterpret_cast<Object**>(location_of_branch_data); |
| 829 break; | 829 break; |
| 830 } | 830 } |
| 831 case START_NEW_PAGE_SERIALIZATION: { | 831 case START_NEW_PAGE_SERIALIZATION: { |
| 832 int space = source_->Get(); | 832 int space = source_->Get(); |
| 833 pages_[space].Add(last_object_address_); | 833 pages_[space].Add(last_object_address_); |
| 834 if (space == CODE_SPACE) { |
| 835 CPU::FlushICache(last_object_address_, Page::kPageSize); |
| 836 } |
| 834 break; | 837 break; |
| 835 } | 838 } |
| 836 case NATIVES_STRING_RESOURCE: { | 839 case NATIVES_STRING_RESOURCE: { |
| 837 int index = source_->Get(); | 840 int index = source_->Get(); |
| 838 Vector<const char> source_vector = Natives::GetScriptSource(index); | 841 Vector<const char> source_vector = Natives::GetScriptSource(index); |
| 839 NativesExternalStringResource* resource = | 842 NativesExternalStringResource* resource = |
| 840 new NativesExternalStringResource(source_vector.start()); | 843 new NativesExternalStringResource(source_vector.start()); |
| 841 *current++ = reinterpret_cast<Object*>(resource); | 844 *current++ = reinterpret_cast<Object*>(resource); |
| 842 break; | 845 break; |
| 843 } | 846 } |
| (...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1366 fullness_[space] = RoundUp(fullness_[space], Page::kPageSize); | 1369 fullness_[space] = RoundUp(fullness_[space], Page::kPageSize); |
| 1367 } | 1370 } |
| 1368 } | 1371 } |
| 1369 int allocation_address = fullness_[space]; | 1372 int allocation_address = fullness_[space]; |
| 1370 fullness_[space] = allocation_address + size; | 1373 fullness_[space] = allocation_address + size; |
| 1371 return allocation_address; | 1374 return allocation_address; |
| 1372 } | 1375 } |
| 1373 | 1376 |
| 1374 | 1377 |
| 1375 } } // namespace v8::internal | 1378 } } // namespace v8::internal |
| OLD | NEW |