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

Side by Side Diff: src/full-codegen/x64/full-codegen-x64.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/s390/full-codegen-s390.cc ('k') | src/full-codegen/x87/full-codegen-x87.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_X64 5 #if V8_TARGET_ARCH_X64
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 952 matching lines...) Expand 10 before | Expand all | Expand 10 after
963 __ j(equal, &exit); 963 __ j(equal, &exit);
964 __ CompareRoot(rax, Heap::kUndefinedValueRootIndex); 964 __ CompareRoot(rax, Heap::kUndefinedValueRootIndex);
965 __ j(equal, &exit); 965 __ j(equal, &exit);
966 __ bind(&convert); 966 __ bind(&convert);
967 ToObjectStub stub(isolate()); 967 ToObjectStub stub(isolate());
968 __ CallStub(&stub); 968 __ CallStub(&stub);
969 __ bind(&done_convert); 969 __ bind(&done_convert);
970 PrepareForBailoutForId(stmt->ToObjectId(), TOS_REG); 970 PrepareForBailoutForId(stmt->ToObjectId(), TOS_REG);
971 __ Push(rax); 971 __ Push(rax);
972 972
973 // Check cache validity in generated code. This is a fast case for 973 // Check cache validity in generated code. If we cannot guarantee cache
974 // the JSObject::IsSimpleEnum cache validity checks. If we cannot 974 // validity, call the runtime system to check cache validity or get the
975 // guarantee cache validity, call the runtime system to check cache 975 // property names in a fixed array. Note: Proxies never have an enum cache,
976 // validity or get the property names in a fixed array. 976 // so will always take the slow path.
977 // Note: Proxies never have an enum cache, so will always take the
978 // slow path.
979 Label call_runtime; 977 Label call_runtime;
980 __ CheckEnumCache(&call_runtime); 978 __ CheckEnumCache(&call_runtime);
981 979
982 // The enum cache is valid. Load the map of the object being 980 // The enum cache is valid. Load the map of the object being
983 // iterated over and use the cache for the iteration. 981 // iterated over and use the cache for the iteration.
984 Label use_cache; 982 Label use_cache;
985 __ movp(rax, FieldOperand(rax, HeapObject::kMapOffset)); 983 __ movp(rax, FieldOperand(rax, HeapObject::kMapOffset));
986 __ jmp(&use_cache, Label::kNear); 984 __ jmp(&use_cache, Label::kNear);
987 985
988 // Get the set of properties to enumerate. 986 // Get the set of properties to enumerate.
(...skipping 2868 matching lines...) Expand 10 before | Expand all | Expand 10 after
3857 DCHECK_EQ( 3855 DCHECK_EQ(
3858 isolate->builtins()->OnStackReplacement()->entry(), 3856 isolate->builtins()->OnStackReplacement()->entry(),
3859 Assembler::target_address_at(call_target_address, unoptimized_code)); 3857 Assembler::target_address_at(call_target_address, unoptimized_code));
3860 return ON_STACK_REPLACEMENT; 3858 return ON_STACK_REPLACEMENT;
3861 } 3859 }
3862 3860
3863 } // namespace internal 3861 } // namespace internal
3864 } // namespace v8 3862 } // namespace v8
3865 3863
3866 #endif // V8_TARGET_ARCH_X64 3864 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/full-codegen/s390/full-codegen-s390.cc ('k') | src/full-codegen/x87/full-codegen-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698