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_IA32 | 5 #if V8_TARGET_ARCH_IA32 |
6 | 6 |
7 #include "src/code-factory.h" | 7 #include "src/code-factory.h" |
8 #include "src/codegen.h" | 8 #include "src/codegen.h" |
9 #include "src/deoptimizer.h" | 9 #include "src/deoptimizer.h" |
10 #include "src/full-codegen/full-codegen.h" | 10 #include "src/full-codegen/full-codegen.h" |
(...skipping 1991 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2002 __ SmiTag(ebx); | 2002 __ SmiTag(ebx); |
2003 __ EnterBuiltinFrame(esi, edi, ebx); | 2003 __ EnterBuiltinFrame(esi, edi, ebx); |
2004 __ Call(masm->isolate()->builtins()->ToString(), RelocInfo::CODE_TARGET); | 2004 __ Call(masm->isolate()->builtins()->ToString(), RelocInfo::CODE_TARGET); |
2005 __ LeaveBuiltinFrame(esi, edi, ebx); | 2005 __ LeaveBuiltinFrame(esi, edi, ebx); |
2006 __ SmiUntag(ebx); | 2006 __ SmiUntag(ebx); |
2007 } | 2007 } |
2008 __ jmp(&drop_frame_and_ret, Label::kNear); | 2008 __ jmp(&drop_frame_and_ret, Label::kNear); |
2009 | 2009 |
2010 // 3b. Convert symbol in eax to a string. | 2010 // 3b. Convert symbol in eax to a string. |
2011 __ bind(&symbol_descriptive_string); | 2011 __ bind(&symbol_descriptive_string); |
2012 { | 2012 __ mov(eax, FieldOperand(eax, Symbol::kDescriptiveStringOffset)); |
2013 __ PopReturnAddressTo(ecx); | 2013 // Fall through. |
2014 __ lea(esp, Operand(esp, ebx, times_pointer_size, kPointerSize)); | |
2015 __ Push(eax); | |
2016 __ PushReturnAddressFrom(ecx); | |
2017 __ TailCallRuntime(Runtime::kSymbolDescriptiveString); | |
2018 } | |
2019 | 2014 |
2020 __ bind(&drop_frame_and_ret); | 2015 __ bind(&drop_frame_and_ret); |
2021 { | 2016 { |
2022 // Drop all arguments including the receiver. | 2017 // Drop all arguments including the receiver. |
2023 __ PopReturnAddressTo(ecx); | 2018 __ PopReturnAddressTo(ecx); |
2024 __ lea(esp, Operand(esp, ebx, times_pointer_size, kPointerSize)); | 2019 __ lea(esp, Operand(esp, ebx, times_pointer_size, kPointerSize)); |
2025 __ PushReturnAddressFrom(ecx); | 2020 __ PushReturnAddressFrom(ecx); |
2026 __ Ret(); | 2021 __ Ret(); |
2027 } | 2022 } |
2028 } | 2023 } |
(...skipping 1296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3325 } | 3320 } |
3326 // Now jump to the instructions of the returned code object. | 3321 // Now jump to the instructions of the returned code object. |
3327 __ jmp(edi); | 3322 __ jmp(edi); |
3328 } | 3323 } |
3329 | 3324 |
3330 #undef __ | 3325 #undef __ |
3331 } // namespace internal | 3326 } // namespace internal |
3332 } // namespace v8 | 3327 } // namespace v8 |
3333 | 3328 |
3334 #endif // V8_TARGET_ARCH_IA32 | 3329 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |