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 10541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10552 | 10552 |
10553 // Dispatched behavior. | 10553 // Dispatched behavior. |
10554 DECLARE_PRINTER(ExecutableAccessorInfo) | 10554 DECLARE_PRINTER(ExecutableAccessorInfo) |
10555 DECLARE_VERIFIER(ExecutableAccessorInfo) | 10555 DECLARE_VERIFIER(ExecutableAccessorInfo) |
10556 | 10556 |
10557 static const int kGetterOffset = AccessorInfo::kSize; | 10557 static const int kGetterOffset = AccessorInfo::kSize; |
10558 static const int kSetterOffset = kGetterOffset + kPointerSize; | 10558 static const int kSetterOffset = kGetterOffset + kPointerSize; |
10559 static const int kDataOffset = kSetterOffset + kPointerSize; | 10559 static const int kDataOffset = kSetterOffset + kPointerSize; |
10560 static const int kSize = kDataOffset + kPointerSize; | 10560 static const int kSize = kDataOffset + kPointerSize; |
10561 | 10561 |
10562 inline void clear_setter(); | 10562 static inline void ClearSetter(Handle<ExecutableAccessorInfo> info); |
10563 | 10563 |
10564 private: | 10564 private: |
10565 DISALLOW_IMPLICIT_CONSTRUCTORS(ExecutableAccessorInfo); | 10565 DISALLOW_IMPLICIT_CONSTRUCTORS(ExecutableAccessorInfo); |
10566 }; | 10566 }; |
10567 | 10567 |
10568 | 10568 |
10569 // Support for JavaScript accessors: A pair of a getter and a setter. Each | 10569 // Support for JavaScript accessors: A pair of a getter and a setter. Each |
10570 // accessor can either be | 10570 // accessor can either be |
10571 // * a pointer to a JavaScript function or proxy: a real accessor | 10571 // * a pointer to a JavaScript function or proxy: a real accessor |
10572 // * undefined: considered an accessor by the spec, too, strangely enough | 10572 // * undefined: considered an accessor by the spec, too, strangely enough |
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11089 } else { | 11089 } else { |
11090 value &= ~(1 << bit_position); | 11090 value &= ~(1 << bit_position); |
11091 } | 11091 } |
11092 return value; | 11092 return value; |
11093 } | 11093 } |
11094 }; | 11094 }; |
11095 | 11095 |
11096 } } // namespace v8::internal | 11096 } } // namespace v8::internal |
11097 | 11097 |
11098 #endif // V8_OBJECTS_H_ | 11098 #endif // V8_OBJECTS_H_ |
OLD | NEW |