Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(183)

Side by Side Diff: src/compiler.h

Issue 3557007: Add assert to make sure that function refers to compiled code in handles.cc (Closed)
Patch Set: Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/handles.cc » ('j') | src/handles.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | src/handles.cc » ('j') | src/handles.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698