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

Side by Side Diff: src/assembler.h

Issue 1473683004: Lazily initialize fast_sqrt() and pass an Isolate parameter to it (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 5 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/arm64/simulator-arm64.cc ('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 1119 matching lines...) Expand 10 before | Expand all | Expand 10 after
1130 unsigned int num_bits_set; 1130 unsigned int num_bits_set;
1131 for (num_bits_set = 0; x; x >>= 1) { 1131 for (num_bits_set = 0; x; x >>= 1) {
1132 num_bits_set += x & 1; 1132 num_bits_set += x & 1;
1133 } 1133 }
1134 return num_bits_set; 1134 return num_bits_set;
1135 } 1135 }
1136 1136
1137 bool EvalComparison(Token::Value op, double op1, double op2); 1137 bool EvalComparison(Token::Value op, double op1, double op2);
1138 1138
1139 // Computes pow(x, y) with the special cases in the spec for Math.pow. 1139 // Computes pow(x, y) with the special cases in the spec for Math.pow.
1140 double power_helper(double x, double y); 1140 double power_helper(Isolate* isolate, double x, double y);
1141 double power_double_int(double x, int y); 1141 double power_double_int(double x, int y);
1142 double power_double_double(double x, double y); 1142 double power_double_double(double x, double y);
1143 1143
1144 // Helper class for generating code or data associated with the code 1144 // Helper class for generating code or data associated with the code
1145 // right after a call instruction. As an example this can be used to 1145 // right after a call instruction. As an example this can be used to
1146 // generate safepoint data after calls for crankshaft. 1146 // generate safepoint data after calls for crankshaft.
1147 class CallWrapper { 1147 class CallWrapper {
1148 public: 1148 public:
1149 CallWrapper() { } 1149 CallWrapper() { }
1150 virtual ~CallWrapper() { } 1150 virtual ~CallWrapper() { }
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
1279 std::vector<ConstantPoolEntry> shared_entries; 1279 std::vector<ConstantPoolEntry> shared_entries;
1280 }; 1280 };
1281 1281
1282 Label emitted_label_; // Records pc_offset of emitted pool 1282 Label emitted_label_; // Records pc_offset of emitted pool
1283 PerTypeEntryInfo info_[ConstantPoolEntry::NUMBER_OF_TYPES]; 1283 PerTypeEntryInfo info_[ConstantPoolEntry::NUMBER_OF_TYPES];
1284 }; 1284 };
1285 1285
1286 } // namespace internal 1286 } // namespace internal
1287 } // namespace v8 1287 } // namespace v8
1288 #endif // V8_ASSEMBLER_H_ 1288 #endif // V8_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « src/arm64/simulator-arm64.cc ('k') | src/assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698