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

Side by Side Diff: src/serialize.cc

Issue 254783003: Convert function.name to API-style accessor and make CallApiGetterStub serializable. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 8 months 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
« no previous file with comments | « src/mips/macro-assembler-mips.cc ('k') | src/x64/code-stubs-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 540 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 "Heap::allocation_sites_list_address()"); 551 "Heap::allocation_sites_list_address()");
552 Add(ExternalReference::address_of_uint32_bias().address(), 552 Add(ExternalReference::address_of_uint32_bias().address(),
553 UNCLASSIFIED, 553 UNCLASSIFIED,
554 61, 554 61,
555 "uint32_bias"); 555 "uint32_bias");
556 Add(ExternalReference::get_mark_code_as_executed_function(isolate).address(), 556 Add(ExternalReference::get_mark_code_as_executed_function(isolate).address(),
557 UNCLASSIFIED, 557 UNCLASSIFIED,
558 62, 558 62,
559 "Code::MarkCodeAsExecuted"); 559 "Code::MarkCodeAsExecuted");
560 560
561 Add(ExternalReference::is_profiling_address(isolate).address(),
562 UNCLASSIFIED,
563 63,
564 "CpuProfiler::is_profiling");
565
566 Add(ExternalReference::scheduled_exception_address(isolate).address(),
567 UNCLASSIFIED,
568 64,
569 "Isolate::scheduled_exception");
570
571 Add(ExternalReference::invoke_function_callback(isolate).address(),
572 UNCLASSIFIED,
573 65,
574 "InvokeFunctionCallback");
575
576 Add(ExternalReference::invoke_accessor_getter_callback(isolate).address(),
577 UNCLASSIFIED,
578 66,
579 "InvokeAccessorGetterCallback");
580
561 // Add a small set of deopt entry addresses to encoder without generating the 581 // Add a small set of deopt entry addresses to encoder without generating the
562 // deopt table code, which isn't possible at deserialization time. 582 // deopt table code, which isn't possible at deserialization time.
563 HandleScope scope(isolate); 583 HandleScope scope(isolate);
564 for (int entry = 0; entry < kDeoptTableSerializeEntryCount; ++entry) { 584 for (int entry = 0; entry < kDeoptTableSerializeEntryCount; ++entry) {
565 Address address = Deoptimizer::GetDeoptimizationEntry( 585 Address address = Deoptimizer::GetDeoptimizationEntry(
566 isolate, 586 isolate,
567 entry, 587 entry,
568 Deoptimizer::LAZY, 588 Deoptimizer::LAZY,
569 Deoptimizer::CALCULATE_ENTRY_ADDRESS); 589 Deoptimizer::CALCULATE_ENTRY_ADDRESS);
570 Add(address, LAZY_DEOPTIMIZATION, entry, "lazy_deopt"); 590 Add(address, LAZY_DEOPTIMIZATION, entry, "lazy_deopt");
(...skipping 1317 matching lines...) Expand 10 before | Expand all | Expand 10 after
1888 1908
1889 bool SnapshotByteSource::AtEOF() { 1909 bool SnapshotByteSource::AtEOF() {
1890 if (0u + length_ - position_ > 2 * sizeof(uint32_t)) return false; 1910 if (0u + length_ - position_ > 2 * sizeof(uint32_t)) return false;
1891 for (int x = position_; x < length_; x++) { 1911 for (int x = position_; x < length_; x++) {
1892 if (data_[x] != SerializerDeserializer::nop()) return false; 1912 if (data_[x] != SerializerDeserializer::nop()) return false;
1893 } 1913 }
1894 return true; 1914 return true;
1895 } 1915 }
1896 1916
1897 } } // namespace v8::internal 1917 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/macro-assembler-mips.cc ('k') | src/x64/code-stubs-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698