Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(155)

Side by Side Diff: src/objects.h

Issue 2057403003: Hooking up asm-wasm conversion. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_OBJECTS_H_ 5 #ifndef V8_OBJECTS_H_
6 #define V8_OBJECTS_H_ 6 #define V8_OBJECTS_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 9
10 #include "src/assert-scope.h" 10 #include "src/assert-scope.h"
(...skipping 6776 matching lines...) Expand 10 before | Expand all | Expand 10 after
6787 inline void set_unique_id(int value); 6787 inline void set_unique_id(int value);
6788 #endif 6788 #endif
6789 6789
6790 // [instance class name]: class name for instances. 6790 // [instance class name]: class name for instances.
6791 DECL_ACCESSORS(instance_class_name, Object) 6791 DECL_ACCESSORS(instance_class_name, Object)
6792 6792
6793 // [function data]: This field holds some additional data for function. 6793 // [function data]: This field holds some additional data for function.
6794 // Currently it has one of: 6794 // Currently it has one of:
6795 // - a FunctionTemplateInfo to make benefit the API [IsApiFunction()]. 6795 // - a FunctionTemplateInfo to make benefit the API [IsApiFunction()].
6796 // - a BytecodeArray for the interpreter [HasBytecodeArray()]. 6796 // - a BytecodeArray for the interpreter [HasBytecodeArray()].
6797 // - a FixedArray with Asm->Wasm conversion [HasAsmWasmData()].
6797 DECL_ACCESSORS(function_data, Object) 6798 DECL_ACCESSORS(function_data, Object)
6798 6799
6799 inline bool IsApiFunction(); 6800 inline bool IsApiFunction();
6800 inline FunctionTemplateInfo* get_api_func_data(); 6801 inline FunctionTemplateInfo* get_api_func_data();
6801 inline void set_api_func_data(FunctionTemplateInfo* data); 6802 inline void set_api_func_data(FunctionTemplateInfo* data);
6802 inline bool HasBytecodeArray(); 6803 inline bool HasBytecodeArray();
6803 inline BytecodeArray* bytecode_array(); 6804 inline BytecodeArray* bytecode_array();
6804 inline void set_bytecode_array(BytecodeArray* bytecode); 6805 inline void set_bytecode_array(BytecodeArray* bytecode);
6805 inline void ClearBytecodeArray(); 6806 inline void ClearBytecodeArray();
6807 inline bool HasAsmWasmData();
6808 inline FixedArray* asm_wasm_data();
6809 inline void set_asm_wasm_data(FixedArray* data);
6810 inline void ClearAsmWasmData();
6806 6811
6807 // [function identifier]: This field holds an additional identifier for the 6812 // [function identifier]: This field holds an additional identifier for the
6808 // function. 6813 // function.
6809 // - a Smi identifying a builtin function [HasBuiltinFunctionId()]. 6814 // - a Smi identifying a builtin function [HasBuiltinFunctionId()].
6810 // - a String identifying the function's inferred name [HasInferredName()]. 6815 // - a String identifying the function's inferred name [HasInferredName()].
6811 // The inferred_name is inferred from variable or property 6816 // The inferred_name is inferred from variable or property
6812 // assignment of this function. It is used to facilitate debugging and 6817 // assignment of this function. It is used to facilitate debugging and
6813 // profiling of JavaScript code written in OO style, where almost 6818 // profiling of JavaScript code written in OO style, where almost
6814 // all functions are anonymous but are assigned to object 6819 // all functions are anonymous but are assigned to object
6815 // properties. 6820 // properties.
(...skipping 4013 matching lines...) Expand 10 before | Expand all | Expand 10 after
10829 } 10834 }
10830 return value; 10835 return value;
10831 } 10836 }
10832 }; 10837 };
10833 10838
10834 10839
10835 } // NOLINT, false-positive due to second-order macros. 10840 } // NOLINT, false-positive due to second-order macros.
10836 } // NOLINT, false-positive due to second-order macros. 10841 } // NOLINT, false-positive due to second-order macros.
10837 10842
10838 #endif // V8_OBJECTS_H_ 10843 #endif // V8_OBJECTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698