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

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

Issue 1848553002: [full-codegen] Reload context register after intrinsic call. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix missing include Created 4 years, 8 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/full-codegen.cc ('k') | src/full-codegen/mips/full-codegen-mips.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_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 3807 matching lines...) Expand 10 before | Expand all | Expand 10 after
3818 __ JumpIfSmi(eax, if_false); 3818 __ JumpIfSmi(eax, if_false);
3819 __ mov(eax, FieldOperand(eax, HeapObject::kMapOffset)); 3819 __ mov(eax, FieldOperand(eax, HeapObject::kMapOffset));
3820 __ test_b(FieldOperand(eax, Map::kBitFieldOffset), 3820 __ test_b(FieldOperand(eax, Map::kBitFieldOffset),
3821 Immediate(1 << Map::kIsUndetectable)); 3821 Immediate(1 << Map::kIsUndetectable));
3822 Split(not_zero, if_true, if_false, fall_through); 3822 Split(not_zero, if_true, if_false, fall_through);
3823 } 3823 }
3824 context()->Plug(if_true, if_false); 3824 context()->Plug(if_true, if_false);
3825 } 3825 }
3826 3826
3827 3827
3828 void FullCodeGenerator::VisitThisFunction(ThisFunction* expr) {
3829 __ mov(eax, Operand(ebp, JavaScriptFrameConstants::kFunctionOffset));
3830 context()->Plug(eax);
3831 }
3832
3833
3834 Register FullCodeGenerator::result_register() { 3828 Register FullCodeGenerator::result_register() {
3835 return eax; 3829 return eax;
3836 } 3830 }
3837 3831
3838 3832
3839 Register FullCodeGenerator::context_register() { 3833 Register FullCodeGenerator::context_register() {
3840 return esi; 3834 return esi;
3841 } 3835 }
3842 3836
3837 void FullCodeGenerator::LoadFromFrameField(int frame_offset, Register value) {
3838 DCHECK_EQ(POINTER_SIZE_ALIGN(frame_offset), frame_offset);
3839 __ mov(value, Operand(ebp, frame_offset));
3840 }
3843 3841
3844 void FullCodeGenerator::StoreToFrameField(int frame_offset, Register value) { 3842 void FullCodeGenerator::StoreToFrameField(int frame_offset, Register value) {
3845 DCHECK_EQ(POINTER_SIZE_ALIGN(frame_offset), frame_offset); 3843 DCHECK_EQ(POINTER_SIZE_ALIGN(frame_offset), frame_offset);
3846 __ mov(Operand(ebp, frame_offset), value); 3844 __ mov(Operand(ebp, frame_offset), value);
3847 } 3845 }
3848 3846
3849 3847
3850 void FullCodeGenerator::LoadContextField(Register dst, int context_index) { 3848 void FullCodeGenerator::LoadContextField(Register dst, int context_index) {
3851 __ mov(dst, ContextOperand(esi, context_index)); 3849 __ mov(dst, ContextOperand(esi, context_index));
3852 } 3850 }
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
4004 isolate->builtins()->OnStackReplacement()->entry(), 4002 isolate->builtins()->OnStackReplacement()->entry(),
4005 Assembler::target_address_at(call_target_address, unoptimized_code)); 4003 Assembler::target_address_at(call_target_address, unoptimized_code));
4006 return ON_STACK_REPLACEMENT; 4004 return ON_STACK_REPLACEMENT;
4007 } 4005 }
4008 4006
4009 4007
4010 } // namespace internal 4008 } // namespace internal
4011 } // namespace v8 4009 } // namespace v8
4012 4010
4013 #endif // V8_TARGET_ARCH_IA32 4011 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/full-codegen/full-codegen.cc ('k') | src/full-codegen/mips/full-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698