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

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

Issue 1942163002: Remove some dead code in src/objects.cc (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 7 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 998 matching lines...) Expand 10 before | Expand all | Expand 10 after
1009 __ LoadRoot(at, Heap::kUndefinedValueRootIndex); // In delay slot. 1009 __ LoadRoot(at, Heap::kUndefinedValueRootIndex); // In delay slot.
1010 __ Branch(&exit, eq, a0, Operand(at)); 1010 __ Branch(&exit, eq, a0, Operand(at));
1011 __ bind(&convert); 1011 __ bind(&convert);
1012 ToObjectStub stub(isolate()); 1012 ToObjectStub stub(isolate());
1013 __ CallStub(&stub); 1013 __ CallStub(&stub);
1014 __ mov(a0, v0); 1014 __ mov(a0, v0);
1015 __ bind(&done_convert); 1015 __ bind(&done_convert);
1016 PrepareForBailoutForId(stmt->ToObjectId(), TOS_REG); 1016 PrepareForBailoutForId(stmt->ToObjectId(), TOS_REG);
1017 __ push(a0); 1017 __ push(a0);
1018 1018
1019 // Check cache validity in generated code. This is a fast case for 1019 // Check cache validity in generated code. If we cannot guarantee cache
1020 // the JSObject::IsSimpleEnum cache validity checks. If we cannot 1020 // validity, call the runtime system to check cache validity or get the
1021 // guarantee cache validity, call the runtime system to check cache 1021 // property names in a fixed array. Note: Proxies never have an enum cache,
1022 // validity or get the property names in a fixed array. 1022 // so will always take the slow path.
1023 // Note: Proxies never have an enum cache, so will always take the
1024 // slow path.
1025 Label call_runtime; 1023 Label call_runtime;
1026 __ CheckEnumCache(&call_runtime); 1024 __ CheckEnumCache(&call_runtime);
1027 1025
1028 // The enum cache is valid. Load the map of the object being 1026 // The enum cache is valid. Load the map of the object being
1029 // iterated over and use the cache for the iteration. 1027 // iterated over and use the cache for the iteration.
1030 Label use_cache; 1028 Label use_cache;
1031 __ ld(v0, FieldMemOperand(a0, HeapObject::kMapOffset)); 1029 __ ld(v0, FieldMemOperand(a0, HeapObject::kMapOffset));
1032 __ Branch(&use_cache); 1030 __ Branch(&use_cache);
1033 1031
1034 // Get the set of properties to enumerate. 1032 // Get the set of properties to enumerate.
(...skipping 2959 matching lines...) Expand 10 before | Expand all | Expand 10 after
3994 reinterpret_cast<uint64_t>( 3992 reinterpret_cast<uint64_t>(
3995 isolate->builtins()->OnStackReplacement()->entry())); 3993 isolate->builtins()->OnStackReplacement()->entry()));
3996 return ON_STACK_REPLACEMENT; 3994 return ON_STACK_REPLACEMENT;
3997 } 3995 }
3998 3996
3999 3997
4000 } // namespace internal 3998 } // namespace internal
4001 } // namespace v8 3999 } // namespace v8
4002 4000
4003 #endif // V8_TARGET_ARCH_MIPS64 4001 #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