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

Side by Side Diff: src/ia32/builtins-ia32.cc

Issue 113634: Propagate information on whether a non function was called as constructor or not (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 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/execution.cc ('k') | src/runtime.h » ('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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 __ lea(esp, Operand(esp, ebx, times_2, 1 * kPointerSize)); // 1 ~ receiver 304 __ lea(esp, Operand(esp, ebx, times_2, 1 * kPointerSize)); // 1 ~ receiver
305 __ push(ecx); 305 __ push(ecx);
306 __ ret(0); 306 __ ret(0);
307 307
308 // edi: called object 308 // edi: called object
309 // eax: number of arguments 309 // eax: number of arguments
310 __ bind(&non_function_call); 310 __ bind(&non_function_call);
311 311
312 // Set expected number of arguments to zero (not changing eax). 312 // Set expected number of arguments to zero (not changing eax).
313 __ Set(ebx, Immediate(0)); 313 __ Set(ebx, Immediate(0));
314 __ GetBuiltinEntry(edx, Builtins::CALL_NON_FUNCTION); 314 __ GetBuiltinEntry(edx, Builtins::CALL_NON_FUNCTION_AS_CONSTRUCTOR);
315 __ jmp(Handle<Code>(builtin(ArgumentsAdaptorTrampoline)), 315 __ jmp(Handle<Code>(builtin(ArgumentsAdaptorTrampoline)),
316 RelocInfo::CODE_TARGET); 316 RelocInfo::CODE_TARGET);
317 } 317 }
318 318
319 319
320 static void Generate_JSEntryTrampolineHelper(MacroAssembler* masm, 320 static void Generate_JSEntryTrampolineHelper(MacroAssembler* masm,
321 bool is_construct) { 321 bool is_construct) {
322 // Clear the context before we push it when entering the JS frame. 322 // Clear the context before we push it when entering the JS frame.
323 __ xor_(esi, Operand(esi)); // clear esi 323 __ xor_(esi, Operand(esi)); // clear esi
324 324
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
761 // Dont adapt arguments. 761 // Dont adapt arguments.
762 // ------------------------------------------- 762 // -------------------------------------------
763 __ bind(&dont_adapt_arguments); 763 __ bind(&dont_adapt_arguments);
764 __ jmp(Operand(edx)); 764 __ jmp(Operand(edx));
765 } 765 }
766 766
767 767
768 #undef __ 768 #undef __
769 769
770 } } // namespace v8::internal 770 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/execution.cc ('k') | src/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698