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

Unified Diff: runtime/vm/instructions_ia32.cc

Issue 9414003: Initial implementation of a flow-graph builder for Dart's AST. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rely on assumption that code can reach both branches of a condition. 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 | « runtime/vm/instructions_ia32.h ('k') | runtime/vm/instructions_ia32_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/instructions_ia32.cc
diff --git a/runtime/vm/instructions_ia32.cc b/runtime/vm/instructions_ia32.cc
index 5c465dfd3203ed600e0612b07587ce94c9164820..cedaab14df2827a9f6d013c651eebfb6c1a01899 100644
--- a/runtime/vm/instructions_ia32.cc
+++ b/runtime/vm/instructions_ia32.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.
@@ -10,7 +10,7 @@
namespace dart {
-bool Instruction::TestBytesWith(const int* data, int num_bytes) const {
+bool InstructionPattern::TestBytesWith(const int* data, int num_bytes) const {
ASSERT(data != NULL);
const uint8_t* byte_array = reinterpret_cast<const uint8_t*>(start_);
for (int i = 0; i < num_bytes; i++) {
@@ -23,25 +23,25 @@ bool Instruction::TestBytesWith(const int* data, int num_bytes) const {
}
-uword CallOrJump::TargetAddress() const {
+uword CallOrJumpPattern::TargetAddress() const {
ASSERT(IsValid());
return start() + kLengthInBytes + *reinterpret_cast<uword*>(start() + 1);
}
-void CallOrJump::SetTargetAddress(uword target) const {
+void CallOrJumpPattern::SetTargetAddress(uword target) const {
ASSERT(IsValid());
*reinterpret_cast<uword*>(start() + 1) = target - start() - kLengthInBytes;
}
-const int* Call::pattern() const {
+const int* CallPattern::pattern() const {
static const int kCallPattern[kLengthInBytes] = {0xE8, -1, -1, -1, -1};
return kCallPattern;
}
-const int* Jump::pattern() const {
+const int* JumpPattern::pattern() const {
static const int kJumpPattern[kLengthInBytes] = {0xE9, -1, -1, -1, -1};
return kJumpPattern;
}
« no previous file with comments | « runtime/vm/instructions_ia32.h ('k') | runtime/vm/instructions_ia32_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698