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

Side by Side Diff: src/full-codegen/x87/full-codegen-x87.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_X87 5 #if V8_TARGET_ARCH_X87
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 987 matching lines...) Expand 10 before | Expand all | Expand 10 after
998 // slow path. 998 // slow path.
999 Label call_runtime, use_cache, fixed_array; 999 Label call_runtime, use_cache, fixed_array;
1000 __ CheckEnumCache(&call_runtime); 1000 __ CheckEnumCache(&call_runtime);
1001 1001
1002 __ mov(eax, FieldOperand(eax, HeapObject::kMapOffset)); 1002 __ mov(eax, FieldOperand(eax, HeapObject::kMapOffset));
1003 __ jmp(&use_cache, Label::kNear); 1003 __ jmp(&use_cache, Label::kNear);
1004 1004
1005 // Get the set of properties to enumerate. 1005 // Get the set of properties to enumerate.
1006 __ bind(&call_runtime); 1006 __ bind(&call_runtime);
1007 __ push(eax); 1007 __ push(eax);
1008 __ CallRuntime(Runtime::kGetPropertyNamesFast); 1008 __ CallRuntime(Runtime::kForInEnumerate);
1009 PrepareForBailoutForId(stmt->EnumId(), TOS_REG); 1009 PrepareForBailoutForId(stmt->EnumId(), TOS_REG);
1010 __ cmp(FieldOperand(eax, HeapObject::kMapOffset), 1010 __ cmp(FieldOperand(eax, HeapObject::kMapOffset),
1011 isolate()->factory()->meta_map()); 1011 isolate()->factory()->meta_map());
1012 __ j(not_equal, &fixed_array); 1012 __ j(not_equal, &fixed_array);
1013 1013
1014 1014
1015 // We got a map in register eax. Get the enumeration cache from it. 1015 // We got a map in register eax. Get the enumeration cache from it.
1016 Label no_descriptors; 1016 Label no_descriptors;
1017 __ bind(&use_cache); 1017 __ bind(&use_cache);
1018 1018
(...skipping 3712 matching lines...) Expand 10 before | Expand all | Expand 10 after
4731 Assembler::target_address_at(call_target_address, 4731 Assembler::target_address_at(call_target_address,
4732 unoptimized_code)); 4732 unoptimized_code));
4733 return OSR_AFTER_STACK_CHECK; 4733 return OSR_AFTER_STACK_CHECK;
4734 } 4734 }
4735 4735
4736 4736
4737 } // namespace internal 4737 } // namespace internal
4738 } // namespace v8 4738 } // namespace v8
4739 4739
4740 #endif // V8_TARGET_ARCH_X87 4740 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/full-codegen/x64/full-codegen-x64.cc ('k') | src/runtime/runtime.h » ('j') | src/types.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698