| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 503 Add(ExternalReference::address_of_min_int().address(), | 503 Add(ExternalReference::address_of_min_int().address(), |
| 504 UNCLASSIFIED, | 504 UNCLASSIFIED, |
| 505 36, | 505 36, |
| 506 "LDoubleConstant::min_int"); | 506 "LDoubleConstant::min_int"); |
| 507 Add(ExternalReference::address_of_one_half().address(), | 507 Add(ExternalReference::address_of_one_half().address(), |
| 508 UNCLASSIFIED, | 508 UNCLASSIFIED, |
| 509 37, | 509 37, |
| 510 "LDoubleConstant::one_half"); | 510 "LDoubleConstant::one_half"); |
| 511 Add(ExternalReference::isolate_address().address(), | 511 Add(ExternalReference::isolate_address().address(), |
| 512 UNCLASSIFIED, | 512 UNCLASSIFIED, |
| 513 37, | 513 38, |
| 514 "isolate"); | 514 "isolate"); |
| 515 Add(ExternalReference::address_of_minus_zero().address(), | 515 Add(ExternalReference::address_of_minus_zero().address(), |
| 516 UNCLASSIFIED, | 516 UNCLASSIFIED, |
| 517 38, | 517 39, |
| 518 "LDoubleConstant::minus_zero"); | 518 "LDoubleConstant::minus_zero"); |
| 519 Add(ExternalReference::address_of_negative_infinity().address(), | 519 Add(ExternalReference::address_of_negative_infinity().address(), |
| 520 UNCLASSIFIED, | 520 UNCLASSIFIED, |
| 521 39, | 521 40, |
| 522 "LDoubleConstant::negative_infinity"); | 522 "LDoubleConstant::negative_infinity"); |
| 523 Add(ExternalReference::power_double_double_function(isolate).address(), | 523 Add(ExternalReference::power_double_double_function(isolate).address(), |
| 524 UNCLASSIFIED, | 524 UNCLASSIFIED, |
| 525 40, | 525 41, |
| 526 "power_double_double_function"); | 526 "power_double_double_function"); |
| 527 Add(ExternalReference::power_double_int_function(isolate).address(), | 527 Add(ExternalReference::power_double_int_function(isolate).address(), |
| 528 UNCLASSIFIED, | 528 UNCLASSIFIED, |
| 529 41, | 529 42, |
| 530 "power_double_int_function"); | 530 "power_double_int_function"); |
| 531 Add(ExternalReference::store_buffer_top(isolate).address(), | 531 Add(ExternalReference::store_buffer_top(isolate).address(), |
| 532 UNCLASSIFIED, | 532 UNCLASSIFIED, |
| 533 42, | 533 43, |
| 534 "store_buffer_top"); | 534 "store_buffer_top"); |
| 535 Add(ExternalReference::arguments_marker_location(isolate).address(), | 535 Add(ExternalReference::arguments_marker_location(isolate).address(), |
| 536 UNCLASSIFIED, | 536 UNCLASSIFIED, |
| 537 43, | 537 44, |
| 538 "Factory::arguments_marker().location()"); | 538 "Factory::arguments_marker().location()"); |
| 539 } | 539 } |
| 540 | 540 |
| 541 | 541 |
| 542 ExternalReferenceEncoder::ExternalReferenceEncoder() | 542 ExternalReferenceEncoder::ExternalReferenceEncoder() |
| 543 : encodings_(Match), | 543 : encodings_(Match), |
| 544 isolate_(Isolate::Current()) { | 544 isolate_(Isolate::Current()) { |
| 545 ExternalReferenceTable* external_references = | 545 ExternalReferenceTable* external_references = |
| 546 ExternalReferenceTable::instance(isolate_); | 546 ExternalReferenceTable::instance(isolate_); |
| 547 for (int i = 0; i < external_references->size(); ++i) { | 547 for (int i = 0; i < external_references->size(); ++i) { |
| (...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1040 break; | 1040 break; |
| 1041 } | 1041 } |
| 1042 | 1042 |
| 1043 case kSkip: { | 1043 case kSkip: { |
| 1044 current++; | 1044 current++; |
| 1045 break; | 1045 break; |
| 1046 } | 1046 } |
| 1047 | 1047 |
| 1048 case kNativesStringResource: { | 1048 case kNativesStringResource: { |
| 1049 int index = source_->Get(); | 1049 int index = source_->Get(); |
| 1050 Vector<const char> source_vector = Natives::GetScriptSource(index); | 1050 Vector<const char> source_vector = Natives::GetRawScriptSource(index); |
| 1051 NativesExternalStringResource* resource = | 1051 NativesExternalStringResource* resource = |
| 1052 new NativesExternalStringResource( | 1052 new NativesExternalStringResource(isolate->bootstrapper(), |
| 1053 isolate->bootstrapper(), source_vector.start()); | 1053 source_vector.start(), |
| 1054 source_vector.length()); |
| 1054 *current++ = reinterpret_cast<Object*>(resource); | 1055 *current++ = reinterpret_cast<Object*>(resource); |
| 1055 break; | 1056 break; |
| 1056 } | 1057 } |
| 1057 | 1058 |
| 1058 case kSynchronize: { | 1059 case kSynchronize: { |
| 1059 // If we get here then that indicates that you have a mismatch between | 1060 // If we get here then that indicates that you have a mismatch between |
| 1060 // the number of GC roots when serializing and deserializing. | 1061 // the number of GC roots when serializing and deserializing. |
| 1061 UNREACHABLE(); | 1062 UNREACHABLE(); |
| 1062 } | 1063 } |
| 1063 | 1064 |
| (...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1600 fullness_[space] = RoundUp(fullness_[space], Page::kPageSize); | 1601 fullness_[space] = RoundUp(fullness_[space], Page::kPageSize); |
| 1601 } | 1602 } |
| 1602 } | 1603 } |
| 1603 int allocation_address = fullness_[space]; | 1604 int allocation_address = fullness_[space]; |
| 1604 fullness_[space] = allocation_address + size; | 1605 fullness_[space] = allocation_address + size; |
| 1605 return allocation_address; | 1606 return allocation_address; |
| 1606 } | 1607 } |
| 1607 | 1608 |
| 1608 | 1609 |
| 1609 } } // namespace v8::internal | 1610 } } // namespace v8::internal |
| OLD | NEW |