| OLD | NEW | 
|---|
| 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_X64 | 5 #if V8_TARGET_ARCH_X64 | 
| 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 3792 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 3803     __ JumpIfSmi(rax, if_false); | 3803     __ JumpIfSmi(rax, if_false); | 
| 3804     __ movp(rax, FieldOperand(rax, HeapObject::kMapOffset)); | 3804     __ movp(rax, FieldOperand(rax, HeapObject::kMapOffset)); | 
| 3805     __ testb(FieldOperand(rax, Map::kBitFieldOffset), | 3805     __ testb(FieldOperand(rax, Map::kBitFieldOffset), | 
| 3806              Immediate(1 << Map::kIsUndetectable)); | 3806              Immediate(1 << Map::kIsUndetectable)); | 
| 3807     Split(not_zero, if_true, if_false, fall_through); | 3807     Split(not_zero, if_true, if_false, fall_through); | 
| 3808   } | 3808   } | 
| 3809   context()->Plug(if_true, if_false); | 3809   context()->Plug(if_true, if_false); | 
| 3810 } | 3810 } | 
| 3811 | 3811 | 
| 3812 | 3812 | 
| 3813 void FullCodeGenerator::VisitThisFunction(ThisFunction* expr) { |  | 
| 3814   __ movp(rax, Operand(rbp, JavaScriptFrameConstants::kFunctionOffset)); |  | 
| 3815   context()->Plug(rax); |  | 
| 3816 } |  | 
| 3817 |  | 
| 3818 |  | 
| 3819 Register FullCodeGenerator::result_register() { | 3813 Register FullCodeGenerator::result_register() { | 
| 3820   return rax; | 3814   return rax; | 
| 3821 } | 3815 } | 
| 3822 | 3816 | 
| 3823 | 3817 | 
| 3824 Register FullCodeGenerator::context_register() { | 3818 Register FullCodeGenerator::context_register() { | 
| 3825   return rsi; | 3819   return rsi; | 
| 3826 } | 3820 } | 
| 3827 | 3821 | 
|  | 3822 void FullCodeGenerator::LoadFromFrameField(int frame_offset, Register value) { | 
|  | 3823   DCHECK(IsAligned(frame_offset, kPointerSize)); | 
|  | 3824   __ movp(value, Operand(rbp, frame_offset)); | 
|  | 3825 } | 
| 3828 | 3826 | 
| 3829 void FullCodeGenerator::StoreToFrameField(int frame_offset, Register value) { | 3827 void FullCodeGenerator::StoreToFrameField(int frame_offset, Register value) { | 
| 3830   DCHECK(IsAligned(frame_offset, kPointerSize)); | 3828   DCHECK(IsAligned(frame_offset, kPointerSize)); | 
| 3831   __ movp(Operand(rbp, frame_offset), value); | 3829   __ movp(Operand(rbp, frame_offset), value); | 
| 3832 } | 3830 } | 
| 3833 | 3831 | 
| 3834 | 3832 | 
| 3835 void FullCodeGenerator::LoadContextField(Register dst, int context_index) { | 3833 void FullCodeGenerator::LoadContextField(Register dst, int context_index) { | 
| 3836   __ movp(dst, ContextOperand(rsi, context_index)); | 3834   __ movp(dst, ContextOperand(rsi, context_index)); | 
| 3837 } | 3835 } | 
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 3989   DCHECK_EQ( | 3987   DCHECK_EQ( | 
| 3990       isolate->builtins()->OnStackReplacement()->entry(), | 3988       isolate->builtins()->OnStackReplacement()->entry(), | 
| 3991       Assembler::target_address_at(call_target_address, unoptimized_code)); | 3989       Assembler::target_address_at(call_target_address, unoptimized_code)); | 
| 3992   return ON_STACK_REPLACEMENT; | 3990   return ON_STACK_REPLACEMENT; | 
| 3993 } | 3991 } | 
| 3994 | 3992 | 
| 3995 }  // namespace internal | 3993 }  // namespace internal | 
| 3996 }  // namespace v8 | 3994 }  // namespace v8 | 
| 3997 | 3995 | 
| 3998 #endif  // V8_TARGET_ARCH_X64 | 3996 #endif  // V8_TARGET_ARCH_X64 | 
| OLD | NEW | 
|---|