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

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

Issue 1631583002: [for-in] Further refactorings and unification around for-in. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 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 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_IA32 5 #if V8_TARGET_ARCH_IA32
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 995 matching lines...) Expand 10 before | Expand all | Expand 10 after
1006 // slow path. 1006 // slow path.
1007 Label call_runtime, use_cache, fixed_array; 1007 Label call_runtime, use_cache, fixed_array;
1008 __ CheckEnumCache(&call_runtime); 1008 __ CheckEnumCache(&call_runtime);
1009 1009
1010 __ mov(eax, FieldOperand(eax, HeapObject::kMapOffset)); 1010 __ mov(eax, FieldOperand(eax, HeapObject::kMapOffset));
1011 __ jmp(&use_cache, Label::kNear); 1011 __ jmp(&use_cache, Label::kNear);
1012 1012
1013 // Get the set of properties to enumerate. 1013 // Get the set of properties to enumerate.
1014 __ bind(&call_runtime); 1014 __ bind(&call_runtime);
1015 __ push(eax); 1015 __ push(eax);
1016 __ CallRuntime(Runtime::kGetPropertyNamesFast); 1016 __ CallRuntime(Runtime::kForInEnumerate);
1017 PrepareForBailoutForId(stmt->EnumId(), TOS_REG); 1017 PrepareForBailoutForId(stmt->EnumId(), TOS_REG);
1018 __ cmp(FieldOperand(eax, HeapObject::kMapOffset), 1018 __ cmp(FieldOperand(eax, HeapObject::kMapOffset),
1019 isolate()->factory()->meta_map()); 1019 isolate()->factory()->meta_map());
1020 __ j(not_equal, &fixed_array); 1020 __ j(not_equal, &fixed_array);
1021 1021
1022 1022
1023 // We got a map in register eax. Get the enumeration cache from it. 1023 // We got a map in register eax. Get the enumeration cache from it.
1024 Label no_descriptors; 1024 Label no_descriptors;
1025 __ bind(&use_cache); 1025 __ bind(&use_cache);
1026 1026
(...skipping 3691 matching lines...) Expand 10 before | Expand all | Expand 10 after
4718 Assembler::target_address_at(call_target_address, 4718 Assembler::target_address_at(call_target_address,
4719 unoptimized_code)); 4719 unoptimized_code));
4720 return OSR_AFTER_STACK_CHECK; 4720 return OSR_AFTER_STACK_CHECK;
4721 } 4721 }
4722 4722
4723 4723
4724 } // namespace internal 4724 } // namespace internal
4725 } // namespace v8 4725 } // namespace v8
4726 4726
4727 #endif // V8_TARGET_ARCH_IA32 4727 #endif // V8_TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698