Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index e2414d290046927d3d3f4a7e13d3b09e0311d5df..d1b591146032e83ae7be5fc89676556ea5987a16 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -5590,6 +5590,18 @@ void SharedFunctionInfo::set_strict_mode(StrictMode strict_mode) { |
} |
+FunctionKind SharedFunctionInfo::kind() { |
+ return FunctionKindBits::decode(compiler_hints()); |
+} |
+ |
+ |
+void SharedFunctionInfo::set_kind(FunctionKind kind) { |
rossberg
2014/08/25 09:39:30
Assert that kind is well-formed.
arv (Not doing code reviews)
2014/09/09 22:24:27
Done.
|
+ int hints = compiler_hints(); |
+ hints = FunctionKindBits::update(hints, kind); |
+ set_compiler_hints(hints); |
+} |
+ |
+ |
BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, native, kNative) |
BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, inline_builtin, |
kInlineBuiltin) |
@@ -5601,8 +5613,10 @@ BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_anonymous, kIsAnonymous) |
BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_function, kIsFunction) |
BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_cache, kDontCache) |
BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_flush, kDontFlush) |
-BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_generator, kIsGenerator) |
BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_arrow, kIsArrow) |
+BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_generator, kIsGenerator) |
+BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_concise_method, |
+ kIsConciseMethod) |
ACCESSORS(CodeCache, default_cache, FixedArray, kDefaultCacheOffset) |
ACCESSORS(CodeCache, normal_type_cache, Object, kNormalTypeCacheOffset) |