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

Unified Diff: src/assembler.h

Issue 2841913003: [WIP] Initial CallFunctionCallback builtin.
Patch Set: Fix wrong register for arm64. Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/arm64/macro-assembler-arm64.cc ('k') | src/builtins/arm/builtins-arm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/assembler.h
diff --git a/src/assembler.h b/src/assembler.h
index 06be048fa666e635a6c0a218b8704dff88155c70..da58a725e2764bbcf35f561e8d27c6b7809564cc 100644
--- a/src/assembler.h
+++ b/src/assembler.h
@@ -1089,6 +1089,13 @@ size_t hash_value(ExternalReference);
V8_EXPORT_PRIVATE std::ostream& operator<<(std::ostream&, ExternalReference);
+inline int AddressOffset(ExternalReference ref0, ExternalReference ref1) {
+ ptrdiff_t offset = ref0.address() - ref1.address();
+ // Check that fits into int.
+ DCHECK_EQ(offset, static_cast<int>(offset));
+ return static_cast<int>(offset);
+}
+
// -----------------------------------------------------------------------------
// Utility functions
« no previous file with comments | « src/arm64/macro-assembler-arm64.cc ('k') | src/builtins/arm/builtins-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698