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

Side by Side Diff: src/full-codegen/ppc/full-codegen-ppc.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
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_PPC 5 #if V8_TARGET_ARCH_PPC
6 6
7 #include "src/ast/scopes.h" 7 #include "src/ast/scopes.h"
8 #include "src/code-factory.h" 8 #include "src/code-factory.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 956 matching lines...) Expand 10 before | Expand all | Expand 10 after
967 __ beq(&exit); 967 __ beq(&exit);
968 __ CompareRoot(r3, Heap::kUndefinedValueRootIndex); 968 __ CompareRoot(r3, Heap::kUndefinedValueRootIndex);
969 __ beq(&exit); 969 __ beq(&exit);
970 __ bind(&convert); 970 __ bind(&convert);
971 ToObjectStub stub(isolate()); 971 ToObjectStub stub(isolate());
972 __ CallStub(&stub); 972 __ CallStub(&stub);
973 __ bind(&done_convert); 973 __ bind(&done_convert);
974 PrepareForBailoutForId(stmt->ToObjectId(), TOS_REG); 974 PrepareForBailoutForId(stmt->ToObjectId(), TOS_REG);
975 __ push(r3); 975 __ push(r3);
976 976
977 // Check cache validity in generated code. This is a fast case for 977 // Check cache validity in generated code. If we cannot guarantee cache
978 // the JSObject::IsSimpleEnum cache validity checks. If we cannot 978 // validity, call the runtime system to check cache validity or get the
979 // guarantee cache validity, call the runtime system to check cache 979 // property names in a fixed array. Note: Proxies never have an enum cache,
980 // validity or get the property names in a fixed array. 980 // so will always take the slow path.
981 // Note: Proxies never have an enum cache, so will always take the
982 // slow path.
983 Label call_runtime; 981 Label call_runtime;
984 __ CheckEnumCache(&call_runtime); 982 __ CheckEnumCache(&call_runtime);
985 983
986 // The enum cache is valid. Load the map of the object being 984 // The enum cache is valid. Load the map of the object being
987 // iterated over and use the cache for the iteration. 985 // iterated over and use the cache for the iteration.
988 Label use_cache; 986 Label use_cache;
989 __ LoadP(r3, FieldMemOperand(r3, HeapObject::kMapOffset)); 987 __ LoadP(r3, FieldMemOperand(r3, HeapObject::kMapOffset));
990 __ b(&use_cache); 988 __ b(&use_cache);
991 989
992 // Get the set of properties to enumerate. 990 // Get the set of properties to enumerate.
(...skipping 2949 matching lines...) Expand 10 before | Expand all | Expand 10 after
3942 3940
3943 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address))); 3941 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address)));
3944 3942
3945 DCHECK(interrupt_address == 3943 DCHECK(interrupt_address ==
3946 isolate->builtins()->OnStackReplacement()->entry()); 3944 isolate->builtins()->OnStackReplacement()->entry());
3947 return ON_STACK_REPLACEMENT; 3945 return ON_STACK_REPLACEMENT;
3948 } 3946 }
3949 } // namespace internal 3947 } // namespace internal
3950 } // namespace v8 3948 } // namespace v8
3951 #endif // V8_TARGET_ARCH_PPC 3949 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/full-codegen/mips64/full-codegen-mips64.cc ('k') | src/full-codegen/s390/full-codegen-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698