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

Side by Side Diff: src/serialize.cc

Issue 14429003: Refactor ExternalReference::isolate_address() to not rely on Isolate::Current(). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: addressed comments Created 7 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/stub-cache-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 454 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 35, 465 35,
466 "Deoptimizer::ComputeOutputFrames()"); 466 "Deoptimizer::ComputeOutputFrames()");
467 Add(ExternalReference::address_of_min_int().address(), 467 Add(ExternalReference::address_of_min_int().address(),
468 UNCLASSIFIED, 468 UNCLASSIFIED,
469 36, 469 36,
470 "LDoubleConstant::min_int"); 470 "LDoubleConstant::min_int");
471 Add(ExternalReference::address_of_one_half().address(), 471 Add(ExternalReference::address_of_one_half().address(),
472 UNCLASSIFIED, 472 UNCLASSIFIED,
473 37, 473 37,
474 "LDoubleConstant::one_half"); 474 "LDoubleConstant::one_half");
475 Add(ExternalReference::isolate_address().address(), 475 Add(ExternalReference::isolate_address(isolate).address(),
476 UNCLASSIFIED, 476 UNCLASSIFIED,
477 38, 477 38,
478 "isolate"); 478 "isolate");
479 Add(ExternalReference::address_of_minus_zero().address(), 479 Add(ExternalReference::address_of_minus_zero().address(),
480 UNCLASSIFIED, 480 UNCLASSIFIED,
481 39, 481 39,
482 "LDoubleConstant::minus_zero"); 482 "LDoubleConstant::minus_zero");
483 Add(ExternalReference::address_of_negative_infinity().address(), 483 Add(ExternalReference::address_of_negative_infinity().address(),
484 UNCLASSIFIED, 484 UNCLASSIFIED,
485 40, 485 40,
(...skipping 1180 matching lines...) Expand 10 before | Expand all | Expand 10 after
1666 1666
1667 bool SnapshotByteSource::AtEOF() { 1667 bool SnapshotByteSource::AtEOF() {
1668 if (0u + length_ - position_ > 2 * sizeof(uint32_t)) return false; 1668 if (0u + length_ - position_ > 2 * sizeof(uint32_t)) return false;
1669 for (int x = position_; x < length_; x++) { 1669 for (int x = position_; x < length_; x++) {
1670 if (data_[x] != SerializerDeserializer::nop()) return false; 1670 if (data_[x] != SerializerDeserializer::nop()) return false;
1671 } 1671 }
1672 return true; 1672 return true;
1673 } 1673 }
1674 1674
1675 } } // namespace v8::internal 1675 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/stub-cache-mips.cc ('k') | src/x64/code-stubs-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698