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

Side by Side Diff: src/ic/ic.cc

Issue 2448443002: Revert of [compiler] Prepare for partially shipping Ignition. (Closed)
Patch Set: Created 4 years, 1 month 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 | « src/heap/mark-compact.cc ('k') | src/isolate.cc » ('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 // 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 #include "src/ic/ic.h" 5 #include "src/ic/ic.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/api-arguments-inl.h" 8 #include "src/api-arguments-inl.h"
9 #include "src/api.h" 9 #include "src/api.h"
10 #include "src/arguments.h" 10 #include "src/arguments.h"
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 return UNINITIALIZED; 235 return UNINITIALIZED;
236 } 236 }
237 } 237 }
238 238
239 SharedFunctionInfo* IC::GetSharedFunctionInfo() const { 239 SharedFunctionInfo* IC::GetSharedFunctionInfo() const {
240 // Compute the JavaScript frame for the frame pointer of this IC 240 // Compute the JavaScript frame for the frame pointer of this IC
241 // structure. We need this to be able to find the function 241 // structure. We need this to be able to find the function
242 // corresponding to the frame. 242 // corresponding to the frame.
243 StackFrameIterator it(isolate()); 243 StackFrameIterator it(isolate());
244 while (it.frame()->fp() != this->fp()) it.Advance(); 244 while (it.frame()->fp() != this->fp()) it.Advance();
245 if (it.frame()->type() == StackFrame::STUB) { 245 if (FLAG_ignition && it.frame()->type() == StackFrame::STUB) {
246 // We might need to advance over bytecode handler frame for Ignition. 246 // Advance over bytecode handler frame.
247 // TODO(rmcilroy): Remove this once bytecode handlers don't need a frame.
247 it.Advance(); 248 it.Advance();
248 } 249 }
249 JavaScriptFrame* frame = JavaScriptFrame::cast(it.frame()); 250 JavaScriptFrame* frame = JavaScriptFrame::cast(it.frame());
250 // Find the function on the stack and both the active code for the 251 // Find the function on the stack and both the active code for the
251 // function and the original code. 252 // function and the original code.
252 JSFunction* function = frame->function(); 253 JSFunction* function = frame->function();
253 return function->shared(); 254 return function->shared();
254 } 255 }
255 256
256 257
(...skipping 2707 matching lines...) Expand 10 before | Expand all | Expand 10 after
2964 DCHECK_EQ(LookupIterator::INTERCEPTOR, it.state()); 2965 DCHECK_EQ(LookupIterator::INTERCEPTOR, it.state());
2965 it.Next(); 2966 it.Next();
2966 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, result, 2967 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, result,
2967 Object::GetProperty(&it)); 2968 Object::GetProperty(&it));
2968 } 2969 }
2969 2970
2970 return *result; 2971 return *result;
2971 } 2972 }
2972 } // namespace internal 2973 } // namespace internal
2973 } // namespace v8 2974 } // namespace v8
OLDNEW
« no previous file with comments | « src/heap/mark-compact.cc ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698