OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 6547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6558 // JSFunction describes JavaScript functions. | 6558 // JSFunction describes JavaScript functions. |
6559 class JSFunction: public JSObject { | 6559 class JSFunction: public JSObject { |
6560 public: | 6560 public: |
6561 // [prototype_or_initial_map]: | 6561 // [prototype_or_initial_map]: |
6562 DECL_ACCESSORS(prototype_or_initial_map, Object) | 6562 DECL_ACCESSORS(prototype_or_initial_map, Object) |
6563 | 6563 |
6564 // [shared]: The information about the function that | 6564 // [shared]: The information about the function that |
6565 // can be shared by instances. | 6565 // can be shared by instances. |
6566 DECL_ACCESSORS(shared, SharedFunctionInfo) | 6566 DECL_ACCESSORS(shared, SharedFunctionInfo) |
6567 | 6567 |
6568 inline SharedFunctionInfo* unchecked_shared(); | |
6569 | |
6570 // [context]: The context for this function. | 6568 // [context]: The context for this function. |
6571 inline Context* context(); | 6569 inline Context* context(); |
6572 inline Object* unchecked_context(); | 6570 inline Object* unchecked_context(); |
6573 inline void set_context(Object* context); | 6571 inline void set_context(Object* context); |
6574 | 6572 |
6575 // [code]: The generated code object for this function. Executed | 6573 // [code]: The generated code object for this function. Executed |
6576 // when the function is invoked, e.g. foo() or new foo(). See | 6574 // when the function is invoked, e.g. foo() or new foo(). See |
6577 // [[Call]] and [[Construct]] description in ECMA-262, section | 6575 // [[Call]] and [[Construct]] description in ECMA-262, section |
6578 // 8.6.2, page 27. | 6576 // 8.6.2, page 27. |
6579 inline Code* code(); | 6577 inline Code* code(); |
(...skipping 3083 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9663 } else { | 9661 } else { |
9664 value &= ~(1 << bit_position); | 9662 value &= ~(1 << bit_position); |
9665 } | 9663 } |
9666 return value; | 9664 return value; |
9667 } | 9665 } |
9668 }; | 9666 }; |
9669 | 9667 |
9670 } } // namespace v8::internal | 9668 } } // namespace v8::internal |
9671 | 9669 |
9672 #endif // V8_OBJECTS_H_ | 9670 #endif // V8_OBJECTS_H_ |
OLD | NEW |