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

Side by Side Diff: runtime/vm/stub_code_ia32.cc

Issue 13671004: Support UseDartApi vm test on ARM. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/stub_code_arm.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « runtime/vm/stub_code_arm.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698