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 9572008: Implement date library functions in C++. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebase Created 8 years, 9 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/runtime.cc ('k') | src/x64/full-codegen-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 484 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 43, 495 43,
496 "store_buffer_top"); 496 "store_buffer_top");
497 Add(ExternalReference::address_of_canonical_non_hole_nan().address(), 497 Add(ExternalReference::address_of_canonical_non_hole_nan().address(),
498 UNCLASSIFIED, 498 UNCLASSIFIED,
499 44, 499 44,
500 "canonical_nan"); 500 "canonical_nan");
501 Add(ExternalReference::address_of_the_hole_nan().address(), 501 Add(ExternalReference::address_of_the_hole_nan().address(),
502 UNCLASSIFIED, 502 UNCLASSIFIED,
503 45, 503 45,
504 "the_hole_nan"); 504 "the_hole_nan");
505 Add(ExternalReference::get_date_field_function(isolate).address(),
506 UNCLASSIFIED,
507 46,
508 "JSDate::GetField");
509 Add(ExternalReference::date_cache_stamp(isolate).address(),
510 UNCLASSIFIED,
511 47,
512 "date_cache_stamp");
505 } 513 }
506 514
507 515
508 ExternalReferenceEncoder::ExternalReferenceEncoder() 516 ExternalReferenceEncoder::ExternalReferenceEncoder()
509 : encodings_(Match), 517 : encodings_(Match),
510 isolate_(Isolate::Current()) { 518 isolate_(Isolate::Current()) {
511 ExternalReferenceTable* external_references = 519 ExternalReferenceTable* external_references =
512 ExternalReferenceTable::instance(isolate_); 520 ExternalReferenceTable::instance(isolate_);
513 for (int i = 0; i < external_references->size(); ++i) { 521 for (int i = 0; i < external_references->size(); ++i) {
514 Put(external_references->address(i), i); 522 Put(external_references->address(i), i);
(...skipping 1151 matching lines...) Expand 10 before | Expand all | Expand 10 after
1666 int Serializer::SpaceAreaSize(int space) { 1674 int Serializer::SpaceAreaSize(int space) {
1667 if (space == CODE_SPACE) { 1675 if (space == CODE_SPACE) {
1668 return isolate_->memory_allocator()->CodePageAreaSize(); 1676 return isolate_->memory_allocator()->CodePageAreaSize();
1669 } else { 1677 } else {
1670 return Page::kPageSize - Page::kObjectStartOffset; 1678 return Page::kPageSize - Page::kObjectStartOffset;
1671 } 1679 }
1672 } 1680 }
1673 1681
1674 1682
1675 } } // namespace v8::internal 1683 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/runtime.cc ('k') | src/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698