| OLD | NEW |
| 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 745 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 756 } | 756 } |
| 757 } | 757 } |
| 758 | 758 |
| 759 | 759 |
| 760 // ------------------------------------------------------------------------ | 760 // ------------------------------------------------------------------------ |
| 761 // StubCompiler implementation. | 761 // StubCompiler implementation. |
| 762 | 762 |
| 763 | 763 |
| 764 // Support function for computing call IC miss stubs. | 764 // Support function for computing call IC miss stubs. |
| 765 Handle<Code> ComputeCallMiss(int argc) { | 765 Handle<Code> ComputeCallMiss(int argc) { |
| 766 CALL_HEAP_FUNCTION(StubCache::ComputeCallMiss(argc), Code); | 766 CALL_HEAP_FUNCTION( |
| 767 Isolate::Current()->stub_cache()->ComputeCallMiss(argc), |
| 768 Code); |
| 767 } | 769 } |
| 768 | 770 |
| 769 | 771 |
| 770 | 772 |
| 771 Object* LoadCallbackProperty(Arguments args) { | 773 Object* LoadCallbackProperty(Arguments args) { |
| 772 ASSERT(args[0]->IsJSObject()); | 774 ASSERT(args[0]->IsJSObject()); |
| 773 ASSERT(args[1]->IsJSObject()); | 775 ASSERT(args[1]->IsJSObject()); |
| 774 AccessorInfo* callback = AccessorInfo::cast(args[2]); | 776 AccessorInfo* callback = AccessorInfo::cast(args[2]); |
| 775 Address getter_address = v8::ToCData<Address>(callback->getter()); | 777 Address getter_address = v8::ToCData<Address>(callback->getter()); |
| 776 v8::AccessorGetter fun = FUNCTION_CAST<v8::AccessorGetter>(getter_address); | 778 v8::AccessorGetter fun = FUNCTION_CAST<v8::AccessorGetter>(getter_address); |
| (...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1261 expected_receiver_type_ = | 1263 expected_receiver_type_ = |
| 1262 FunctionTemplateInfo::cast(signature->receiver()); | 1264 FunctionTemplateInfo::cast(signature->receiver()); |
| 1263 } | 1265 } |
| 1264 } | 1266 } |
| 1265 | 1267 |
| 1266 is_simple_api_call_ = true; | 1268 is_simple_api_call_ = true; |
| 1267 } | 1269 } |
| 1268 | 1270 |
| 1269 | 1271 |
| 1270 } } // namespace v8::internal | 1272 } } // namespace v8::internal |
| OLD | NEW |