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

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

Issue 2227763003: [turbofan] Rewrite ToObject as TurboFan stub. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Revert "Delete hydrogen toObject" Created 4 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
« no previous file with comments | « src/full-codegen/mips/full-codegen-mips.cc ('k') | src/full-codegen/ppc/full-codegen-ppc.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 983 matching lines...) Expand 10 before | Expand all | Expand 10 after
994 __ GetObjectType(a0, a1, a1); 994 __ GetObjectType(a0, a1, a1);
995 __ Branch(USE_DELAY_SLOT, &done_convert, ge, a1, 995 __ Branch(USE_DELAY_SLOT, &done_convert, ge, a1,
996 Operand(FIRST_JS_RECEIVER_TYPE)); 996 Operand(FIRST_JS_RECEIVER_TYPE));
997 __ LoadRoot(at, Heap::kNullValueRootIndex); // In delay slot. 997 __ LoadRoot(at, Heap::kNullValueRootIndex); // In delay slot.
998 __ Branch(USE_DELAY_SLOT, &exit, eq, a0, Operand(at)); 998 __ Branch(USE_DELAY_SLOT, &exit, eq, a0, Operand(at));
999 __ LoadRoot(at, Heap::kUndefinedValueRootIndex); // In delay slot. 999 __ LoadRoot(at, Heap::kUndefinedValueRootIndex); // In delay slot.
1000 __ Branch(&exit, eq, a0, Operand(at)); 1000 __ Branch(&exit, eq, a0, Operand(at));
1001 __ bind(&convert); 1001 __ bind(&convert);
1002 ToObjectStub stub(isolate()); 1002 ToObjectStub stub(isolate());
1003 __ CallStub(&stub); 1003 __ CallStub(&stub);
1004 RestoreContext();
1004 __ mov(a0, v0); 1005 __ mov(a0, v0);
1005 __ bind(&done_convert); 1006 __ bind(&done_convert);
1006 PrepareForBailoutForId(stmt->ToObjectId(), BailoutState::TOS_REGISTER); 1007 PrepareForBailoutForId(stmt->ToObjectId(), BailoutState::TOS_REGISTER);
1007 __ push(a0); 1008 __ push(a0);
1008 1009
1009 // Check cache validity in generated code. If we cannot guarantee cache 1010 // Check cache validity in generated code. If we cannot guarantee cache
1010 // validity, call the runtime system to check cache validity or get the 1011 // validity, call the runtime system to check cache validity or get the
1011 // property names in a fixed array. Note: Proxies never have an enum cache, 1012 // property names in a fixed array. Note: Proxies never have an enum cache,
1012 // so will always take the slow path. 1013 // so will always take the slow path.
1013 Label call_runtime; 1014 Label call_runtime;
(...skipping 2771 matching lines...) Expand 10 before | Expand all | Expand 10 after
3785 reinterpret_cast<uint64_t>( 3786 reinterpret_cast<uint64_t>(
3786 isolate->builtins()->OnStackReplacement()->entry())); 3787 isolate->builtins()->OnStackReplacement()->entry()));
3787 return ON_STACK_REPLACEMENT; 3788 return ON_STACK_REPLACEMENT;
3788 } 3789 }
3789 3790
3790 3791
3791 } // namespace internal 3792 } // namespace internal
3792 } // namespace v8 3793 } // namespace v8
3793 3794
3794 #endif // V8_TARGET_ARCH_MIPS64 3795 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/full-codegen/mips/full-codegen-mips.cc ('k') | src/full-codegen/ppc/full-codegen-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698