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

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

Issue 2443573002: [compiler] Prepare for partially shipping Ignition. (Closed)
Patch Set: Rebased. 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 (FLAG_ignition && it.frame()->type() == StackFrame::STUB) { 245 if (it.frame()->type() == StackFrame::STUB) {
246 // Advance over bytecode handler frame. 246 // We might need to advance over bytecode handler frame for Ignition.
247 // TODO(rmcilroy): Remove this once bytecode handlers don't need a frame.
248 it.Advance(); 247 it.Advance();
249 } 248 }
250 JavaScriptFrame* frame = JavaScriptFrame::cast(it.frame()); 249 JavaScriptFrame* frame = JavaScriptFrame::cast(it.frame());
251 // Find the function on the stack and both the active code for the 250 // Find the function on the stack and both the active code for the
252 // function and the original code. 251 // function and the original code.
253 JSFunction* function = frame->function(); 252 JSFunction* function = frame->function();
254 return function->shared(); 253 return function->shared();
255 } 254 }
256 255
257 256
(...skipping 2755 matching lines...) Expand 10 before | Expand all | Expand 10 after
3013 DCHECK_EQ(LookupIterator::INTERCEPTOR, it.state()); 3012 DCHECK_EQ(LookupIterator::INTERCEPTOR, it.state());
3014 it.Next(); 3013 it.Next();
3015 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, result, 3014 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, result,
3016 Object::GetProperty(&it)); 3015 Object::GetProperty(&it));
3017 } 3016 }
3018 3017
3019 return *result; 3018 return *result;
3020 } 3019 }
3021 } // namespace internal 3020 } // namespace internal
3022 } // namespace v8 3021 } // 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