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

Side by Side Diff: src/stub-cache.cc

Issue 335027: Reverted 3130-3131 since they don't work on mac. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 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 | Annotate | Revision Log
« no previous file with comments | « src/runtime.cc ('k') | src/top.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 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 717 matching lines...) Expand 10 before | Expand all | Expand 10 after
728 728
729 729
730 // Support function for computing call IC miss stubs. 730 // Support function for computing call IC miss stubs.
731 Handle<Code> ComputeCallMiss(int argc) { 731 Handle<Code> ComputeCallMiss(int argc) {
732 CALL_HEAP_FUNCTION(StubCache::ComputeCallMiss(argc), Code); 732 CALL_HEAP_FUNCTION(StubCache::ComputeCallMiss(argc), Code);
733 } 733 }
734 734
735 735
736 736
737 Object* LoadCallbackProperty(Arguments args) { 737 Object* LoadCallbackProperty(Arguments args) {
738 ASSERT(args[0]->IsJSObject());
739 ASSERT(args[1]->IsJSObject());
740 AccessorInfo* callback = AccessorInfo::cast(args[2]); 738 AccessorInfo* callback = AccessorInfo::cast(args[2]);
741 Address getter_address = v8::ToCData<Address>(callback->getter()); 739 Address getter_address = v8::ToCData<Address>(callback->getter());
742 v8::AccessorGetter fun = FUNCTION_CAST<v8::AccessorGetter>(getter_address); 740 v8::AccessorGetter fun = FUNCTION_CAST<v8::AccessorGetter>(getter_address);
743 ASSERT(fun != NULL); 741 ASSERT(fun != NULL);
744 CustomArguments custom_args(callback->data(), 742 v8::AccessorInfo info(args.arguments());
745 JSObject::cast(args[0]),
746 JSObject::cast(args[1]));
747 v8::AccessorInfo info(custom_args.end());
748 HandleScope scope; 743 HandleScope scope;
749 v8::Handle<v8::Value> result; 744 v8::Handle<v8::Value> result;
750 { 745 {
751 // Leaving JavaScript. 746 // Leaving JavaScript.
752 VMState state(EXTERNAL); 747 VMState state(EXTERNAL);
753 result = fun(v8::Utils::ToLocal(args.at<String>(4)), info); 748 result = fun(v8::Utils::ToLocal(args.at<String>(4)), info);
754 } 749 }
755 RETURN_IF_SCHEDULED_EXCEPTION(); 750 RETURN_IF_SCHEDULED_EXCEPTION();
756 if (result.IsEmpty()) return Heap::undefined_value(); 751 if (result.IsEmpty()) return Heap::undefined_value();
757 return *v8::Utils::OpenHandle(*result); 752 return *v8::Utils::OpenHandle(*result);
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
1093 if (!result->IsFailure()) { 1088 if (!result->IsFailure()) {
1094 Code* code = Code::cast(result); 1089 Code* code = Code::cast(result);
1095 USE(code); 1090 USE(code);
1096 LOG(CodeCreateEvent(Logger::STUB_TAG, code, "ConstructStub")); 1091 LOG(CodeCreateEvent(Logger::STUB_TAG, code, "ConstructStub"));
1097 } 1092 }
1098 return result; 1093 return result;
1099 } 1094 }
1100 1095
1101 1096
1102 } } // namespace v8::internal 1097 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/runtime.cc ('k') | src/top.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698