OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #include "vm/globals.h" | 5 #include "vm/globals.h" |
6 #if defined(TARGET_ARCH_IA32) | 6 #if defined(TARGET_ARCH_IA32) |
7 | 7 |
8 #include "vm/assembler.h" | 8 #include "vm/assembler.h" |
9 #include "vm/compiler.h" | 9 #include "vm/compiler.h" |
10 #include "vm/dart_entry.h" | 10 #include "vm/dart_entry.h" |
(...skipping 1996 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2007 __ PushObject(Symbols::EqualOperator()); // Target's name. | 2007 __ PushObject(Symbols::EqualOperator()); // Target's name. |
2008 __ pushl(ECX); // ICData | 2008 __ pushl(ECX); // ICData |
2009 __ CallRuntime(kUpdateICDataTwoArgsRuntimeEntry); | 2009 __ CallRuntime(kUpdateICDataTwoArgsRuntimeEntry); |
2010 __ Drop(4); | 2010 __ Drop(4); |
2011 __ LeaveFrame(); | 2011 __ LeaveFrame(); |
2012 | 2012 |
2013 __ jmp(&compute_result, Assembler::kNearJump); | 2013 __ jmp(&compute_result, Assembler::kNearJump); |
2014 } | 2014 } |
2015 | 2015 |
2016 | 2016 |
2017 // Calls to runtime to ooptimized give function | 2017 // Calls to the runtime to optimize the given function. |
2018 // EDI: function to be reoptimized. | 2018 // EDI: function to be reoptimized. |
2019 // EDX: argument descriptor (preserved). | 2019 // EDX: argument descriptor (preserved). |
2020 void StubCode::GenerateOptimizeFunctionStub(Assembler* assembler) { | 2020 void StubCode::GenerateOptimizeFunctionStub(Assembler* assembler) { |
2021 const Immediate& raw_null = | 2021 const Immediate& raw_null = |
2022 Immediate(reinterpret_cast<intptr_t>(Object::null())); | 2022 Immediate(reinterpret_cast<intptr_t>(Object::null())); |
2023 __ EnterStubFrame(); | 2023 __ EnterStubFrame(); |
2024 __ pushl(EDX); | 2024 __ pushl(EDX); |
2025 __ pushl(raw_null); // Setup space on stack for return value. | 2025 __ pushl(raw_null); // Setup space on stack for return value. |
2026 __ pushl(EDI); | 2026 __ pushl(EDI); |
2027 __ CallRuntime(kOptimizeInvokedFunctionRuntimeEntry); | 2027 __ CallRuntime(kOptimizeInvokedFunctionRuntimeEntry); |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2117 __ Bind(&done); | 2117 __ Bind(&done); |
2118 __ popl(temp); | 2118 __ popl(temp); |
2119 __ popl(right); | 2119 __ popl(right); |
2120 __ popl(left); | 2120 __ popl(left); |
2121 __ ret(); | 2121 __ ret(); |
2122 } | 2122 } |
2123 | 2123 |
2124 } // namespace dart | 2124 } // namespace dart |
2125 | 2125 |
2126 #endif // defined TARGET_ARCH_IA32 | 2126 #endif // defined TARGET_ARCH_IA32 |
OLD | NEW |