| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 int loop_nesting) | 125 int loop_nesting) |
| 126 : closure_(closure), loop_nesting_(loop_nesting) { | 126 : closure_(closure), loop_nesting_(loop_nesting) { |
| 127 ASSERT(!closure.is_null()); | 127 ASSERT(!closure.is_null()); |
| 128 } | 128 } |
| 129 | 129 |
| 130 // Overridden functions from the base class. | 130 // Overridden functions from the base class. |
| 131 virtual Handle<SharedFunctionInfo> shared_info() const { | 131 virtual Handle<SharedFunctionInfo> shared_info() const { |
| 132 return Handle<SharedFunctionInfo>(closure_->shared()); | 132 return Handle<SharedFunctionInfo>(closure_->shared()); |
| 133 } | 133 } |
| 134 | 134 |
| 135 virtual Handle<JSFunction> closure() const { |
| 136 return closure_; |
| 137 } |
| 138 |
| 135 virtual int loop_nesting() const { return loop_nesting_; } | 139 virtual int loop_nesting() const { return loop_nesting_; } |
| 136 | 140 |
| 137 virtual bool has_global_object() const { | 141 virtual bool has_global_object() const { |
| 138 return closure_->context()->global() != NULL; | 142 return closure_->context()->global() != NULL; |
| 139 } | 143 } |
| 140 | 144 |
| 141 virtual GlobalObject* global_object() const { | 145 virtual GlobalObject* global_object() const { |
| 142 return closure_->context()->global(); | 146 return closure_->context()->global(); |
| 143 } | 147 } |
| 144 | 148 |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 FrameElement::ClearConstantList(); | 233 FrameElement::ClearConstantList(); |
| 230 Result::ClearConstantList(); | 234 Result::ClearConstantList(); |
| 231 } | 235 } |
| 232 } | 236 } |
| 233 }; | 237 }; |
| 234 | 238 |
| 235 | 239 |
| 236 } } // namespace v8::internal | 240 } } // namespace v8::internal |
| 237 | 241 |
| 238 #endif // V8_COMPILER_H_ | 242 #endif // V8_COMPILER_H_ |
| OLD | NEW |