| Index: src/objects.h
|
| diff --git a/src/objects.h b/src/objects.h
|
| index 4ea4cceca50d302a59f010c924a2f590698e1478..7c24dec1425b9451414980e9d60fbae036c15d6d 100644
|
| --- a/src/objects.h
|
| +++ b/src/objects.h
|
| @@ -3958,6 +3958,9 @@ class ScopeInfo : public FixedArray {
|
| // Return the language mode of this scope.
|
| LanguageMode language_mode();
|
|
|
| + // Return the asm mode of this scope.
|
| + AsmMode asm_mode();
|
| +
|
| // Does this scope make a sloppy eval call?
|
| bool CallsSloppyEval() { return CallsEval() && is_sloppy(language_mode()); }
|
|
|
| @@ -6619,6 +6622,9 @@ class SharedFunctionInfo: public HeapObject {
|
| DECL_ACCESSORS(code, Code)
|
| inline void ReplaceCode(Code* code);
|
|
|
| + // [code]: Code for asm functions.
|
| + DECL_ACCESSORS(asm_code, Code)
|
| +
|
| // [optimized_code_map]: Map from native context to optimized code
|
| // and a shared literals array or Smi(0) if none.
|
| DECL_ACCESSORS(optimized_code_map, Object)
|
| @@ -6809,6 +6815,10 @@ class SharedFunctionInfo: public HeapObject {
|
| inline LanguageMode language_mode();
|
| inline void set_language_mode(LanguageMode language_mode);
|
|
|
| + // Indicates the asm mode.
|
| + inline AsmMode asm_mode();
|
| + inline void set_asm_mode(AsmMode asm_mode);
|
| +
|
| // False if the function definitely does not allocate an arguments object.
|
| DECL_BOOLEAN_ACCESSORS(uses_arguments)
|
|
|
| @@ -6873,6 +6883,9 @@ class SharedFunctionInfo: public HeapObject {
|
| // Indicates that this function is an asm function.
|
| DECL_BOOLEAN_ACCESSORS(asm_function)
|
|
|
| + // Indicates that this function is an asm module.
|
| + DECL_BOOLEAN_ACCESSORS(asm_module)
|
| +
|
| // Indicates that the the shared function info is deserialized from cache.
|
| DECL_BOOLEAN_ACCESSORS(deserialized)
|
|
|
| @@ -6970,8 +6983,8 @@ class SharedFunctionInfo: public HeapObject {
|
| static const int kScriptOffset = kFunctionDataOffset + kPointerSize;
|
| static const int kDebugInfoOffset = kScriptOffset + kPointerSize;
|
| static const int kInferredNameOffset = kDebugInfoOffset + kPointerSize;
|
| - static const int kFeedbackVectorOffset =
|
| - kInferredNameOffset + kPointerSize;
|
| + static const int kAsmCodeOffset = kInferredNameOffset + kPointerSize;
|
| + static const int kFeedbackVectorOffset = kAsmCodeOffset + kPointerSize;
|
| #if TRACE_MAPS
|
| static const int kUniqueIdOffset = kFeedbackVectorOffset + kPointerSize;
|
| static const int kLastPointerFieldOffset = kUniqueIdOffset;
|
| @@ -7125,6 +7138,7 @@ class SharedFunctionInfo: public HeapObject {
|
| kIsBaseConstructor,
|
| kInClassLiteral,
|
| kIsAsmFunction,
|
| + kIsAsmModule,
|
| kDeserialized,
|
| kCompilerHintsCount // Pseudo entry
|
| };
|
|
|