Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index a841185a7cdf0b10a57494b727a14eeeda03e635..5fad6e24c7099f48d66cadbb0319ed9d5c7ce9b4 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -3271,7 +3271,11 @@ class JSRegExp: public JSObject { |
// Set implementation data after the object has been prepared. |
inline void SetDataAt(int index, Object* value); |
static int code_index(bool is_ascii) { |
- return is_ascii ? kIrregexpASCIICodeIndex : kIrregexpUC16CodeIndex; |
+ if (is_ascii) { |
+ return kIrregexpASCIICodeIndex; |
+ } else { |
+ return kIrregexpUC16CodeIndex; |
+ } |
} |
static inline JSRegExp* cast(Object* obj); |