OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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/assert-scope.h" | 10 #include "src/assert-scope.h" |
(...skipping 7496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7507 static const int kLengthDescriptorIndex = 0; | 7507 static const int kLengthDescriptorIndex = 0; |
7508 static const int kNameDescriptorIndex = 1; | 7508 static const int kNameDescriptorIndex = 1; |
7509 | 7509 |
7510 // [context]: The context for this function. | 7510 // [context]: The context for this function. |
7511 inline Context* context(); | 7511 inline Context* context(); |
7512 inline void set_context(Object* context); | 7512 inline void set_context(Object* context); |
7513 inline JSObject* global_proxy(); | 7513 inline JSObject* global_proxy(); |
7514 inline Context* native_context(); | 7514 inline Context* native_context(); |
7515 | 7515 |
7516 static Handle<Object> GetName(Isolate* isolate, Handle<JSFunction> function); | 7516 static Handle<Object> GetName(Isolate* isolate, Handle<JSFunction> function); |
7517 static MUST_USE_RESULT MaybeHandle<Smi> GetLength( | 7517 static MaybeHandle<Smi> GetLength(Isolate* isolate, |
7518 Isolate* isolate, Handle<JSFunction> function); | 7518 Handle<JSFunction> function); |
7519 static Handle<Context> GetFunctionRealm(Handle<JSFunction> function); | 7519 static Handle<Context> GetFunctionRealm(Handle<JSFunction> function); |
7520 static Handle<Object> GetPrototype(Isolate* isolate, | |
7521 Handle<JSFunction> function); | |
7522 | 7520 |
7523 // [code]: The generated code object for this function. Executed | 7521 // [code]: The generated code object for this function. Executed |
7524 // when the function is invoked, e.g. foo() or new foo(). See | 7522 // when the function is invoked, e.g. foo() or new foo(). See |
7525 // [[Call]] and [[Construct]] description in ECMA-262, section | 7523 // [[Call]] and [[Construct]] description in ECMA-262, section |
7526 // 8.6.2, page 27. | 7524 // 8.6.2, page 27. |
7527 inline Code* code(); | 7525 inline Code* code(); |
7528 inline void set_code(Code* code); | 7526 inline void set_code(Code* code); |
7529 inline void set_code_no_write_barrier(Code* code); | 7527 inline void set_code_no_write_barrier(Code* code); |
7530 inline void ReplaceCode(Code* code); | 7528 inline void ReplaceCode(Code* code); |
7531 | 7529 |
(...skipping 3297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10829 } | 10827 } |
10830 return value; | 10828 return value; |
10831 } | 10829 } |
10832 }; | 10830 }; |
10833 | 10831 |
10834 | 10832 |
10835 } // NOLINT, false-positive due to second-order macros. | 10833 } // NOLINT, false-positive due to second-order macros. |
10836 } // NOLINT, false-positive due to second-order macros. | 10834 } // NOLINT, false-positive due to second-order macros. |
10837 | 10835 |
10838 #endif // V8_OBJECTS_H_ | 10836 #endif // V8_OBJECTS_H_ |
OLD | NEW |