| 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 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 504 45, | 504 45, |
| 505 "the_hole_nan"); | 505 "the_hole_nan"); |
| 506 Add(ExternalReference::get_date_field_function(isolate).address(), | 506 Add(ExternalReference::get_date_field_function(isolate).address(), |
| 507 UNCLASSIFIED, | 507 UNCLASSIFIED, |
| 508 46, | 508 46, |
| 509 "JSDate::GetField"); | 509 "JSDate::GetField"); |
| 510 Add(ExternalReference::date_cache_stamp(isolate).address(), | 510 Add(ExternalReference::date_cache_stamp(isolate).address(), |
| 511 UNCLASSIFIED, | 511 UNCLASSIFIED, |
| 512 47, | 512 47, |
| 513 "date_cache_stamp"); | 513 "date_cache_stamp"); |
| 514 Add(ExternalReference::address_of_pending_message_obj(isolate).address(), |
| 515 UNCLASSIFIED, |
| 516 48, |
| 517 "address_of_pending_message_obj"); |
| 518 Add(ExternalReference::address_of_has_pending_message(isolate).address(), |
| 519 UNCLASSIFIED, |
| 520 49, |
| 521 "address_of_has_pending_message"); |
| 522 Add(ExternalReference::address_of_pending_message_script(isolate).address(), |
| 523 UNCLASSIFIED, |
| 524 50, |
| 525 "pending_message_script"); |
| 514 } | 526 } |
| 515 | 527 |
| 516 | 528 |
| 517 ExternalReferenceEncoder::ExternalReferenceEncoder() | 529 ExternalReferenceEncoder::ExternalReferenceEncoder() |
| 518 : encodings_(Match), | 530 : encodings_(Match), |
| 519 isolate_(Isolate::Current()) { | 531 isolate_(Isolate::Current()) { |
| 520 ExternalReferenceTable* external_references = | 532 ExternalReferenceTable* external_references = |
| 521 ExternalReferenceTable::instance(isolate_); | 533 ExternalReferenceTable::instance(isolate_); |
| 522 for (int i = 0; i < external_references->size(); ++i) { | 534 for (int i = 0; i < external_references->size(); ++i) { |
| 523 Put(external_references->address(i), i); | 535 Put(external_references->address(i), i); |
| (...skipping 1170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1694 int Serializer::SpaceAreaSize(int space) { | 1706 int Serializer::SpaceAreaSize(int space) { |
| 1695 if (space == CODE_SPACE) { | 1707 if (space == CODE_SPACE) { |
| 1696 return isolate_->memory_allocator()->CodePageAreaSize(); | 1708 return isolate_->memory_allocator()->CodePageAreaSize(); |
| 1697 } else { | 1709 } else { |
| 1698 return Page::kPageSize - Page::kObjectStartOffset; | 1710 return Page::kPageSize - Page::kObjectStartOffset; |
| 1699 } | 1711 } |
| 1700 } | 1712 } |
| 1701 | 1713 |
| 1702 | 1714 |
| 1703 } } // namespace v8::internal | 1715 } } // namespace v8::internal |
| OLD | NEW |