Index: src/contexts.h |
diff --git a/src/contexts.h b/src/contexts.h |
index 63c9955b9791aa95b7d32b51e240d1774a489a19..04bff926b0575eb6e26439f958eb2f1ad3c88597 100644 |
--- a/src/contexts.h |
+++ b/src/contexts.h |
@@ -551,14 +551,21 @@ class Context: public FixedArray { |
return kHeaderSize + index * kPointerSize - kHeapObjectTag; |
} |
- static int FunctionMapIndex(StrictMode strict_mode, bool is_generator) { |
- return is_generator |
- ? (strict_mode == SLOPPY |
- ? SLOPPY_GENERATOR_FUNCTION_MAP_INDEX |
- : STRICT_GENERATOR_FUNCTION_MAP_INDEX) |
- : (strict_mode == SLOPPY |
- ? SLOPPY_FUNCTION_MAP_INDEX |
- : STRICT_FUNCTION_MAP_INDEX); |
+ static int FunctionMapIndex(StrictMode strict_mode, bool is_generator, |
+ bool is_concise_method) { |
+ if (is_generator) { |
+ return strict_mode == SLOPPY ? SLOPPY_GENERATOR_FUNCTION_MAP_INDEX |
+ : STRICT_GENERATOR_FUNCTION_MAP_INDEX; |
+ } |
+ |
+ if (is_concise_method) { |
+ return strict_mode == SLOPPY |
+ ? SLOPPY_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX |
+ : STRICT_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX; |
+ } |
+ |
+ return strict_mode == SLOPPY ? SLOPPY_FUNCTION_MAP_INDEX |
+ : STRICT_FUNCTION_MAP_INDEX; |
} |
static const int kSize = kHeaderSize + NATIVE_CONTEXT_SLOTS * kPointerSize; |