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

Side by Side Diff: src/ia32/macro-assembler-ia32.h

Issue 7039036: Fix calls of strict mode function with an implicit receiver. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address comments. Created 9 years, 7 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
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/ia32/macro-assembler-ia32.cc » ('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 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 void PopSafepointRegisters() { popad(); } 146 void PopSafepointRegisters() { popad(); }
147 // Store the value in register/immediate src in the safepoint 147 // Store the value in register/immediate src in the safepoint
148 // register stack slot for register dst. 148 // register stack slot for register dst.
149 void StoreToSafepointRegisterSlot(Register dst, Register src); 149 void StoreToSafepointRegisterSlot(Register dst, Register src);
150 void StoreToSafepointRegisterSlot(Register dst, Immediate src); 150 void StoreToSafepointRegisterSlot(Register dst, Immediate src);
151 void LoadFromSafepointRegisterSlot(Register dst, Register src); 151 void LoadFromSafepointRegisterSlot(Register dst, Register src);
152 152
153 // --------------------------------------------------------------------------- 153 // ---------------------------------------------------------------------------
154 // JavaScript invokes 154 // JavaScript invokes
155 155
156 // Setup call kind marking in ecx. The method takes ecx as an
157 // explicit first parameter to make the code more readable at the
158 // call sites.
159 void SetCallKind(Register dst, CallKind kind);
160
156 // Invoke the JavaScript function code by either calling or jumping. 161 // Invoke the JavaScript function code by either calling or jumping.
157 void InvokeCode(const Operand& code, 162 void InvokeCode(const Operand& code,
158 const ParameterCount& expected, 163 const ParameterCount& expected,
159 const ParameterCount& actual, 164 const ParameterCount& actual,
160 InvokeFlag flag, 165 InvokeFlag flag,
161 const CallWrapper& call_wrapper = NullCallWrapper()); 166 const CallWrapper& call_wrapper = NullCallWrapper(),
167 CallKind call_kind = CALL_AS_METHOD);
162 168
163 void InvokeCode(Handle<Code> code, 169 void InvokeCode(Handle<Code> code,
164 const ParameterCount& expected, 170 const ParameterCount& expected,
165 const ParameterCount& actual, 171 const ParameterCount& actual,
166 RelocInfo::Mode rmode, 172 RelocInfo::Mode rmode,
167 InvokeFlag flag, 173 InvokeFlag flag,
168 const CallWrapper& call_wrapper = NullCallWrapper()); 174 const CallWrapper& call_wrapper = NullCallWrapper(),
175 CallKind call_kind = CALL_AS_METHOD);
169 176
170 // Invoke the JavaScript function in the given register. Changes the 177 // Invoke the JavaScript function in the given register. Changes the
171 // current context to the context in the function before invoking. 178 // current context to the context in the function before invoking.
172 void InvokeFunction(Register function, 179 void InvokeFunction(Register function,
173 const ParameterCount& actual, 180 const ParameterCount& actual,
174 InvokeFlag flag, 181 InvokeFlag flag,
175 const CallWrapper& call_wrapper = NullCallWrapper()); 182 const CallWrapper& call_wrapper = NullCallWrapper(),
183 CallKind call_kind = CALL_AS_METHOD);
176 184
177 void InvokeFunction(JSFunction* function, 185 void InvokeFunction(JSFunction* function,
178 const ParameterCount& actual, 186 const ParameterCount& actual,
179 InvokeFlag flag, 187 InvokeFlag flag,
180 const CallWrapper& call_wrapper = NullCallWrapper()); 188 const CallWrapper& call_wrapper = NullCallWrapper());
181 189
182 // Invoke specified builtin JavaScript function. Adds an entry to 190 // Invoke specified builtin JavaScript function. Adds an entry to
183 // the unresolved list if the name does not resolve. 191 // the unresolved list if the name does not resolve.
184 void InvokeBuiltin(Builtins::JavaScript id, 192 void InvokeBuiltin(Builtins::JavaScript id,
185 InvokeFlag flag, 193 InvokeFlag flag,
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
645 Handle<Object> code_object_; 653 Handle<Object> code_object_;
646 654
647 // Helper functions for generating invokes. 655 // Helper functions for generating invokes.
648 void InvokePrologue(const ParameterCount& expected, 656 void InvokePrologue(const ParameterCount& expected,
649 const ParameterCount& actual, 657 const ParameterCount& actual,
650 Handle<Code> code_constant, 658 Handle<Code> code_constant,
651 const Operand& code_operand, 659 const Operand& code_operand,
652 Label* done, 660 Label* done,
653 InvokeFlag flag, 661 InvokeFlag flag,
654 Label::Distance done_near = Label::kFar, 662 Label::Distance done_near = Label::kFar,
655 const CallWrapper& call_wrapper = NullCallWrapper()); 663 const CallWrapper& call_wrapper = NullCallWrapper(),
664 CallKind call_kind = CALL_AS_METHOD);
656 665
657 // Activation support. 666 // Activation support.
658 void EnterFrame(StackFrame::Type type); 667 void EnterFrame(StackFrame::Type type);
659 void LeaveFrame(StackFrame::Type type); 668 void LeaveFrame(StackFrame::Type type);
660 669
661 void EnterExitFramePrologue(); 670 void EnterExitFramePrologue();
662 void EnterExitFrameEpilogue(int argc, bool save_doubles); 671 void EnterExitFrameEpilogue(int argc, bool save_doubles);
663 672
664 void LeaveExitFrameEpilogue(); 673 void LeaveExitFrameEpilogue();
665 674
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
757 } \ 766 } \
758 masm-> 767 masm->
759 #else 768 #else
760 #define ACCESS_MASM(masm) masm-> 769 #define ACCESS_MASM(masm) masm->
761 #endif 770 #endif
762 771
763 772
764 } } // namespace v8::internal 773 } } // namespace v8::internal
765 774
766 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ 775 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/ia32/macro-assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698