| 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 804 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 815 secondary_[j].key = Heap::empty_string(); | 815 secondary_[j].key = Heap::empty_string(); |
| 816 secondary_[j].value = Builtins::builtin(Builtins::Illegal); | 816 secondary_[j].value = Builtins::builtin(Builtins::Illegal); |
| 817 } | 817 } |
| 818 } | 818 } |
| 819 | 819 |
| 820 | 820 |
| 821 // ------------------------------------------------------------------------ | 821 // ------------------------------------------------------------------------ |
| 822 // StubCompiler implementation. | 822 // StubCompiler implementation. |
| 823 | 823 |
| 824 | 824 |
| 825 // Support function for computing call IC miss stubs. |
| 826 Handle<Code> ComputeCallMiss(int argc, Code::Kind kind) { |
| 827 CALL_HEAP_FUNCTION(StubCache::ComputeCallMiss(argc, kind), Code); |
| 828 } |
| 829 |
| 830 |
| 831 |
| 825 Object* LoadCallbackProperty(Arguments args) { | 832 Object* LoadCallbackProperty(Arguments args) { |
| 826 ASSERT(args[0]->IsJSObject()); | 833 ASSERT(args[0]->IsJSObject()); |
| 827 ASSERT(args[1]->IsJSObject()); | 834 ASSERT(args[1]->IsJSObject()); |
| 828 AccessorInfo* callback = AccessorInfo::cast(args[2]); | 835 AccessorInfo* callback = AccessorInfo::cast(args[2]); |
| 829 Address getter_address = v8::ToCData<Address>(callback->getter()); | 836 Address getter_address = v8::ToCData<Address>(callback->getter()); |
| 830 v8::AccessorGetter fun = FUNCTION_CAST<v8::AccessorGetter>(getter_address); | 837 v8::AccessorGetter fun = FUNCTION_CAST<v8::AccessorGetter>(getter_address); |
| 831 ASSERT(fun != NULL); | 838 ASSERT(fun != NULL); |
| 832 CustomArguments custom_args(callback->data(), | 839 CustomArguments custom_args(callback->data(), |
| 833 JSObject::cast(args[0]), | 840 JSObject::cast(args[0]), |
| 834 JSObject::cast(args[1])); | 841 JSObject::cast(args[1])); |
| (...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1363 expected_receiver_type_ = | 1370 expected_receiver_type_ = |
| 1364 FunctionTemplateInfo::cast(signature->receiver()); | 1371 FunctionTemplateInfo::cast(signature->receiver()); |
| 1365 } | 1372 } |
| 1366 } | 1373 } |
| 1367 | 1374 |
| 1368 is_simple_api_call_ = true; | 1375 is_simple_api_call_ = true; |
| 1369 } | 1376 } |
| 1370 | 1377 |
| 1371 | 1378 |
| 1372 } } // namespace v8::internal | 1379 } } // namespace v8::internal |
| OLD | NEW |