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

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
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 1490 matching lines...) Expand 10 before | Expand all | Expand 10 after
1501 return ExternalReference(Redirect(isolate, FUNCTION_ADDR(Debug_Break))); 1501 return ExternalReference(Redirect(isolate, FUNCTION_ADDR(Debug_Break)));
1502 } 1502 }
1503 1503
1504 1504
1505 ExternalReference ExternalReference::debug_step_in_fp_address( 1505 ExternalReference ExternalReference::debug_step_in_fp_address(
1506 Isolate* isolate) { 1506 Isolate* isolate) {
1507 return ExternalReference(isolate->debug()->step_in_fp_addr()); 1507 return ExternalReference(isolate->debug()->step_in_fp_addr());
1508 } 1508 }
1509 1509
1510 1510
1511 ExternalReference ExternalReference::fixed_typed_array_base_data_offset() {
1512 return ExternalReference(reinterpret_cast<void*>(
1513 FixedTypedArrayBase::kDataOffset - kHeapObjectTag));
1514 }
1515
1516
1511 bool operator==(ExternalReference lhs, ExternalReference rhs) { 1517 bool operator==(ExternalReference lhs, ExternalReference rhs) {
1512 return lhs.address() == rhs.address(); 1518 return lhs.address() == rhs.address();
1513 } 1519 }
1514 1520
1515 1521
1516 bool operator!=(ExternalReference lhs, ExternalReference rhs) { 1522 bool operator!=(ExternalReference lhs, ExternalReference rhs) {
1517 return !(lhs == rhs); 1523 return !(lhs == rhs);
1518 } 1524 }
1519 1525
1520 1526
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
1821 1827
1822 1828
1823 void Assembler::DataAlign(int m) { 1829 void Assembler::DataAlign(int m) {
1824 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m)); 1830 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m));
1825 while ((pc_offset() & (m - 1)) != 0) { 1831 while ((pc_offset() & (m - 1)) != 0) {
1826 db(0); 1832 db(0);
1827 } 1833 }
1828 } 1834 }
1829 } // namespace internal 1835 } // namespace internal
1830 } // namespace v8 1836 } // namespace v8
OLDNEW
« no previous file with comments | « src/assembler.h ('k') | src/elements-kind.cc » ('j') | src/heap/heap.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698