Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(79)

Side by Side Diff: src/serialize.cc

Issue 110573004: Merge bleeding_edge 17696:18016. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/parser
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 Add(stub_cache->map_reference(StubCache::kSecondary).address(), 290 Add(stub_cache->map_reference(StubCache::kSecondary).address(),
291 STUB_CACHE_TABLE, 291 STUB_CACHE_TABLE,
292 6, 292 6,
293 "StubCache::secondary_->map"); 293 "StubCache::secondary_->map");
294 294
295 // Runtime entries 295 // Runtime entries
296 Add(ExternalReference::perform_gc_function(isolate).address(), 296 Add(ExternalReference::perform_gc_function(isolate).address(),
297 RUNTIME_ENTRY, 297 RUNTIME_ENTRY,
298 1, 298 1,
299 "Runtime::PerformGC"); 299 "Runtime::PerformGC");
300 Add(ExternalReference::random_uint32_function(isolate).address(),
301 RUNTIME_ENTRY,
302 3,
303 "V8::Random");
304 Add(ExternalReference::delete_handle_scope_extensions(isolate).address(), 300 Add(ExternalReference::delete_handle_scope_extensions(isolate).address(),
305 RUNTIME_ENTRY, 301 RUNTIME_ENTRY,
306 4, 302 4,
307 "HandleScope::DeleteExtensions"); 303 "HandleScope::DeleteExtensions");
308 Add(ExternalReference:: 304 Add(ExternalReference::
309 incremental_marking_record_write_function(isolate).address(), 305 incremental_marking_record_write_function(isolate).address(),
310 RUNTIME_ENTRY, 306 RUNTIME_ENTRY,
311 5, 307 5,
312 "IncrementalMarking::RecordWrite"); 308 "IncrementalMarking::RecordWrite");
313 Add(ExternalReference::store_buffer_overflow_function(isolate).address(), 309 Add(ExternalReference::store_buffer_overflow_function(isolate).address(),
314 RUNTIME_ENTRY, 310 RUNTIME_ENTRY,
315 6, 311 6,
316 "StoreBuffer::StoreBufferOverflow"); 312 "StoreBuffer::StoreBufferOverflow");
317 Add(ExternalReference:: 313 Add(ExternalReference::
318 incremental_evacuation_record_write_function(isolate).address(), 314 incremental_evacuation_record_write_function(isolate).address(),
319 RUNTIME_ENTRY, 315 RUNTIME_ENTRY,
320 7, 316 7,
321 "IncrementalMarking::RecordWrite"); 317 "IncrementalMarking::RecordWrite");
322 318
323
324
325 // Miscellaneous 319 // Miscellaneous
326 Add(ExternalReference::roots_array_start(isolate).address(), 320 Add(ExternalReference::roots_array_start(isolate).address(),
327 UNCLASSIFIED, 321 UNCLASSIFIED,
328 3, 322 3,
329 "Heap::roots_array_start()"); 323 "Heap::roots_array_start()");
330 Add(ExternalReference::address_of_stack_limit(isolate).address(), 324 Add(ExternalReference::address_of_stack_limit(isolate).address(),
331 UNCLASSIFIED, 325 UNCLASSIFIED,
332 4, 326 4,
333 "StackGuard::address_of_jslimit()"); 327 "StackGuard::address_of_jslimit()");
334 Add(ExternalReference::address_of_real_stack_limit(isolate).address(), 328 Add(ExternalReference::address_of_real_stack_limit(isolate).address(),
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
524 51, 518 51,
525 "Code::MakeCodeYoung"); 519 "Code::MakeCodeYoung");
526 Add(ExternalReference::cpu_features().address(), 520 Add(ExternalReference::cpu_features().address(),
527 UNCLASSIFIED, 521 UNCLASSIFIED,
528 52, 522 52,
529 "cpu_features"); 523 "cpu_features");
530 Add(ExternalReference(Runtime::kAllocateInNewSpace, isolate).address(), 524 Add(ExternalReference(Runtime::kAllocateInNewSpace, isolate).address(),
531 UNCLASSIFIED, 525 UNCLASSIFIED,
532 53, 526 53,
533 "Runtime::AllocateInNewSpace"); 527 "Runtime::AllocateInNewSpace");
528 Add(ExternalReference(Runtime::kAllocateInTargetSpace, isolate).address(),
529 UNCLASSIFIED,
530 54,
531 "Runtime::AllocateInTargetSpace");
534 Add(ExternalReference::old_pointer_space_allocation_top_address( 532 Add(ExternalReference::old_pointer_space_allocation_top_address(
535 isolate).address(), 533 isolate).address(),
536 UNCLASSIFIED, 534 UNCLASSIFIED,
537 54, 535 55,
538 "Heap::OldPointerSpaceAllocationTopAddress"); 536 "Heap::OldPointerSpaceAllocationTopAddress");
539 Add(ExternalReference::old_pointer_space_allocation_limit_address( 537 Add(ExternalReference::old_pointer_space_allocation_limit_address(
540 isolate).address(), 538 isolate).address(),
541 UNCLASSIFIED, 539 UNCLASSIFIED,
542 55, 540 56,
543 "Heap::OldPointerSpaceAllocationLimitAddress"); 541 "Heap::OldPointerSpaceAllocationLimitAddress");
544 Add(ExternalReference(Runtime::kAllocateInOldPointerSpace, isolate).address(),
545 UNCLASSIFIED,
546 56,
547 "Runtime::AllocateInOldPointerSpace");
548 Add(ExternalReference::old_data_space_allocation_top_address( 542 Add(ExternalReference::old_data_space_allocation_top_address(
549 isolate).address(), 543 isolate).address(),
550 UNCLASSIFIED, 544 UNCLASSIFIED,
551 57, 545 57,
552 "Heap::OldDataSpaceAllocationTopAddress"); 546 "Heap::OldDataSpaceAllocationTopAddress");
553 Add(ExternalReference::old_data_space_allocation_limit_address( 547 Add(ExternalReference::old_data_space_allocation_limit_address(
554 isolate).address(), 548 isolate).address(),
555 UNCLASSIFIED, 549 UNCLASSIFIED,
556 58, 550 58,
557 "Heap::OldDataSpaceAllocationLimitAddress"); 551 "Heap::OldDataSpaceAllocationLimitAddress");
558 Add(ExternalReference(Runtime::kAllocateInOldDataSpace, isolate).address(),
559 UNCLASSIFIED,
560 59,
561 "Runtime::AllocateInOldDataSpace");
562 Add(ExternalReference::new_space_high_promotion_mode_active_address(isolate). 552 Add(ExternalReference::new_space_high_promotion_mode_active_address(isolate).
563 address(), 553 address(),
564 UNCLASSIFIED, 554 UNCLASSIFIED,
565 60, 555 59,
566 "Heap::NewSpaceAllocationLimitAddress"); 556 "Heap::NewSpaceAllocationLimitAddress");
567 Add(ExternalReference::allocation_sites_list_address(isolate).address(), 557 Add(ExternalReference::allocation_sites_list_address(isolate).address(),
568 UNCLASSIFIED, 558 UNCLASSIFIED,
569 61, 559 60,
570 "Heap::allocation_sites_list_address()"); 560 "Heap::allocation_sites_list_address()");
571 Add(ExternalReference::address_of_uint32_bias().address(), 561 Add(ExternalReference::address_of_uint32_bias().address(),
572 UNCLASSIFIED, 562 UNCLASSIFIED,
573 62, 563 61,
574 "uint32_bias"); 564 "uint32_bias");
575 Add(ExternalReference::get_mark_code_as_executed_function(isolate).address(), 565 Add(ExternalReference::get_mark_code_as_executed_function(isolate).address(),
576 UNCLASSIFIED, 566 UNCLASSIFIED,
577 63, 567 62,
578 "Code::MarkCodeAsExecuted"); 568 "Code::MarkCodeAsExecuted");
579 569
580 // Add a small set of deopt entry addresses to encoder without generating the 570 // Add a small set of deopt entry addresses to encoder without generating the
581 // deopt table code, which isn't possible at deserialization time. 571 // deopt table code, which isn't possible at deserialization time.
582 HandleScope scope(isolate); 572 HandleScope scope(isolate);
583 for (int entry = 0; entry < kDeoptTableSerializeEntryCount; ++entry) { 573 for (int entry = 0; entry < kDeoptTableSerializeEntryCount; ++entry) {
584 Address address = Deoptimizer::GetDeoptimizationEntry( 574 Address address = Deoptimizer::GetDeoptimizationEntry(
585 isolate, 575 isolate,
586 entry, 576 entry,
587 Deoptimizer::LAZY, 577 Deoptimizer::LAZY,
588 Deoptimizer::CALCULATE_ENTRY_ADDRESS); 578 Deoptimizer::CALCULATE_ENTRY_ADDRESS);
589 Add(address, LAZY_DEOPTIMIZATION, 64 + entry, "lazy_deopt"); 579 Add(address, LAZY_DEOPTIMIZATION, entry, "lazy_deopt");
590 } 580 }
591 } 581 }
592 582
593 583
594 ExternalReferenceEncoder::ExternalReferenceEncoder(Isolate* isolate) 584 ExternalReferenceEncoder::ExternalReferenceEncoder(Isolate* isolate)
595 : encodings_(Match), 585 : encodings_(Match),
596 isolate_(isolate) { 586 isolate_(isolate) {
597 ExternalReferenceTable* external_references = 587 ExternalReferenceTable* external_references =
598 ExternalReferenceTable::instance(isolate_); 588 ExternalReferenceTable::instance(isolate_);
599 for (int i = 0; i < external_references->size(); ++i) { 589 for (int i = 0; i < external_references->size(); ++i) {
(...skipping 1271 matching lines...) Expand 10 before | Expand all | Expand 10 after
1871 1861
1872 bool SnapshotByteSource::AtEOF() { 1862 bool SnapshotByteSource::AtEOF() {
1873 if (0u + length_ - position_ > 2 * sizeof(uint32_t)) return false; 1863 if (0u + length_ - position_ > 2 * sizeof(uint32_t)) return false;
1874 for (int x = position_; x < length_; x++) { 1864 for (int x = position_; x < length_; x++) {
1875 if (data_[x] != SerializerDeserializer::nop()) return false; 1865 if (data_[x] != SerializerDeserializer::nop()) return false;
1876 } 1866 }
1877 return true; 1867 return true;
1878 } 1868 }
1879 1869
1880 } } // namespace v8::internal 1870 } } // namespace v8::internal
OLDNEW
« include/v8-platform.h ('K') | « src/scopes.cc ('k') | src/spaces.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698