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

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

Issue 1569353002: MIPS: Fix `[date] Migrate Date field accessors to native builtins.' (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 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/mips/builtins-mips.cc ('k') | 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 #if V8_TARGET_ARCH_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
6 6
7 #include "src/codegen.h" 7 #include "src/codegen.h"
8 #include "src/debug/debug.h" 8 #include "src/debug/debug.h"
9 #include "src/deoptimizer.h" 9 #include "src/deoptimizer.h"
10 #include "src/full-codegen/full-codegen.h" 10 #include "src/full-codegen/full-codegen.h"
(...skipping 1396 matching lines...) Expand 10 before | Expand all | Expand 10 after
1407 __ ld(v0, FieldMemOperand( 1407 __ ld(v0, FieldMemOperand(
1408 a0, JSDate::kValueOffset + 1408 a0, JSDate::kValueOffset +
1409 field_index * kPointerSize)); // In delay slot. 1409 field_index * kPointerSize)); // In delay slot.
1410 __ bind(&stamp_mismatch); 1410 __ bind(&stamp_mismatch);
1411 } 1411 }
1412 FrameScope scope(masm, StackFrame::INTERNAL); 1412 FrameScope scope(masm, StackFrame::INTERNAL);
1413 __ PrepareCallCFunction(2, t0); 1413 __ PrepareCallCFunction(2, t0);
1414 __ li(a1, Operand(Smi::FromInt(field_index))); 1414 __ li(a1, Operand(Smi::FromInt(field_index)));
1415 __ CallCFunction( 1415 __ CallCFunction(
1416 ExternalReference::get_date_field_function(masm->isolate()), 2); 1416 ExternalReference::get_date_field_function(masm->isolate()), 2);
1417 __ Ret();
1418 } 1417 }
1418 __ Ret();
1419 1419
1420 // 3. Raise a TypeError if the receiver is not a date. 1420 // 3. Raise a TypeError if the receiver is not a date.
1421 __ bind(&receiver_not_date); 1421 __ bind(&receiver_not_date);
1422 __ TailCallRuntime(Runtime::kThrowNotDateError); 1422 __ TailCallRuntime(Runtime::kThrowNotDateError);
1423 } 1423 }
1424 1424
1425 1425
1426 // static 1426 // static
1427 void Builtins::Generate_FunctionPrototypeApply(MacroAssembler* masm) { 1427 void Builtins::Generate_FunctionPrototypeApply(MacroAssembler* masm) {
1428 // ----------- S t a t e ------------- 1428 // ----------- S t a t e -------------
(...skipping 1027 matching lines...) Expand 10 before | Expand all | Expand 10 after
2456 } 2456 }
2457 } 2457 }
2458 2458
2459 2459
2460 #undef __ 2460 #undef __
2461 2461
2462 } // namespace internal 2462 } // namespace internal
2463 } // namespace v8 2463 } // namespace v8
2464 2464
2465 #endif // V8_TARGET_ARCH_MIPS64 2465 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips/builtins-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698