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

Side by Side Diff: src/assembler.cc

Issue 1248483007: Store offset between fixed typed array base and data start in object (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 5 years, 5 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
« no previous file with comments | « src/assembler.h ('k') | src/elements-kind.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 (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 1494 matching lines...) Expand 10 before | Expand all | Expand 10 after
1505 return ExternalReference(Redirect(isolate, FUNCTION_ADDR(Debug_Break))); 1505 return ExternalReference(Redirect(isolate, FUNCTION_ADDR(Debug_Break)));
1506 } 1506 }
1507 1507
1508 1508
1509 ExternalReference ExternalReference::debug_step_in_fp_address( 1509 ExternalReference ExternalReference::debug_step_in_fp_address(
1510 Isolate* isolate) { 1510 Isolate* isolate) {
1511 return ExternalReference(isolate->debug()->step_in_fp_addr()); 1511 return ExternalReference(isolate->debug()->step_in_fp_addr());
1512 } 1512 }
1513 1513
1514 1514
1515 ExternalReference ExternalReference::fixed_typed_array_base_data_offset() {
1516 return ExternalReference(reinterpret_cast<void*>(
1517 FixedTypedArrayBase::kDataOffset - kHeapObjectTag));
1518 }
1519
1520
1515 bool operator==(ExternalReference lhs, ExternalReference rhs) { 1521 bool operator==(ExternalReference lhs, ExternalReference rhs) {
1516 return lhs.address() == rhs.address(); 1522 return lhs.address() == rhs.address();
1517 } 1523 }
1518 1524
1519 1525
1520 bool operator!=(ExternalReference lhs, ExternalReference rhs) { 1526 bool operator!=(ExternalReference lhs, ExternalReference rhs) {
1521 return !(lhs == rhs); 1527 return !(lhs == rhs);
1522 } 1528 }
1523 1529
1524 1530
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
1825 1831
1826 1832
1827 void Assembler::DataAlign(int m) { 1833 void Assembler::DataAlign(int m) {
1828 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m)); 1834 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m));
1829 while ((pc_offset() & (m - 1)) != 0) { 1835 while ((pc_offset() & (m - 1)) != 0) {
1830 db(0); 1836 db(0);
1831 } 1837 }
1832 } 1838 }
1833 } // namespace internal 1839 } // namespace internal
1834 } // namespace v8 1840 } // namespace v8
OLDNEW
« no previous file with comments | « src/assembler.h ('k') | src/elements-kind.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698