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

Side by Side Diff: src/full-codegen/arm64/full-codegen-arm64.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/arm/full-codegen-arm.cc ('k') | src/full-codegen/ia32/full-codegen-ia32.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_ARM64 5 #if V8_TARGET_ARCH_ARM64
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 996 matching lines...) Expand 10 before | Expand all | Expand 10 after
1007 __ JumpIfObjectType(x0, x10, x11, FIRST_JS_RECEIVER_TYPE, &done_convert, ge); 1007 __ JumpIfObjectType(x0, x10, x11, FIRST_JS_RECEIVER_TYPE, &done_convert, ge);
1008 __ JumpIfRoot(x0, Heap::kNullValueRootIndex, &exit); 1008 __ JumpIfRoot(x0, Heap::kNullValueRootIndex, &exit);
1009 __ JumpIfRoot(x0, Heap::kUndefinedValueRootIndex, &exit); 1009 __ JumpIfRoot(x0, Heap::kUndefinedValueRootIndex, &exit);
1010 __ Bind(&convert); 1010 __ Bind(&convert);
1011 ToObjectStub stub(isolate()); 1011 ToObjectStub stub(isolate());
1012 __ CallStub(&stub); 1012 __ CallStub(&stub);
1013 __ Bind(&done_convert); 1013 __ Bind(&done_convert);
1014 PrepareForBailoutForId(stmt->ToObjectId(), TOS_REG); 1014 PrepareForBailoutForId(stmt->ToObjectId(), TOS_REG);
1015 __ Push(x0); 1015 __ Push(x0);
1016 1016
1017 // Check cache validity in generated code. This is a fast case for 1017 // Check cache validity in generated code. If we cannot guarantee cache
1018 // the JSObject::IsSimpleEnum cache validity checks. If we cannot 1018 // validity, call the runtime system to check cache validity or get the
1019 // guarantee cache validity, call the runtime system to check cache 1019 // property names in a fixed array. Note: Proxies never have an enum cache,
1020 // validity or get the property names in a fixed array. 1020 // so will always take the slow path.
1021 // Note: Proxies never have an enum cache, so will always take the
1022 // slow path.
1023 Label call_runtime; 1021 Label call_runtime;
1024 __ CheckEnumCache(x0, x15, x10, x11, x12, x13, &call_runtime); 1022 __ CheckEnumCache(x0, x15, x10, x11, x12, x13, &call_runtime);
1025 1023
1026 // The enum cache is valid. Load the map of the object being 1024 // The enum cache is valid. Load the map of the object being
1027 // iterated over and use the cache for the iteration. 1025 // iterated over and use the cache for the iteration.
1028 Label use_cache; 1026 Label use_cache;
1029 __ Ldr(x0, FieldMemOperand(x0, HeapObject::kMapOffset)); 1027 __ Ldr(x0, FieldMemOperand(x0, HeapObject::kMapOffset));
1030 __ B(&use_cache); 1028 __ B(&use_cache);
1031 1029
1032 // Get the set of properties to enumerate. 1030 // Get the set of properties to enumerate.
(...skipping 2999 matching lines...) Expand 10 before | Expand all | Expand 10 after
4032 } 4030 }
4033 4031
4034 return INTERRUPT; 4032 return INTERRUPT;
4035 } 4033 }
4036 4034
4037 4035
4038 } // namespace internal 4036 } // namespace internal
4039 } // namespace v8 4037 } // namespace v8
4040 4038
4041 #endif // V8_TARGET_ARCH_ARM64 4039 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/full-codegen/arm/full-codegen-arm.cc ('k') | src/full-codegen/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698