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

Side by Side Diff: src/assembler.h

Issue 2539093002: [runtime] Port simple String.prototype.indexOf cases to TF Builtin (Closed)
Patch Set: merging with master Created 4 years 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/arguments.h ('k') | src/assembler.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 1011 matching lines...) Expand 10 before | Expand all | Expand 10 after
1022 static ExternalReference ieee754_expm1_function(Isolate* isolate); 1022 static ExternalReference ieee754_expm1_function(Isolate* isolate);
1023 static ExternalReference ieee754_log_function(Isolate* isolate); 1023 static ExternalReference ieee754_log_function(Isolate* isolate);
1024 static ExternalReference ieee754_log1p_function(Isolate* isolate); 1024 static ExternalReference ieee754_log1p_function(Isolate* isolate);
1025 static ExternalReference ieee754_log10_function(Isolate* isolate); 1025 static ExternalReference ieee754_log10_function(Isolate* isolate);
1026 static ExternalReference ieee754_log2_function(Isolate* isolate); 1026 static ExternalReference ieee754_log2_function(Isolate* isolate);
1027 static ExternalReference ieee754_sin_function(Isolate* isolate); 1027 static ExternalReference ieee754_sin_function(Isolate* isolate);
1028 static ExternalReference ieee754_sinh_function(Isolate* isolate); 1028 static ExternalReference ieee754_sinh_function(Isolate* isolate);
1029 static ExternalReference ieee754_tan_function(Isolate* isolate); 1029 static ExternalReference ieee754_tan_function(Isolate* isolate);
1030 static ExternalReference ieee754_tanh_function(Isolate* isolate); 1030 static ExternalReference ieee754_tanh_function(Isolate* isolate);
1031 1031
1032 static ExternalReference libc_memchr_function(Isolate* isolate);
1033
1032 static ExternalReference page_flags(Page* page); 1034 static ExternalReference page_flags(Page* page);
1033 1035
1034 static ExternalReference ForDeoptEntry(Address entry); 1036 static ExternalReference ForDeoptEntry(Address entry);
1035 1037
1036 static ExternalReference cpu_features(); 1038 static ExternalReference cpu_features();
1037 1039
1038 static ExternalReference is_tail_call_elimination_enabled_address( 1040 static ExternalReference is_tail_call_elimination_enabled_address(
1039 Isolate* isolate); 1041 Isolate* isolate);
1040 1042
1041 static ExternalReference debug_is_active_address(Isolate* isolate); 1043 static ExternalReference debug_is_active_address(Isolate* isolate);
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
1110 1112
1111 V8_EXPORT_PRIVATE bool operator==(ExternalReference, ExternalReference); 1113 V8_EXPORT_PRIVATE bool operator==(ExternalReference, ExternalReference);
1112 bool operator!=(ExternalReference, ExternalReference); 1114 bool operator!=(ExternalReference, ExternalReference);
1113 1115
1114 size_t hash_value(ExternalReference); 1116 size_t hash_value(ExternalReference);
1115 1117
1116 V8_EXPORT_PRIVATE std::ostream& operator<<(std::ostream&, ExternalReference); 1118 V8_EXPORT_PRIVATE std::ostream& operator<<(std::ostream&, ExternalReference);
1117 1119
1118 // ----------------------------------------------------------------------------- 1120 // -----------------------------------------------------------------------------
1119 // Utility functions 1121 // Utility functions
1122 void* libc_memchr(void* string, int character, size_t search_length);
1120 1123
1121 inline int NumberOfBitsSet(uint32_t x) { 1124 inline int NumberOfBitsSet(uint32_t x) {
1122 unsigned int num_bits_set; 1125 unsigned int num_bits_set;
1123 for (num_bits_set = 0; x; x >>= 1) { 1126 for (num_bits_set = 0; x; x >>= 1) {
1124 num_bits_set += x & 1; 1127 num_bits_set += x & 1;
1125 } 1128 }
1126 return num_bits_set; 1129 return num_bits_set;
1127 } 1130 }
1128 1131
1129 // Computes pow(x, y) with the special cases in the spec for Math.pow. 1132 // Computes pow(x, y) with the special cases in the spec for Math.pow.
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
1282 std::vector<ConstantPoolEntry> shared_entries; 1285 std::vector<ConstantPoolEntry> shared_entries;
1283 }; 1286 };
1284 1287
1285 Label emitted_label_; // Records pc_offset of emitted pool 1288 Label emitted_label_; // Records pc_offset of emitted pool
1286 PerTypeEntryInfo info_[ConstantPoolEntry::NUMBER_OF_TYPES]; 1289 PerTypeEntryInfo info_[ConstantPoolEntry::NUMBER_OF_TYPES];
1287 }; 1290 };
1288 1291
1289 } // namespace internal 1292 } // namespace internal
1290 } // namespace v8 1293 } // namespace v8
1291 #endif // V8_ASSEMBLER_H_ 1294 #endif // V8_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « src/arguments.h ('k') | src/assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698