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

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

Issue 1699133002: [intrinsics] Remove the %_IsDate intrinsic. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@BooleanConstructor
Patch Set: Created 4 years, 10 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
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 #if V8_TARGET_ARCH_MIPS 5 #if V8_TARGET_ARCH_MIPS
6 6
7 // Note on Mips implementation: 7 // Note on Mips implementation:
8 // 8 //
9 // The result_register() for mips is the 'v0' register, which is defined 9 // The result_register() for mips is the 'v0' register, which is defined
10 // by the ABI to contain function return values. However, the first 10 // by the ABI to contain function return values. However, the first
(...skipping 3155 matching lines...) Expand 10 before | Expand all | Expand 10 after
3166 __ GetObjectType(v0, a1, a1); 3166 __ GetObjectType(v0, a1, a1);
3167 __ Branch(&done, ne, a1, Operand(JS_VALUE_TYPE)); 3167 __ Branch(&done, ne, a1, Operand(JS_VALUE_TYPE));
3168 3168
3169 __ lw(v0, FieldMemOperand(v0, JSValue::kValueOffset)); 3169 __ lw(v0, FieldMemOperand(v0, JSValue::kValueOffset));
3170 3170
3171 __ bind(&done); 3171 __ bind(&done);
3172 context()->Plug(v0); 3172 context()->Plug(v0);
3173 } 3173 }
3174 3174
3175 3175
3176 void FullCodeGenerator::EmitIsDate(CallRuntime* expr) {
3177 ZoneList<Expression*>* args = expr->arguments();
3178 DCHECK_EQ(1, args->length());
3179
3180 VisitForAccumulatorValue(args->at(0));
3181
3182 Label materialize_true, materialize_false;
3183 Label* if_true = nullptr;
3184 Label* if_false = nullptr;
3185 Label* fall_through = nullptr;
3186 context()->PrepareTest(&materialize_true, &materialize_false, &if_true,
3187 &if_false, &fall_through);
3188
3189 __ JumpIfSmi(v0, if_false);
3190 __ GetObjectType(v0, a1, a1);
3191 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
3192 Split(eq, a1, Operand(JS_DATE_TYPE), if_true, if_false, fall_through);
3193
3194 context()->Plug(if_true, if_false);
3195 }
3196
3197
3198 void FullCodeGenerator::EmitOneByteSeqStringSetChar(CallRuntime* expr) { 3176 void FullCodeGenerator::EmitOneByteSeqStringSetChar(CallRuntime* expr) {
3199 ZoneList<Expression*>* args = expr->arguments(); 3177 ZoneList<Expression*>* args = expr->arguments();
3200 DCHECK_EQ(3, args->length()); 3178 DCHECK_EQ(3, args->length());
3201 3179
3202 Register string = v0; 3180 Register string = v0;
3203 Register index = a1; 3181 Register index = a1;
3204 Register value = a2; 3182 Register value = a2;
3205 3183
3206 VisitForStackValue(args->at(0)); // index 3184 VisitForStackValue(args->at(0)); // index
3207 VisitForStackValue(args->at(1)); // value 3185 VisitForStackValue(args->at(1)); // value
(...skipping 1345 matching lines...) Expand 10 before | Expand all | Expand 10 after
4553 reinterpret_cast<uint32_t>( 4531 reinterpret_cast<uint32_t>(
4554 isolate->builtins()->OsrAfterStackCheck()->entry())); 4532 isolate->builtins()->OsrAfterStackCheck()->entry()));
4555 return OSR_AFTER_STACK_CHECK; 4533 return OSR_AFTER_STACK_CHECK;
4556 } 4534 }
4557 4535
4558 4536
4559 } // namespace internal 4537 } // namespace internal
4560 } // namespace v8 4538 } // namespace v8
4561 4539
4562 #endif // V8_TARGET_ARCH_MIPS 4540 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/full-codegen/ia32/full-codegen-ia32.cc ('k') | src/full-codegen/mips64/full-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698