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

Side by Side Diff: src/full-codegen/mips64/full-codegen-mips64.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
« no previous file with comments | « src/full-codegen/mips/full-codegen-mips.cc ('k') | src/full-codegen/x64/full-codegen-x64.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 #if V8_TARGET_ARCH_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
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 3160 matching lines...) Expand 10 before | Expand all | Expand 10 after
3171 __ GetObjectType(v0, a1, a1); 3171 __ GetObjectType(v0, a1, a1);
3172 __ Branch(&done, ne, a1, Operand(JS_VALUE_TYPE)); 3172 __ Branch(&done, ne, a1, Operand(JS_VALUE_TYPE));
3173 3173
3174 __ ld(v0, FieldMemOperand(v0, JSValue::kValueOffset)); 3174 __ ld(v0, FieldMemOperand(v0, JSValue::kValueOffset));
3175 3175
3176 __ bind(&done); 3176 __ bind(&done);
3177 context()->Plug(v0); 3177 context()->Plug(v0);
3178 } 3178 }
3179 3179
3180 3180
3181 void FullCodeGenerator::EmitIsDate(CallRuntime* expr) {
3182 ZoneList<Expression*>* args = expr->arguments();
3183 DCHECK_EQ(1, args->length());
3184
3185 VisitForAccumulatorValue(args->at(0));
3186
3187 Label materialize_true, materialize_false;
3188 Label* if_true = nullptr;
3189 Label* if_false = nullptr;
3190 Label* fall_through = nullptr;
3191 context()->PrepareTest(&materialize_true, &materialize_false, &if_true,
3192 &if_false, &fall_through);
3193
3194 __ JumpIfSmi(v0, if_false);
3195 __ GetObjectType(v0, a1, a1);
3196 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
3197 Split(eq, a1, Operand(JS_DATE_TYPE), if_true, if_false, fall_through);
3198
3199 context()->Plug(if_true, if_false);
3200 }
3201
3202
3203 void FullCodeGenerator::EmitOneByteSeqStringSetChar(CallRuntime* expr) { 3181 void FullCodeGenerator::EmitOneByteSeqStringSetChar(CallRuntime* expr) {
3204 ZoneList<Expression*>* args = expr->arguments(); 3182 ZoneList<Expression*>* args = expr->arguments();
3205 DCHECK_EQ(3, args->length()); 3183 DCHECK_EQ(3, args->length());
3206 3184
3207 Register string = v0; 3185 Register string = v0;
3208 Register index = a1; 3186 Register index = a1;
3209 Register value = a2; 3187 Register value = a2;
3210 3188
3211 VisitForStackValue(args->at(0)); // index 3189 VisitForStackValue(args->at(0)); // index
3212 VisitForStackValue(args->at(1)); // value 3190 VisitForStackValue(args->at(1)); // value
(...skipping 1355 matching lines...) Expand 10 before | Expand all | Expand 10 after
4568 reinterpret_cast<uint64_t>( 4546 reinterpret_cast<uint64_t>(
4569 isolate->builtins()->OsrAfterStackCheck()->entry())); 4547 isolate->builtins()->OsrAfterStackCheck()->entry()));
4570 return OSR_AFTER_STACK_CHECK; 4548 return OSR_AFTER_STACK_CHECK;
4571 } 4549 }
4572 4550
4573 4551
4574 } // namespace internal 4552 } // namespace internal
4575 } // namespace v8 4553 } // namespace v8
4576 4554
4577 #endif // V8_TARGET_ARCH_MIPS64 4555 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/full-codegen/mips/full-codegen-mips.cc ('k') | src/full-codegen/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698