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

Side by Side Diff: src/serialize.cc

Issue 6577036: [Isolates] Merge from bleeding_edge to isolates, revisions 6100-6300. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: '' Created 9 years, 10 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/scanner-base.cc ('k') | src/string.js » ('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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 35, 479 35,
480 "LDoubleConstant::min_int"); 480 "LDoubleConstant::min_int");
481 Add(ExternalReference::address_of_one_half().address(), 481 Add(ExternalReference::address_of_one_half().address(),
482 UNCLASSIFIED, 482 UNCLASSIFIED,
483 36, 483 36,
484 "LDoubleConstant::one_half"); 484 "LDoubleConstant::one_half");
485 Add(ExternalReference::isolate_address().address(), 485 Add(ExternalReference::isolate_address().address(),
486 UNCLASSIFIED, 486 UNCLASSIFIED,
487 37, 487 37,
488 "isolate"); 488 "isolate");
489 Add(ExternalReference::address_of_minus_zero().address(),
490 UNCLASSIFIED,
491 38,
492 "LDoubleConstant::minus_zero");
489 Add(ExternalReference::address_of_negative_infinity().address(), 493 Add(ExternalReference::address_of_negative_infinity().address(),
490 UNCLASSIFIED, 494 UNCLASSIFIED,
491 38, 495 39,
492 "LDoubleConstant::negative_infinity"); 496 "LDoubleConstant::negative_infinity");
493 Add(ExternalReference::power_double_double_function().address(), 497 Add(ExternalReference::power_double_double_function().address(),
494 UNCLASSIFIED, 498 UNCLASSIFIED,
495 39, 499 40,
496 "power_double_double_function"); 500 "power_double_double_function");
497 Add(ExternalReference::power_double_int_function().address(), 501 Add(ExternalReference::power_double_int_function().address(),
498 UNCLASSIFIED, 502 UNCLASSIFIED,
499 40, 503 41,
500 "power_double_int_function"); 504 "power_double_int_function");
505 Add(ExternalReference::arguments_marker_location().address(),
506 UNCLASSIFIED,
507 42,
508 "Factory::arguments_marker().location()");
501 } 509 }
502 510
503 511
504 ExternalReferenceEncoder::ExternalReferenceEncoder() 512 ExternalReferenceEncoder::ExternalReferenceEncoder()
505 : encodings_(Match), 513 : encodings_(Match),
506 isolate_(Isolate::Current()) { 514 isolate_(Isolate::Current()) {
507 ExternalReferenceTable* external_references = 515 ExternalReferenceTable* external_references =
508 ExternalReferenceTable::instance(isolate_); 516 ExternalReferenceTable::instance(isolate_);
509 for (int i = 0; i < external_references->size(); ++i) { 517 for (int i = 0; i < external_references->size(); ++i) {
510 Put(external_references->address(i), i); 518 Put(external_references->address(i), i);
(...skipping 1031 matching lines...) Expand 10 before | Expand all | Expand 10 after
1542 fullness_[space] = RoundUp(fullness_[space], Page::kPageSize); 1550 fullness_[space] = RoundUp(fullness_[space], Page::kPageSize);
1543 } 1551 }
1544 } 1552 }
1545 int allocation_address = fullness_[space]; 1553 int allocation_address = fullness_[space];
1546 fullness_[space] = allocation_address + size; 1554 fullness_[space] = allocation_address + size;
1547 return allocation_address; 1555 return allocation_address;
1548 } 1556 }
1549 1557
1550 1558
1551 } } // namespace v8::internal 1559 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/scanner-base.cc ('k') | src/string.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698