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

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

Issue 441983002: Check that external references are registered in the serializer. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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/assembler.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_IA32 7 #if V8_TARGET_ARCH_IA32
8 8
9 #include "src/codegen.h" 9 #include "src/codegen.h"
10 #include "src/heap/heap.h" 10 #include "src/heap/heap.h"
(...skipping 911 matching lines...) Expand 10 before | Expand all | Expand 10 after
922 XMMRegister input, 922 XMMRegister input,
923 XMMRegister result, 923 XMMRegister result,
924 XMMRegister double_scratch, 924 XMMRegister double_scratch,
925 Register temp1, 925 Register temp1,
926 Register temp2) { 926 Register temp2) {
927 DCHECK(!input.is(double_scratch)); 927 DCHECK(!input.is(double_scratch));
928 DCHECK(!input.is(result)); 928 DCHECK(!input.is(result));
929 DCHECK(!result.is(double_scratch)); 929 DCHECK(!result.is(double_scratch));
930 DCHECK(!temp1.is(temp2)); 930 DCHECK(!temp1.is(temp2));
931 DCHECK(ExternalReference::math_exp_constants(0).address() != NULL); 931 DCHECK(ExternalReference::math_exp_constants(0).address() != NULL);
932 DCHECK(!masm->serializer_enabled()); // External references not serializable.
932 933
933 Label done; 934 Label done;
934 935
935 __ movsd(double_scratch, ExpConstant(0)); 936 __ movsd(double_scratch, ExpConstant(0));
936 __ xorpd(result, result); 937 __ xorpd(result, result);
937 __ ucomisd(double_scratch, input); 938 __ ucomisd(double_scratch, input);
938 __ j(above_equal, &done); 939 __ j(above_equal, &done);
939 __ ucomisd(input, ExpConstant(1)); 940 __ ucomisd(input, ExpConstant(1));
940 __ movsd(result, ExpConstant(2)); 941 __ movsd(result, ExpConstant(2));
941 __ j(above_equal, &done); 942 __ j(above_equal, &done);
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
1023 Code* stub = GetCodeAgeStub(isolate, age, parity); 1024 Code* stub = GetCodeAgeStub(isolate, age, parity);
1024 CodePatcher patcher(sequence, young_length); 1025 CodePatcher patcher(sequence, young_length);
1025 patcher.masm()->call(stub->instruction_start(), RelocInfo::NONE32); 1026 patcher.masm()->call(stub->instruction_start(), RelocInfo::NONE32);
1026 } 1027 }
1027 } 1028 }
1028 1029
1029 1030
1030 } } // namespace v8::internal 1031 } } // namespace v8::internal
1031 1032
1032 #endif // V8_TARGET_ARCH_IA32 1033 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/assembler.cc ('k') | src/ia32/macro-assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698