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

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

Issue 272203002: Reland and fix r21225 and r21226 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/objects-inl.h ('k') | src/x64/macro-assembler-x64.h » ('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 #include "v8.h" 5 #include "v8.h"
6 6
7 #if V8_TARGET_ARCH_X64 7 #if V8_TARGET_ARCH_X64
8 8
9 #include "code-stubs.h" 9 #include "code-stubs.h"
10 #include "codegen.h" 10 #include "codegen.h"
(...skipping 2959 matching lines...) Expand 10 before | Expand all | Expand 10 after
2970 // Skip loop if no descriptors are valid. 2970 // Skip loop if no descriptors are valid.
2971 __ NumberOfOwnDescriptors(rcx, rbx); 2971 __ NumberOfOwnDescriptors(rcx, rbx);
2972 __ cmpp(rcx, Immediate(0)); 2972 __ cmpp(rcx, Immediate(0));
2973 __ j(equal, &done); 2973 __ j(equal, &done);
2974 2974
2975 __ LoadInstanceDescriptors(rbx, r8); 2975 __ LoadInstanceDescriptors(rbx, r8);
2976 // rbx: descriptor array. 2976 // rbx: descriptor array.
2977 // rcx: valid entries in the descriptor array. 2977 // rcx: valid entries in the descriptor array.
2978 // Calculate the end of the descriptor array. 2978 // Calculate the end of the descriptor array.
2979 __ imulp(rcx, rcx, Immediate(DescriptorArray::kDescriptorSize)); 2979 __ imulp(rcx, rcx, Immediate(DescriptorArray::kDescriptorSize));
2980 SmiIndex index = masm_->SmiToIndex(rdx, rcx, kPointerSizeLog2); 2980 __ leap(rcx, Operand(r8, rcx, times_8, DescriptorArray::kFirstOffset));
2981 __ leap(rcx,
2982 Operand(
2983 r8, index.reg, index.scale, DescriptorArray::kFirstOffset));
2984 // Calculate location of the first key name. 2981 // Calculate location of the first key name.
2985 __ addp(r8, Immediate(DescriptorArray::kFirstOffset)); 2982 __ addp(r8, Immediate(DescriptorArray::kFirstOffset));
2986 // Loop through all the keys in the descriptor array. If one of these is the 2983 // Loop through all the keys in the descriptor array. If one of these is the
2987 // internalized string "valueOf" the result is false. 2984 // internalized string "valueOf" the result is false.
2988 __ jmp(&entry); 2985 __ jmp(&entry);
2989 __ bind(&loop); 2986 __ bind(&loop);
2990 __ movp(rdx, FieldOperand(r8, 0)); 2987 __ movp(rdx, FieldOperand(r8, 0));
2991 __ Cmp(rdx, isolate()->factory()->value_of_string()); 2988 __ Cmp(rdx, isolate()->factory()->value_of_string());
2992 __ j(equal, if_false); 2989 __ j(equal, if_false);
2993 __ addp(r8, Immediate(DescriptorArray::kDescriptorSize * kPointerSize)); 2990 __ addp(r8, Immediate(DescriptorArray::kDescriptorSize * kPointerSize));
(...skipping 1839 matching lines...) Expand 10 before | Expand all | Expand 10 after
4833 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), 4830 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(),
4834 Assembler::target_address_at(call_target_address, 4831 Assembler::target_address_at(call_target_address,
4835 unoptimized_code)); 4832 unoptimized_code));
4836 return OSR_AFTER_STACK_CHECK; 4833 return OSR_AFTER_STACK_CHECK;
4837 } 4834 }
4838 4835
4839 4836
4840 } } // namespace v8::internal 4837 } } // namespace v8::internal
4841 4838
4842 #endif // V8_TARGET_ARCH_X64 4839 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | src/x64/macro-assembler-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698