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 10706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10717 static const int kFlagOffset = kAccessCheckInfoOffset + kPointerSize; | 10717 static const int kFlagOffset = kAccessCheckInfoOffset + kPointerSize; |
10718 static const int kLengthOffset = kFlagOffset + kPointerSize; | 10718 static const int kLengthOffset = kFlagOffset + kPointerSize; |
10719 static const int kSize = kLengthOffset + kPointerSize; | 10719 static const int kSize = kLengthOffset + kPointerSize; |
10720 | 10720 |
10721 // Returns true if |object| is an instance of this function template. | 10721 // Returns true if |object| is an instance of this function template. |
10722 bool IsTemplateFor(Object* object); | 10722 bool IsTemplateFor(Object* object); |
10723 bool IsTemplateFor(Map* map); | 10723 bool IsTemplateFor(Map* map); |
10724 | 10724 |
10725 // Returns the holder JSObject if the function can legally be called with this | 10725 // Returns the holder JSObject if the function can legally be called with this |
10726 // receiver. Returns Heap::null_value() if the call is illegal. | 10726 // receiver. Returns Heap::null_value() if the call is illegal. |
10727 Handle<Object> GetCompatibleReceiver(Isolate* isolate, | 10727 Object* GetCompatibleReceiver(Isolate* isolate, Object* receiver); |
10728 Handle<Object> receiver, | |
10729 bool is_construct); | |
10730 | 10728 |
10731 private: | 10729 private: |
10732 // Bit position in the flag, from least significant bit position. | 10730 // Bit position in the flag, from least significant bit position. |
10733 static const int kHiddenPrototypeBit = 0; | 10731 static const int kHiddenPrototypeBit = 0; |
10734 static const int kUndetectableBit = 1; | 10732 static const int kUndetectableBit = 1; |
10735 static const int kNeedsAccessCheckBit = 2; | 10733 static const int kNeedsAccessCheckBit = 2; |
10736 static const int kReadOnlyPrototypeBit = 3; | 10734 static const int kReadOnlyPrototypeBit = 3; |
10737 static const int kRemovePrototypeBit = 4; | 10735 static const int kRemovePrototypeBit = 4; |
10738 static const int kDoNotCacheBit = 5; | 10736 static const int kDoNotCacheBit = 5; |
10739 static const int kInstantiatedBit = 6; | 10737 static const int kInstantiatedBit = 6; |
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11015 } else { | 11013 } else { |
11016 value &= ~(1 << bit_position); | 11014 value &= ~(1 << bit_position); |
11017 } | 11015 } |
11018 return value; | 11016 return value; |
11019 } | 11017 } |
11020 }; | 11018 }; |
11021 | 11019 |
11022 } } // namespace v8::internal | 11020 } } // namespace v8::internal |
11023 | 11021 |
11024 #endif // V8_OBJECTS_H_ | 11022 #endif // V8_OBJECTS_H_ |
OLD | NEW |