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

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

Issue 171104: Remove one of the GCs performed by the --gc-greedy flag. The GC performed by... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 4 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/builtins-ia32.cc ('k') | src/x64/builtins-x64.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 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 7653 matching lines...) Expand 10 before | Expand all | Expand 10 after
7664 // eax: result parameter for PerformGC, if any (setup below) 7664 // eax: result parameter for PerformGC, if any (setup below)
7665 // ebx: pointer to builtin function (C callee-saved) 7665 // ebx: pointer to builtin function (C callee-saved)
7666 // ebp: frame pointer (restored after C call) 7666 // ebp: frame pointer (restored after C call)
7667 // esp: stack pointer (restored after C call) 7667 // esp: stack pointer (restored after C call)
7668 // edi: number of arguments including receiver (C callee-saved) 7668 // edi: number of arguments including receiver (C callee-saved)
7669 // esi: argv pointer (C callee-saved) 7669 // esi: argv pointer (C callee-saved)
7670 7670
7671 Label throw_out_of_memory_exception; 7671 Label throw_out_of_memory_exception;
7672 Label throw_normal_exception; 7672 Label throw_normal_exception;
7673 7673
7674 // Call into the runtime system. Collect garbage before the call if 7674 // Call into the runtime system.
7675 // running with --gc-greedy set.
7676 if (FLAG_gc_greedy) {
7677 Failure* failure = Failure::RetryAfterGC(0);
7678 __ mov(eax, Immediate(reinterpret_cast<int32_t>(failure)));
7679 }
7680 GenerateCore(masm, &throw_normal_exception, 7675 GenerateCore(masm, &throw_normal_exception,
7681 &throw_out_of_memory_exception, 7676 &throw_out_of_memory_exception,
7682 frame_type, 7677 frame_type,
7683 FLAG_gc_greedy, 7678 false,
7684 false); 7679 false);
7685 7680
7686 // Do space-specific GC and retry runtime call. 7681 // Do space-specific GC and retry runtime call.
7687 GenerateCore(masm, 7682 GenerateCore(masm,
7688 &throw_normal_exception, 7683 &throw_normal_exception,
7689 &throw_out_of_memory_exception, 7684 &throw_out_of_memory_exception,
7690 frame_type, 7685 frame_type,
7691 true, 7686 true,
7692 false); 7687 false);
7693 7688
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
7868 7863
7869 int CompareStub::MinorKey() { 7864 int CompareStub::MinorKey() {
7870 // Encode the two parameters in a unique 16 bit value. 7865 // Encode the two parameters in a unique 16 bit value.
7871 ASSERT(static_cast<unsigned>(cc_) < (1 << 15)); 7866 ASSERT(static_cast<unsigned>(cc_) < (1 << 15));
7872 return (static_cast<unsigned>(cc_) << 1) | (strict_ ? 1 : 0); 7867 return (static_cast<unsigned>(cc_) << 1) | (strict_ ? 1 : 0);
7873 } 7868 }
7874 7869
7875 #undef __ 7870 #undef __
7876 7871
7877 } } // namespace v8::internal 7872 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/builtins-ia32.cc ('k') | src/x64/builtins-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698