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

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

Issue 26266005: Only crosscompile binary op stubs if we compile a snapshot. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: add assertion Created 7 years, 2 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/assembler.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 2900 matching lines...) Expand 10 before | Expand all | Expand 10 after
2911 2911
2912 2912
2913 void CodeStub::GenerateStubsAheadOfTime(Isolate* isolate) { 2913 void CodeStub::GenerateStubsAheadOfTime(Isolate* isolate) {
2914 CEntryStub::GenerateAheadOfTime(isolate); 2914 CEntryStub::GenerateAheadOfTime(isolate);
2915 StoreBufferOverflowStub::GenerateFixedRegStubsAheadOfTime(isolate); 2915 StoreBufferOverflowStub::GenerateFixedRegStubsAheadOfTime(isolate);
2916 StubFailureTrampolineStub::GenerateAheadOfTime(isolate); 2916 StubFailureTrampolineStub::GenerateAheadOfTime(isolate);
2917 // It is important that the store buffer overflow stubs are generated first. 2917 // It is important that the store buffer overflow stubs are generated first.
2918 RecordWriteStub::GenerateFixedRegStubsAheadOfTime(isolate); 2918 RecordWriteStub::GenerateFixedRegStubsAheadOfTime(isolate);
2919 ArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); 2919 ArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate);
2920 CreateAllocationSiteStub::GenerateAheadOfTime(isolate); 2920 CreateAllocationSiteStub::GenerateAheadOfTime(isolate);
2921 PlatformFeatureScope sse2(SSE2); 2921 if (Serializer::enabled()) {
2922 BinaryOpStub::GenerateAheadOfTime(isolate); 2922 PlatformFeatureScope sse2(SSE2);
2923 BinaryOpStub::GenerateAheadOfTime(isolate);
2924 } else {
2925 BinaryOpStub::GenerateAheadOfTime(isolate);
2926 }
2923 } 2927 }
2924 2928
2925 2929
2926 void CodeStub::GenerateFPStubs(Isolate* isolate) { 2930 void CodeStub::GenerateFPStubs(Isolate* isolate) {
2927 if (CpuFeatures::IsSupported(SSE2)) { 2931 if (CpuFeatures::IsSupported(SSE2)) {
2928 CEntryStub save_doubles(1, kSaveFPRegs); 2932 CEntryStub save_doubles(1, kSaveFPRegs);
2929 // Stubs might already be in the snapshot, detect that and don't regenerate, 2933 // Stubs might already be in the snapshot, detect that and don't regenerate,
2930 // which would lead to code stub initialization state being messed up. 2934 // which would lead to code stub initialization state being messed up.
2931 Code* save_doubles_code; 2935 Code* save_doubles_code;
2932 if (!save_doubles.FindCodeInCache(&save_doubles_code, isolate)) { 2936 if (!save_doubles.FindCodeInCache(&save_doubles_code, isolate)) {
(...skipping 3085 matching lines...) Expand 10 before | Expand all | Expand 10 after
6018 __ bind(&fast_elements_case); 6022 __ bind(&fast_elements_case);
6019 GenerateCase(masm, FAST_ELEMENTS); 6023 GenerateCase(masm, FAST_ELEMENTS);
6020 } 6024 }
6021 6025
6022 6026
6023 #undef __ 6027 #undef __
6024 6028
6025 } } // namespace v8::internal 6029 } } // namespace v8::internal
6026 6030
6027 #endif // V8_TARGET_ARCH_IA32 6031 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/assembler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698