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

Side by Side Diff: src/ia32/code-stubs-ia32.cc

Issue 6717018: Introduce accessors on builtins instance (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 9 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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 4656 matching lines...) Expand 10 before | Expand all | Expand 10 after
4667 __ InvokeFunction(edi, actual, JUMP_FUNCTION); 4667 __ InvokeFunction(edi, actual, JUMP_FUNCTION);
4668 4668
4669 // Slow-case: Non-function called. 4669 // Slow-case: Non-function called.
4670 __ bind(&slow); 4670 __ bind(&slow);
4671 // CALL_NON_FUNCTION expects the non-function callee as receiver (instead 4671 // CALL_NON_FUNCTION expects the non-function callee as receiver (instead
4672 // of the original receiver from the call site). 4672 // of the original receiver from the call site).
4673 __ mov(Operand(esp, (argc_ + 1) * kPointerSize), edi); 4673 __ mov(Operand(esp, (argc_ + 1) * kPointerSize), edi);
4674 __ Set(eax, Immediate(argc_)); 4674 __ Set(eax, Immediate(argc_));
4675 __ Set(ebx, Immediate(0)); 4675 __ Set(ebx, Immediate(0));
4676 __ GetBuiltinEntry(edx, Builtins::CALL_NON_FUNCTION); 4676 __ GetBuiltinEntry(edx, Builtins::CALL_NON_FUNCTION);
4677 Handle<Code> adaptor(masm->isolate()->builtins()->builtin( 4677 Handle<Code> adaptor =
4678 Builtins::ArgumentsAdaptorTrampoline)); 4678 Builtins::builtin(Builtins::ArgumentsAdaptorTrampoline, masm->isolate());
4679 __ jmp(adaptor, RelocInfo::CODE_TARGET); 4679 __ jmp(adaptor, RelocInfo::CODE_TARGET);
4680 } 4680 }
4681 4681
4682 4682
4683 bool CEntryStub::NeedsImmovableCode() { 4683 bool CEntryStub::NeedsImmovableCode() {
4684 return false; 4684 return false;
4685 } 4685 }
4686 4686
4687 4687
4688 void CEntryStub::GenerateThrowTOS(MacroAssembler* masm) { 4688 void CEntryStub::GenerateThrowTOS(MacroAssembler* masm) {
(...skipping 1790 matching lines...) Expand 10 before | Expand all | Expand 10 after
6479 // Do a tail call to the rewritten stub. 6479 // Do a tail call to the rewritten stub.
6480 __ jmp(Operand(edi)); 6480 __ jmp(Operand(edi));
6481 } 6481 }
6482 6482
6483 6483
6484 #undef __ 6484 #undef __
6485 6485
6486 } } // namespace v8::internal 6486 } } // namespace v8::internal
6487 6487
6488 #endif // V8_TARGET_ARCH_IA32 6488 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« src/builtins.cc ('K') | « src/ia32/builtins-ia32.cc ('k') | src/ia32/deoptimizer-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698