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

Side by Side Diff: src/mips/builtins-mips.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 | « no previous file | src/mips64/builtins-mips64.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_MIPS 5 #if V8_TARGET_ARCH_MIPS
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 1405 matching lines...) Expand 10 before | Expand all | Expand 10 after
1416 __ lw(v0, FieldMemOperand( 1416 __ lw(v0, FieldMemOperand(
1417 a0, JSDate::kValueOffset + 1417 a0, JSDate::kValueOffset +
1418 field_index * kPointerSize)); // In delay slot. 1418 field_index * kPointerSize)); // In delay slot.
1419 __ bind(&stamp_mismatch); 1419 __ bind(&stamp_mismatch);
1420 } 1420 }
1421 FrameScope scope(masm, StackFrame::INTERNAL); 1421 FrameScope scope(masm, StackFrame::INTERNAL);
1422 __ PrepareCallCFunction(2, t0); 1422 __ PrepareCallCFunction(2, t0);
1423 __ li(a1, Operand(Smi::FromInt(field_index))); 1423 __ li(a1, Operand(Smi::FromInt(field_index)));
1424 __ CallCFunction( 1424 __ CallCFunction(
1425 ExternalReference::get_date_field_function(masm->isolate()), 2); 1425 ExternalReference::get_date_field_function(masm->isolate()), 2);
1426 __ Ret();
1427 } 1426 }
1427 __ Ret();
1428 1428
1429 // 3. Raise a TypeError if the receiver is not a date. 1429 // 3. Raise a TypeError if the receiver is not a date.
1430 __ bind(&receiver_not_date); 1430 __ bind(&receiver_not_date);
1431 __ TailCallRuntime(Runtime::kThrowNotDateError); 1431 __ TailCallRuntime(Runtime::kThrowNotDateError);
1432 } 1432 }
1433 1433
1434 1434
1435 // static 1435 // static
1436 void Builtins::Generate_FunctionPrototypeApply(MacroAssembler* masm) { 1436 void Builtins::Generate_FunctionPrototypeApply(MacroAssembler* masm) {
1437 // ----------- S t a t e ------------- 1437 // ----------- S t a t e -------------
(...skipping 1028 matching lines...) Expand 10 before | Expand all | Expand 10 after
2466 } 2466 }
2467 } 2467 }
2468 2468
2469 2469
2470 #undef __ 2470 #undef __
2471 2471
2472 } // namespace internal 2472 } // namespace internal
2473 } // namespace v8 2473 } // namespace v8
2474 2474
2475 #endif // V8_TARGET_ARCH_MIPS 2475 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « no previous file | src/mips64/builtins-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698