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 7145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7156 // Slow-case: Non-function called. | 7156 // Slow-case: Non-function called. |
7157 __ bind(&slow); | 7157 __ bind(&slow); |
7158 __ Set(eax, Immediate(argc_)); | 7158 __ Set(eax, Immediate(argc_)); |
7159 __ Set(ebx, Immediate(0)); | 7159 __ Set(ebx, Immediate(0)); |
7160 __ GetBuiltinEntry(edx, Builtins::CALL_NON_FUNCTION); | 7160 __ GetBuiltinEntry(edx, Builtins::CALL_NON_FUNCTION); |
7161 Handle<Code> adaptor(Builtins::builtin(Builtins::ArgumentsAdaptorTrampoline)); | 7161 Handle<Code> adaptor(Builtins::builtin(Builtins::ArgumentsAdaptorTrampoline)); |
7162 __ jmp(adaptor, RelocInfo::CODE_TARGET); | 7162 __ jmp(adaptor, RelocInfo::CODE_TARGET); |
7163 } | 7163 } |
7164 | 7164 |
7165 | 7165 |
7166 | |
7167 void CEntryStub::GenerateThrowTOS(MacroAssembler* masm) { | 7166 void CEntryStub::GenerateThrowTOS(MacroAssembler* masm) { |
7168 // eax holds the exception. | 7167 // eax holds the exception. |
7169 | 7168 |
7170 // Adjust this code if not the case. | 7169 // Adjust this code if not the case. |
7171 ASSERT(StackHandlerConstants::kSize == 4 * kPointerSize); | 7170 ASSERT(StackHandlerConstants::kSize == 4 * kPointerSize); |
7172 | 7171 |
7173 // Drop the sp to the top of the handler. | 7172 // Drop the sp to the top of the handler. |
7174 ExternalReference handler_address(Top::k_handler_address); | 7173 ExternalReference handler_address(Top::k_handler_address); |
7175 __ mov(esp, Operand::StaticVariable(handler_address)); | 7174 __ mov(esp, Operand::StaticVariable(handler_address)); |
7176 | 7175 |
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7544 | 7543 |
7545 // Slow-case: Go through the JavaScript implementation. | 7544 // Slow-case: Go through the JavaScript implementation. |
7546 __ bind(&slow); | 7545 __ bind(&slow); |
7547 __ InvokeBuiltin(Builtins::INSTANCE_OF, JUMP_FUNCTION); | 7546 __ InvokeBuiltin(Builtins::INSTANCE_OF, JUMP_FUNCTION); |
7548 } | 7547 } |
7549 | 7548 |
7550 | 7549 |
7551 #undef __ | 7550 #undef __ |
7552 | 7551 |
7553 } } // namespace v8::internal | 7552 } } // namespace v8::internal |
OLD | NEW |