| OLD | NEW | 
|     1 // Copyright 2012 the V8 project authors. All rights reserved. |     1 // Copyright 2012 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 // Review notes: |     5 // Review notes: | 
|     6 // |     6 // | 
|     7 // - The use of macros in these inline functions may seem superfluous |     7 // - The use of macros in these inline functions may seem superfluous | 
|     8 // but it is absolutely needed to make sure gcc generates optimal |     8 // but it is absolutely needed to make sure gcc generates optimal | 
|     9 // code. gcc is not happy when attempting to inline too deep. |     9 // code. gcc is not happy when attempting to inline too deep. | 
|    10 // |    10 // | 
| (...skipping 5972 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  5983 void SharedFunctionInfo::set_bytecode_array(BytecodeArray* bytecode) { |  5983 void SharedFunctionInfo::set_bytecode_array(BytecodeArray* bytecode) { | 
|  5984   DCHECK(function_data()->IsUndefined(GetIsolate())); |  5984   DCHECK(function_data()->IsUndefined(GetIsolate())); | 
|  5985   set_function_data(bytecode); |  5985   set_function_data(bytecode); | 
|  5986 } |  5986 } | 
|  5987  |  5987  | 
|  5988 void SharedFunctionInfo::ClearBytecodeArray() { |  5988 void SharedFunctionInfo::ClearBytecodeArray() { | 
|  5989   DCHECK(function_data()->IsUndefined(GetIsolate()) || HasBytecodeArray()); |  5989   DCHECK(function_data()->IsUndefined(GetIsolate()) || HasBytecodeArray()); | 
|  5990   set_function_data(GetHeap()->undefined_value()); |  5990   set_function_data(GetHeap()->undefined_value()); | 
|  5991 } |  5991 } | 
|  5992  |  5992  | 
 |  5993 bool SharedFunctionInfo::HasAsmWasmData() { | 
 |  5994   return function_data()->IsFixedArray(); | 
 |  5995 } | 
 |  5996  | 
 |  5997 FixedArray* SharedFunctionInfo::asm_wasm_data() { | 
 |  5998   DCHECK(HasAsmWasmData()); | 
 |  5999   return FixedArray::cast(function_data()); | 
 |  6000 } | 
 |  6001  | 
 |  6002 void SharedFunctionInfo::set_asm_wasm_data(FixedArray* data) { | 
 |  6003   DCHECK(function_data()->IsUndefined(GetIsolate()) || HasAsmWasmData()); | 
 |  6004   set_function_data(data); | 
 |  6005 } | 
 |  6006  | 
 |  6007 void SharedFunctionInfo::ClearAsmWasmData() { | 
 |  6008   DCHECK(function_data()->IsUndefined(GetIsolate()) || HasAsmWasmData()); | 
 |  6009   set_function_data(GetHeap()->undefined_value()); | 
 |  6010 } | 
 |  6011  | 
|  5993 bool SharedFunctionInfo::HasBuiltinFunctionId() { |  6012 bool SharedFunctionInfo::HasBuiltinFunctionId() { | 
|  5994   return function_identifier()->IsSmi(); |  6013   return function_identifier()->IsSmi(); | 
|  5995 } |  6014 } | 
|  5996  |  6015  | 
|  5997 BuiltinFunctionId SharedFunctionInfo::builtin_function_id() { |  6016 BuiltinFunctionId SharedFunctionInfo::builtin_function_id() { | 
|  5998   DCHECK(HasBuiltinFunctionId()); |  6017   DCHECK(HasBuiltinFunctionId()); | 
|  5999   return static_cast<BuiltinFunctionId>( |  6018   return static_cast<BuiltinFunctionId>( | 
|  6000       Smi::cast(function_identifier())->value()); |  6019       Smi::cast(function_identifier())->value()); | 
|  6001 } |  6020 } | 
|  6002  |  6021  | 
| (...skipping 1910 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  7913 #undef WRITE_INT64_FIELD |  7932 #undef WRITE_INT64_FIELD | 
|  7914 #undef READ_BYTE_FIELD |  7933 #undef READ_BYTE_FIELD | 
|  7915 #undef WRITE_BYTE_FIELD |  7934 #undef WRITE_BYTE_FIELD | 
|  7916 #undef NOBARRIER_READ_BYTE_FIELD |  7935 #undef NOBARRIER_READ_BYTE_FIELD | 
|  7917 #undef NOBARRIER_WRITE_BYTE_FIELD |  7936 #undef NOBARRIER_WRITE_BYTE_FIELD | 
|  7918  |  7937  | 
|  7919 }  // namespace internal |  7938 }  // namespace internal | 
|  7920 }  // namespace v8 |  7939 }  // namespace v8 | 
|  7921  |  7940  | 
|  7922 #endif  // V8_OBJECTS_INL_H_ |  7941 #endif  // V8_OBJECTS_INL_H_ | 
| OLD | NEW |