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 6220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6231 | 6231 |
6232 bool JSFunction::is_compiled() { | 6232 bool JSFunction::is_compiled() { |
6233 Builtins* builtins = GetIsolate()->builtins(); | 6233 Builtins* builtins = GetIsolate()->builtins(); |
6234 return code() != builtins->builtin(Builtins::kCompileLazy) && | 6234 return code() != builtins->builtin(Builtins::kCompileLazy) && |
6235 code() != builtins->builtin(Builtins::kCompileBaseline) && | 6235 code() != builtins->builtin(Builtins::kCompileBaseline) && |
6236 code() != builtins->builtin(Builtins::kCompileOptimized) && | 6236 code() != builtins->builtin(Builtins::kCompileOptimized) && |
6237 code() != builtins->builtin(Builtins::kCompileOptimizedConcurrent); | 6237 code() != builtins->builtin(Builtins::kCompileOptimizedConcurrent); |
6238 } | 6238 } |
6239 | 6239 |
6240 | 6240 |
6241 int JSFunction::NumberOfLiterals() { | |
6242 return literals()->length(); | |
6243 } | |
6244 | |
6245 | |
6246 ACCESSORS(JSProxy, target, JSReceiver, kTargetOffset) | 6241 ACCESSORS(JSProxy, target, JSReceiver, kTargetOffset) |
6247 ACCESSORS(JSProxy, handler, Object, kHandlerOffset) | 6242 ACCESSORS(JSProxy, handler, Object, kHandlerOffset) |
6248 ACCESSORS(JSProxy, hash, Object, kHashOffset) | 6243 ACCESSORS(JSProxy, hash, Object, kHashOffset) |
6249 | 6244 |
6250 bool JSProxy::IsRevoked() const { return !handler()->IsJSReceiver(); } | 6245 bool JSProxy::IsRevoked() const { return !handler()->IsJSReceiver(); } |
6251 | 6246 |
6252 ACCESSORS(JSCollection, table, Object, kTableOffset) | 6247 ACCESSORS(JSCollection, table, Object, kTableOffset) |
6253 | 6248 |
6254 | 6249 |
6255 #define ORDERED_HASH_TABLE_ITERATOR_ACCESSORS(name, type, offset) \ | 6250 #define ORDERED_HASH_TABLE_ITERATOR_ACCESSORS(name, type, offset) \ |
(...skipping 1586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7842 #undef WRITE_INT64_FIELD | 7837 #undef WRITE_INT64_FIELD |
7843 #undef READ_BYTE_FIELD | 7838 #undef READ_BYTE_FIELD |
7844 #undef WRITE_BYTE_FIELD | 7839 #undef WRITE_BYTE_FIELD |
7845 #undef NOBARRIER_READ_BYTE_FIELD | 7840 #undef NOBARRIER_READ_BYTE_FIELD |
7846 #undef NOBARRIER_WRITE_BYTE_FIELD | 7841 #undef NOBARRIER_WRITE_BYTE_FIELD |
7847 | 7842 |
7848 } // namespace internal | 7843 } // namespace internal |
7849 } // namespace v8 | 7844 } // namespace v8 |
7850 | 7845 |
7851 #endif // V8_OBJECTS_INL_H_ | 7846 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |