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

Side by Side Diff: src/ic.cc

Issue 23606012: remove Isolate::Current from most files starting with 'd' and 'e' (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 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
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 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 ASSERT(!lookup->IsFound()); 493 ASSERT(!lookup->IsFound());
494 return; 494 return;
495 } 495 }
496 496
497 object = proto; 497 object = proto;
498 } 498 }
499 } 499 }
500 500
501 501
502 Handle<Object> CallICBase::TryCallAsFunction(Handle<Object> object) { 502 Handle<Object> CallICBase::TryCallAsFunction(Handle<Object> object) {
503 Handle<Object> delegate = Execution::GetFunctionDelegate(object); 503 Handle<Object> delegate = Execution::GetFunctionDelegate(isolate(), object);
504 504
505 if (delegate->IsJSFunction() && !object->IsJSFunctionProxy()) { 505 if (delegate->IsJSFunction() && !object->IsJSFunctionProxy()) {
506 // Patch the receiver and use the delegate as the function to 506 // Patch the receiver and use the delegate as the function to
507 // invoke. This is used for invoking objects as if they were functions. 507 // invoke. This is used for invoking objects as if they were functions.
508 const int argc = target()->arguments_count(); 508 const int argc = target()->arguments_count();
509 StackFrameLocator locator(isolate()); 509 StackFrameLocator locator(isolate());
510 JavaScriptFrame* frame = locator.FindJavaScriptFrame(0); 510 JavaScriptFrame* frame = locator.FindJavaScriptFrame(0);
511 int index = frame->ComputeExpressionsCount() - (argc + 1); 511 int index = frame->ComputeExpressionsCount() - (argc + 1);
512 frame->SetExpression(index, *object); 512 frame->SetExpression(index, *object);
513 } 513 }
(...skipping 2580 matching lines...) Expand 10 before | Expand all | Expand 10 after
3094 #undef ADDR 3094 #undef ADDR
3095 }; 3095 };
3096 3096
3097 3097
3098 Address IC::AddressFromUtilityId(IC::UtilityId id) { 3098 Address IC::AddressFromUtilityId(IC::UtilityId id) {
3099 return IC_utilities[id]; 3099 return IC_utilities[id];
3100 } 3100 }
3101 3101
3102 3102
3103 } } // namespace v8::internal 3103 } } // namespace v8::internal
OLDNEW
« src/execution.cc ('K') | « src/factory.cc ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698