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

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

Issue 430213004: Register all ExternalReferences in serializer code. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Removed unused ExternalReferences, added few ASSERTs 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
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_MIPS 7 #if V8_TARGET_ARCH_MIPS
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 1080 matching lines...) Expand 10 before | Expand all | Expand 10 after
1091 Register temp3) { 1091 Register temp3) {
1092 ASSERT(!input.is(result)); 1092 ASSERT(!input.is(result));
1093 ASSERT(!input.is(double_scratch1)); 1093 ASSERT(!input.is(double_scratch1));
1094 ASSERT(!input.is(double_scratch2)); 1094 ASSERT(!input.is(double_scratch2));
1095 ASSERT(!result.is(double_scratch1)); 1095 ASSERT(!result.is(double_scratch1));
1096 ASSERT(!result.is(double_scratch2)); 1096 ASSERT(!result.is(double_scratch2));
1097 ASSERT(!double_scratch1.is(double_scratch2)); 1097 ASSERT(!double_scratch1.is(double_scratch2));
1098 ASSERT(!temp1.is(temp2)); 1098 ASSERT(!temp1.is(temp2));
1099 ASSERT(!temp1.is(temp3)); 1099 ASSERT(!temp1.is(temp3));
1100 ASSERT(!temp2.is(temp3)); 1100 ASSERT(!temp2.is(temp3));
1101 // Serializer does not know how to encode references to math_exp_constants
1102 // table. See ExternalReferenceTable::PopulateTable.
1103 ASSERT(!masm->serializer_enabled());
1101 ASSERT(ExternalReference::math_exp_constants(0).address() != NULL); 1104 ASSERT(ExternalReference::math_exp_constants(0).address() != NULL);
1102 1105
1103 Label zero, infinity, done; 1106 Label zero, infinity, done;
1104 1107
1105 __ li(temp3, Operand(ExternalReference::math_exp_constants(0))); 1108 __ li(temp3, Operand(ExternalReference::math_exp_constants(0)));
1106 1109
1107 __ ldc1(double_scratch1, ExpConstant(0, temp3)); 1110 __ ldc1(double_scratch1, ExpConstant(0, temp3));
1108 __ BranchF(&zero, NULL, ge, double_scratch1, input); 1111 __ BranchF(&zero, NULL, ge, double_scratch1, input);
1109 1112
1110 __ ldc1(double_scratch2, ExpConstant(1, temp3)); 1113 __ ldc1(double_scratch2, ExpConstant(1, temp3));
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
1241 patcher.masm()->nop(); // Pad the empty space. 1244 patcher.masm()->nop(); // Pad the empty space.
1242 } 1245 }
1243 } 1246 }
1244 1247
1245 1248
1246 #undef __ 1249 #undef __
1247 1250
1248 } } // namespace v8::internal 1251 } } // namespace v8::internal
1249 1252
1250 #endif // V8_TARGET_ARCH_MIPS 1253 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/ia32/codegen-ia32.cc ('k') | src/mips64/codegen-mips64.cc » ('j') | src/serialize.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698