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

Side by Side Diff: src/ia32/stub-cache-ia32.cc

Issue 7607031: Update gc branch to bleeding_edge revision 8862. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/gc
Patch Set: Fix bug in weak-map merge Created 9 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/lithium-codegen-ia32.cc ('k') | src/isolate.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 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 3998 matching lines...) Expand 10 before | Expand all | Expand 10 after
4009 if (CpuFeatures::IsSupported(SSE2)) { 4009 if (CpuFeatures::IsSupported(SSE2)) {
4010 CpuFeatures::Scope use_sse2(SSE2); 4010 CpuFeatures::Scope use_sse2(SSE2);
4011 __ movdbl(xmm0, Operand::StaticVariable(canonical_nan_reference)); 4011 __ movdbl(xmm0, Operand::StaticVariable(canonical_nan_reference));
4012 } else { 4012 } else {
4013 __ fld_d(Operand::StaticVariable(canonical_nan_reference)); 4013 __ fld_d(Operand::StaticVariable(canonical_nan_reference));
4014 } 4014 }
4015 __ jmp(&have_double_value, Label::kNear); 4015 __ jmp(&have_double_value, Label::kNear);
4016 4016
4017 __ bind(&smi_value); 4017 __ bind(&smi_value);
4018 // Value is a smi. convert to a double and store. 4018 // Value is a smi. convert to a double and store.
4019 __ SmiUntag(eax); 4019 // Preserve original value.
4020 __ push(eax); 4020 __ mov(edx, eax);
4021 __ SmiUntag(edx);
4022 __ push(edx);
4021 __ fild_s(Operand(esp, 0)); 4023 __ fild_s(Operand(esp, 0));
4022 __ pop(eax); 4024 __ pop(edx);
4023 __ fstp_d(FieldOperand(edi, ecx, times_4, FixedDoubleArray::kHeaderSize)); 4025 __ fstp_d(FieldOperand(edi, ecx, times_4, FixedDoubleArray::kHeaderSize));
4024 __ ret(0); 4026 __ ret(0);
4025 4027
4026 // Handle store cache miss, replacing the ic with the generic stub. 4028 // Handle store cache miss, replacing the ic with the generic stub.
4027 __ bind(&miss_force_generic); 4029 __ bind(&miss_force_generic);
4028 Handle<Code> ic_force_generic = 4030 Handle<Code> ic_force_generic =
4029 masm->isolate()->builtins()->KeyedStoreIC_MissForceGeneric(); 4031 masm->isolate()->builtins()->KeyedStoreIC_MissForceGeneric();
4030 __ jmp(ic_force_generic, RelocInfo::CODE_TARGET); 4032 __ jmp(ic_force_generic, RelocInfo::CODE_TARGET);
4031 } 4033 }
4032 4034
4033 4035
4034 #undef __ 4036 #undef __
4035 4037
4036 } } // namespace v8::internal 4038 } } // namespace v8::internal
4037 4039
4038 #endif // V8_TARGET_ARCH_IA32 4040 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/isolate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698