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

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

Issue 444943002: MIPS: 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 | « no previous file | 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 // 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_MIPS64 7 #if V8_TARGET_ARCH_MIPS64
8 8
9 #include "src/codegen.h" 9 #include "src/codegen.h"
10 #include "src/macro-assembler.h" 10 #include "src/macro-assembler.h"
(...skipping 971 matching lines...) Expand 10 before | Expand all | Expand 10 after
982 DCHECK(!input.is(result)); 982 DCHECK(!input.is(result));
983 DCHECK(!input.is(double_scratch1)); 983 DCHECK(!input.is(double_scratch1));
984 DCHECK(!input.is(double_scratch2)); 984 DCHECK(!input.is(double_scratch2));
985 DCHECK(!result.is(double_scratch1)); 985 DCHECK(!result.is(double_scratch1));
986 DCHECK(!result.is(double_scratch2)); 986 DCHECK(!result.is(double_scratch2));
987 DCHECK(!double_scratch1.is(double_scratch2)); 987 DCHECK(!double_scratch1.is(double_scratch2));
988 DCHECK(!temp1.is(temp2)); 988 DCHECK(!temp1.is(temp2));
989 DCHECK(!temp1.is(temp3)); 989 DCHECK(!temp1.is(temp3));
990 DCHECK(!temp2.is(temp3)); 990 DCHECK(!temp2.is(temp3));
991 DCHECK(ExternalReference::math_exp_constants(0).address() != NULL); 991 DCHECK(ExternalReference::math_exp_constants(0).address() != NULL);
992 DCHECK(!masm->serializer_enabled()); // External references not serializable.
992 993
993 Label zero, infinity, done; 994 Label zero, infinity, done;
994 __ li(temp3, Operand(ExternalReference::math_exp_constants(0))); 995 __ li(temp3, Operand(ExternalReference::math_exp_constants(0)));
995 996
996 __ ldc1(double_scratch1, ExpConstant(0, temp3)); 997 __ ldc1(double_scratch1, ExpConstant(0, temp3));
997 __ BranchF(&zero, NULL, ge, double_scratch1, input); 998 __ BranchF(&zero, NULL, ge, double_scratch1, input);
998 999
999 __ ldc1(double_scratch2, ExpConstant(1, temp3)); 1000 __ ldc1(double_scratch2, ExpConstant(1, temp3));
1000 __ BranchF(&infinity, NULL, ge, input, double_scratch2); 1001 __ BranchF(&infinity, NULL, ge, input, double_scratch2);
1001 1002
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
1132 patcher.masm()->nop(); // Pad the empty space. 1133 patcher.masm()->nop(); // Pad the empty space.
1133 } 1134 }
1134 } 1135 }
1135 1136
1136 1137
1137 #undef __ 1138 #undef __
1138 1139
1139 } } // namespace v8::internal 1140 } } // namespace v8::internal
1140 1141
1141 #endif // V8_TARGET_ARCH_MIPS64 1142 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698