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 6180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6191 void SharedFunctionInfo::set_scope_info(ScopeInfo* value, | 6191 void SharedFunctionInfo::set_scope_info(ScopeInfo* value, |
6192 WriteBarrierMode mode) { | 6192 WriteBarrierMode mode) { |
6193 WRITE_FIELD(this, kScopeInfoOffset, reinterpret_cast<Object*>(value)); | 6193 WRITE_FIELD(this, kScopeInfoOffset, reinterpret_cast<Object*>(value)); |
6194 CONDITIONAL_WRITE_BARRIER(GetHeap(), | 6194 CONDITIONAL_WRITE_BARRIER(GetHeap(), |
6195 this, | 6195 this, |
6196 kScopeInfoOffset, | 6196 kScopeInfoOffset, |
6197 reinterpret_cast<Object*>(value), | 6197 reinterpret_cast<Object*>(value), |
6198 mode); | 6198 mode); |
6199 } | 6199 } |
6200 | 6200 |
| 6201 ACCESSORS(SharedFunctionInfo, outer_scope_info, HeapObject, |
| 6202 kOuterScopeInfoOffset) |
| 6203 |
6201 bool SharedFunctionInfo::is_compiled() const { | 6204 bool SharedFunctionInfo::is_compiled() const { |
6202 Builtins* builtins = GetIsolate()->builtins(); | 6205 Builtins* builtins = GetIsolate()->builtins(); |
6203 DCHECK(code() != builtins->builtin(Builtins::kCompileOptimizedConcurrent)); | 6206 DCHECK(code() != builtins->builtin(Builtins::kCompileOptimizedConcurrent)); |
6204 DCHECK(code() != builtins->builtin(Builtins::kCompileOptimized)); | 6207 DCHECK(code() != builtins->builtin(Builtins::kCompileOptimized)); |
6205 DCHECK(code() != builtins->builtin(Builtins::kCompileBaseline)); | 6208 DCHECK(code() != builtins->builtin(Builtins::kCompileBaseline)); |
6206 return code() != builtins->builtin(Builtins::kCompileLazy); | 6209 return code() != builtins->builtin(Builtins::kCompileLazy); |
6207 } | 6210 } |
6208 | 6211 |
6209 | 6212 |
6210 bool SharedFunctionInfo::has_simple_parameters() { | 6213 bool SharedFunctionInfo::has_simple_parameters() { |
(...skipping 2079 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8290 #undef WRITE_INT64_FIELD | 8293 #undef WRITE_INT64_FIELD |
8291 #undef READ_BYTE_FIELD | 8294 #undef READ_BYTE_FIELD |
8292 #undef WRITE_BYTE_FIELD | 8295 #undef WRITE_BYTE_FIELD |
8293 #undef NOBARRIER_READ_BYTE_FIELD | 8296 #undef NOBARRIER_READ_BYTE_FIELD |
8294 #undef NOBARRIER_WRITE_BYTE_FIELD | 8297 #undef NOBARRIER_WRITE_BYTE_FIELD |
8295 | 8298 |
8296 } // namespace internal | 8299 } // namespace internal |
8297 } // namespace v8 | 8300 } // namespace v8 |
8298 | 8301 |
8299 #endif // V8_OBJECTS_INL_H_ | 8302 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |