5 #ifndef V8_COMPILER_COMMON_NODE_CACHE_H_ 6 #define V8_COMPILER_COMMON_NODE_CACHE_H_ 8 #include "src/compiler/node-cache.h" 14 class ExternalReference;
28 Node** FindInt32Constant(int32_t value) {
29 return int32_constants_.Find(zone(), value);
33 return int64_constants_.Find(zone(), value);
36 Node** FindFloat32Constant(
float value) {
38 return float32_constants_.Find(zone(), bit_cast<int32_t>(value));
41 Node** FindFloat64Constant(
double value) {
43 return float64_constants_.Find(zone(), bit_cast<int64_t>(value));
48 Node** FindPointerConstant(intptr_t value) {
49 return pointer_constants_.Find(zone(), value);
52 Node** FindNumberConstant(
double value) {
54 return number_constants_.Find(zone(), bit_cast<int64_t>(value));
60 return relocatable_int32_constants_.Find(zone(),
61 std::make_pair(value, rmode));
65 return relocatable_int64_constants_.Find(zone(),
66 std::make_pair(value, rmode));
72 Zone* zone()
const {
return zone_; }
94 #endif // V8_COMPILER_COMMON_NODE_CACHE_H_