Commit 72235cf0 authored by lrn@chromium.org's avatar lrn@chromium.org

Changed ?: into if/else to placate compiler.

Review URL: http://codereview.chromium.org/155131


git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@2368 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 67fec326
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment