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

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

Issue 1778103003: Invoke CallToRuntime via Thread instead of ObjectPools. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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 | « runtime/vm/assembler_ia32.h ('k') | runtime/vm/assembler_mips.h » ('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 (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" // NOLINT 5 #include "vm/globals.h" // NOLINT
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/code_generator.h" 9 #include "vm/code_generator.h"
10 #include "vm/cpu.h" 10 #include "vm/cpu.h"
(...skipping 2627 matching lines...) Expand 10 before | Expand all | Expand 10 after
2638 } 2638 }
2639 2639
2640 2640
2641 void Assembler::Call(const StubEntry& stub_entry) { 2641 void Assembler::Call(const StubEntry& stub_entry) {
2642 const Code& target = Code::ZoneHandle(stub_entry.code()); 2642 const Code& target = Code::ZoneHandle(stub_entry.code());
2643 LoadObject(CODE_REG, target); 2643 LoadObject(CODE_REG, target);
2644 call(FieldAddress(CODE_REG, Code::entry_point_offset())); 2644 call(FieldAddress(CODE_REG, Code::entry_point_offset()));
2645 } 2645 }
2646 2646
2647 2647
2648 void Assembler::CallToRuntime() {
2649 movl(CODE_REG, Address(THR, Thread::call_to_runtime_stub_offset()));
2650 call(Address(THR, Thread::call_to_runtime_entry_point_offset()));
2651 }
2652
2653
2648 void Assembler::Jmp(const StubEntry& stub_entry) { 2654 void Assembler::Jmp(const StubEntry& stub_entry) {
2649 const ExternalLabel label(stub_entry.EntryPoint()); 2655 const ExternalLabel label(stub_entry.EntryPoint());
2650 jmp(&label); 2656 jmp(&label);
2651 } 2657 }
2652 2658
2653 2659
2654 void Assembler::J(Condition condition, const StubEntry& stub_entry) { 2660 void Assembler::J(Condition condition, const StubEntry& stub_entry) {
2655 const ExternalLabel label(stub_entry.EntryPoint()); 2661 const ExternalLabel label(stub_entry.EntryPoint());
2656 j(condition, &label); 2662 j(condition, &label);
2657 } 2663 }
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after
3223 3229
3224 const char* Assembler::FpuRegisterName(FpuRegister reg) { 3230 const char* Assembler::FpuRegisterName(FpuRegister reg) {
3225 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters)); 3231 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters));
3226 return xmm_reg_names[reg]; 3232 return xmm_reg_names[reg];
3227 } 3233 }
3228 3234
3229 3235
3230 } // namespace dart 3236 } // namespace dart
3231 3237
3232 #endif // defined TARGET_ARCH_IA32 3238 #endif // defined TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « runtime/vm/assembler_ia32.h ('k') | runtime/vm/assembler_mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698