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

Side by Side Diff: src/x64/assembler-x64.h

Issue 2148743004: WIP: wasm oob trap handling experiments (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Undoing spurious changes Created 3 years, 11 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/wasm/wasm-module.cc ('k') | src/x64/assembler-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 (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 1834 matching lines...) Expand 10 before | Expand all | Expand 10 after
1845 } 1845 }
1846 1846
1847 static bool IsNop(Address addr); 1847 static bool IsNop(Address addr);
1848 1848
1849 // Avoid overflows for displacements etc. 1849 // Avoid overflows for displacements etc.
1850 static const int kMaximalBufferSize = 512*MB; 1850 static const int kMaximalBufferSize = 512*MB;
1851 1851
1852 byte byte_at(int pos) { return buffer_[pos]; } 1852 byte byte_at(int pos) { return buffer_[pos]; }
1853 void set_byte_at(int pos, byte value) { buffer_[pos] = value; } 1853 void set_byte_at(int pos, byte value) { buffer_[pos] = value; }
1854 1854
1855 Address GetPC() const { return pc_; }
1856 void RecordRelocInfo(RelocInfo* rinfo);
1857
1855 protected: 1858 protected:
1856 // Call near indirect 1859 // Call near indirect
1857 void call(const Operand& operand); 1860 void call(const Operand& operand);
1858 1861
1859 private: 1862 private:
1860 byte* addr_at(int pos) { return buffer_ + pos; } 1863 byte* addr_at(int pos) { return buffer_ + pos; }
1861 uint32_t long_at(int pos) { 1864 uint32_t long_at(int pos) {
1862 return *reinterpret_cast<uint32_t*>(addr_at(pos)); 1865 return *reinterpret_cast<uint32_t*>(addr_at(pos));
1863 } 1866 }
1864 void long_at_put(int pos, uint32_t x) { 1867 void long_at_put(int pos, uint32_t x) {
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
2350 Assembler* assembler_; 2353 Assembler* assembler_;
2351 #ifdef DEBUG 2354 #ifdef DEBUG
2352 int space_before_; 2355 int space_before_;
2353 #endif 2356 #endif
2354 }; 2357 };
2355 2358
2356 } // namespace internal 2359 } // namespace internal
2357 } // namespace v8 2360 } // namespace v8
2358 2361
2359 #endif // V8_X64_ASSEMBLER_X64_H_ 2362 #endif // V8_X64_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/wasm/wasm-module.cc ('k') | src/x64/assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698