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

Unified Diff: runtime/vm/code_patcher_x64.cc

Issue 9429055: Required rename on x64 platform. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/vm/instructions_x64.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/code_patcher_x64.cc
diff --git a/runtime/vm/code_patcher_x64.cc b/runtime/vm/code_patcher_x64.cc
index 57c8833aa1f7f37b0b75e42f8ffb59634765af26..113dc592fcda179668cfd8085ef2bee6f6a6c6c2 100644
--- a/runtime/vm/code_patcher_x64.cc
+++ b/runtime/vm/code_patcher_x64.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@@ -162,11 +162,11 @@ static void SwapCode(intptr_t num_bytes, char* a, char* b) {
// The patch code buffer contains the jump code sequence which will be inserted
// at entry point.
void CodePatcher::PatchEntry(const Code& code) {
- Jump jmp_entry(code.EntryPoint());
+ JumpPattern jmp_entry(code.EntryPoint());
ASSERT(!jmp_entry.IsValid());
const uword patch_buffer = code.GetPatchCodePc();
ASSERT(patch_buffer != 0);
- Jump jmp_patch(patch_buffer);
+ JumpPattern jmp_patch(patch_buffer);
ASSERT(jmp_patch.IsValid());
const uword jump_target = jmp_patch.TargetAddress();
SwapCode(jmp_patch.pattern_length_in_bytes(),
@@ -179,13 +179,13 @@ void CodePatcher::PatchEntry(const Code& code) {
// The entry point is a jump code sequence, the patch code buffer contains
// original code, the entry point contains the jump code sequence.
void CodePatcher::RestoreEntry(const Code& code) {
- Jump jmp_entry(code.EntryPoint());
+ JumpPattern jmp_entry(code.EntryPoint());
ASSERT(jmp_entry.IsValid());
const uword jump_target = jmp_entry.TargetAddress();
const uword patch_buffer = code.GetPatchCodePc();
ASSERT(patch_buffer != 0);
// 'patch_buffer' contains original entry code.
- Jump jmp_patch(patch_buffer);
+ JumpPattern jmp_patch(patch_buffer);
ASSERT(!jmp_patch.IsValid());
SwapCode(jmp_patch.pattern_length_in_bytes(),
reinterpret_cast<char*>(code.EntryPoint()),
@@ -196,7 +196,7 @@ void CodePatcher::RestoreEntry(const Code& code) {
bool CodePatcher::CodeIsPatchable(const Code& code) {
- Jump jmp_entry(code.EntryPoint());
+ JumpPattern jmp_entry(code.EntryPoint());
if (code.Size() < (jmp_entry.pattern_length_in_bytes() * 2)) {
return false;
}
« no previous file with comments | « no previous file | runtime/vm/instructions_x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698