| 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 #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/allocation.h" | 10 #include "src/allocation.h" |
| (...skipping 7522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7533 // Dispatched behavior. | 7533 // Dispatched behavior. |
| 7534 DECLARE_PRINTER(JSFunction) | 7534 DECLARE_PRINTER(JSFunction) |
| 7535 DECLARE_VERIFIER(JSFunction) | 7535 DECLARE_VERIFIER(JSFunction) |
| 7536 | 7536 |
| 7537 // Returns the number of allocated literals. | 7537 // Returns the number of allocated literals. |
| 7538 inline int NumberOfLiterals(); | 7538 inline int NumberOfLiterals(); |
| 7539 | 7539 |
| 7540 // Used for flags such as --hydrogen-filter. | 7540 // Used for flags such as --hydrogen-filter. |
| 7541 bool PassesFilter(const char* raw_filter); | 7541 bool PassesFilter(const char* raw_filter); |
| 7542 | 7542 |
| 7543 // The function's name if it is configured, otherwise shared function info |
| 7544 // debug name. |
| 7545 String* DebugName(); |
| 7546 |
| 7543 // Layout descriptors. The last property (from kNonWeakFieldsEndOffset to | 7547 // Layout descriptors. The last property (from kNonWeakFieldsEndOffset to |
| 7544 // kSize) is weak and has special handling during garbage collection. | 7548 // kSize) is weak and has special handling during garbage collection. |
| 7545 static const int kCodeEntryOffset = JSObject::kHeaderSize; | 7549 static const int kCodeEntryOffset = JSObject::kHeaderSize; |
| 7546 static const int kPrototypeOrInitialMapOffset = | 7550 static const int kPrototypeOrInitialMapOffset = |
| 7547 kCodeEntryOffset + kPointerSize; | 7551 kCodeEntryOffset + kPointerSize; |
| 7548 static const int kSharedFunctionInfoOffset = | 7552 static const int kSharedFunctionInfoOffset = |
| 7549 kPrototypeOrInitialMapOffset + kPointerSize; | 7553 kPrototypeOrInitialMapOffset + kPointerSize; |
| 7550 static const int kContextOffset = kSharedFunctionInfoOffset + kPointerSize; | 7554 static const int kContextOffset = kSharedFunctionInfoOffset + kPointerSize; |
| 7551 static const int kLiteralsOffset = kContextOffset + kPointerSize; | 7555 static const int kLiteralsOffset = kContextOffset + kPointerSize; |
| 7552 static const int kNonWeakFieldsEndOffset = kLiteralsOffset + kPointerSize; | 7556 static const int kNonWeakFieldsEndOffset = kLiteralsOffset + kPointerSize; |
| (...skipping 3377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10930 } else { | 10934 } else { |
| 10931 value &= ~(1 << bit_position); | 10935 value &= ~(1 << bit_position); |
| 10932 } | 10936 } |
| 10933 return value; | 10937 return value; |
| 10934 } | 10938 } |
| 10935 }; | 10939 }; |
| 10936 | 10940 |
| 10937 } } // namespace v8::internal | 10941 } } // namespace v8::internal |
| 10938 | 10942 |
| 10939 #endif // V8_OBJECTS_H_ | 10943 #endif // V8_OBJECTS_H_ |
| OLD | NEW |