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

Side by Side Diff: src/ic.cc

Issue 256653004: Always include debugger support. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Makefile Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « src/ic.h ('k') | src/ic-inl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 ConstantPoolArray::cast(reinterpret_cast<Object*>(constant_pool)), 160 ConstantPoolArray::cast(reinterpret_cast<Object*>(constant_pool)),
161 isolate); 161 isolate);
162 } 162 }
163 pc_address_ = StackFrame::ResolveReturnAddressLocation(pc_address); 163 pc_address_ = StackFrame::ResolveReturnAddressLocation(pc_address);
164 target_ = handle(raw_target(), isolate); 164 target_ = handle(raw_target(), isolate);
165 state_ = target_->ic_state(); 165 state_ = target_->ic_state();
166 extra_ic_state_ = target_->extra_ic_state(); 166 extra_ic_state_ = target_->extra_ic_state();
167 } 167 }
168 168
169 169
170 #ifdef ENABLE_DEBUGGER_SUPPORT
171 SharedFunctionInfo* IC::GetSharedFunctionInfo() const { 170 SharedFunctionInfo* IC::GetSharedFunctionInfo() const {
172 // Compute the JavaScript frame for the frame pointer of this IC 171 // Compute the JavaScript frame for the frame pointer of this IC
173 // structure. We need this to be able to find the function 172 // structure. We need this to be able to find the function
174 // corresponding to the frame. 173 // corresponding to the frame.
175 StackFrameIterator it(isolate()); 174 StackFrameIterator it(isolate());
176 while (it.frame()->fp() != this->fp()) it.Advance(); 175 while (it.frame()->fp() != this->fp()) it.Advance();
177 JavaScriptFrame* frame = JavaScriptFrame::cast(it.frame()); 176 JavaScriptFrame* frame = JavaScriptFrame::cast(it.frame());
178 // Find the function on the stack and both the active code for the 177 // Find the function on the stack and both the active code for the
179 // function and the original code. 178 // function and the original code.
180 JSFunction* function = frame->function(); 179 JSFunction* function = frame->function();
(...skipping 10 matching lines...) Expand all
191 190
192 191
193 Code* IC::GetOriginalCode() const { 192 Code* IC::GetOriginalCode() const {
194 HandleScope scope(isolate()); 193 HandleScope scope(isolate());
195 Handle<SharedFunctionInfo> shared(GetSharedFunctionInfo(), isolate()); 194 Handle<SharedFunctionInfo> shared(GetSharedFunctionInfo(), isolate());
196 ASSERT(Debug::HasDebugInfo(shared)); 195 ASSERT(Debug::HasDebugInfo(shared));
197 Code* original_code = Debug::GetDebugInfo(shared)->original_code(); 196 Code* original_code = Debug::GetDebugInfo(shared)->original_code();
198 ASSERT(original_code->IsCode()); 197 ASSERT(original_code->IsCode());
199 return original_code; 198 return original_code;
200 } 199 }
201 #endif
202 200
203 201
204 static bool HasInterceptorGetter(JSObject* object) { 202 static bool HasInterceptorGetter(JSObject* object) {
205 return !object->GetNamedInterceptor()->getter()->IsUndefined(); 203 return !object->GetNamedInterceptor()->getter()->IsUndefined();
206 } 204 }
207 205
208 206
209 static bool HasInterceptorSetter(JSObject* object) { 207 static bool HasInterceptorSetter(JSObject* object) {
210 return !object->GetNamedInterceptor()->setter()->IsUndefined(); 208 return !object->GetNamedInterceptor()->setter()->IsUndefined();
211 } 209 }
(...skipping 2736 matching lines...) Expand 10 before | Expand all | Expand 10 after
2948 #undef ADDR 2946 #undef ADDR
2949 }; 2947 };
2950 2948
2951 2949
2952 Address IC::AddressFromUtilityId(IC::UtilityId id) { 2950 Address IC::AddressFromUtilityId(IC::UtilityId id) {
2953 return IC_utilities[id]; 2951 return IC_utilities[id];
2954 } 2952 }
2955 2953
2956 2954
2957 } } // namespace v8::internal 2955 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ic.h ('k') | src/ic-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698