| 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 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 516 48, | 516 48, |
| 517 "address_of_pending_message_obj"); | 517 "address_of_pending_message_obj"); |
| 518 Add(ExternalReference::address_of_has_pending_message(isolate).address(), | 518 Add(ExternalReference::address_of_has_pending_message(isolate).address(), |
| 519 UNCLASSIFIED, | 519 UNCLASSIFIED, |
| 520 49, | 520 49, |
| 521 "address_of_has_pending_message"); | 521 "address_of_has_pending_message"); |
| 522 Add(ExternalReference::address_of_pending_message_script(isolate).address(), | 522 Add(ExternalReference::address_of_pending_message_script(isolate).address(), |
| 523 UNCLASSIFIED, | 523 UNCLASSIFIED, |
| 524 50, | 524 50, |
| 525 "pending_message_script"); | 525 "pending_message_script"); |
| 526 Add(ExternalReference::get_make_code_young_function(isolate).address(), |
| 527 UNCLASSIFIED, |
| 528 51, |
| 529 "Code::MakeCodeYoung"); |
| 526 } | 530 } |
| 527 | 531 |
| 528 | 532 |
| 529 ExternalReferenceEncoder::ExternalReferenceEncoder() | 533 ExternalReferenceEncoder::ExternalReferenceEncoder() |
| 530 : encodings_(Match), | 534 : encodings_(Match), |
| 531 isolate_(Isolate::Current()) { | 535 isolate_(Isolate::Current()) { |
| 532 ExternalReferenceTable* external_references = | 536 ExternalReferenceTable* external_references = |
| 533 ExternalReferenceTable::instance(isolate_); | 537 ExternalReferenceTable::instance(isolate_); |
| 534 for (int i = 0; i < external_references->size(); ++i) { | 538 for (int i = 0; i < external_references->size(); ++i) { |
| 535 Put(external_references->address(i), i); | 539 Put(external_references->address(i), i); |
| (...skipping 1083 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1619 | 1623 |
| 1620 bool SnapshotByteSource::AtEOF() { | 1624 bool SnapshotByteSource::AtEOF() { |
| 1621 if (0u + length_ - position_ > 2 * sizeof(uint32_t)) return false; | 1625 if (0u + length_ - position_ > 2 * sizeof(uint32_t)) return false; |
| 1622 for (int x = position_; x < length_; x++) { | 1626 for (int x = position_; x < length_; x++) { |
| 1623 if (data_[x] != SerializerDeserializer::nop()) return false; | 1627 if (data_[x] != SerializerDeserializer::nop()) return false; |
| 1624 } | 1628 } |
| 1625 return true; | 1629 return true; |
| 1626 } | 1630 } |
| 1627 | 1631 |
| 1628 } } // namespace v8::internal | 1632 } } // namespace v8::internal |
| OLD | NEW |