Files
sdk/runtime/vm/intermediate_language_test.cc
T
kmillikin@google.com 5f541253ad Eliminate the type distinction between BindInstr and DoInstr.
Represent the distinction between computations whose value is used and
computations whose value is unused with a data member (instead of a
separate type).

R=fschneider@google.com,srdjan@google.com
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//10700111

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9416 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-05 10:06:28 +00:00

21 lines
652 B
C++

// 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.
#include "vm/intermediate_language.h"
#include "vm/unit_test.h"
namespace dart {
TEST_CASE(InstructionTests) {
TargetEntryInstr* target_instr = new TargetEntryInstr();
EXPECT(target_instr->IsBlockEntry());
EXPECT(!target_instr->IsBind());
BindInstr* bind_instr =
new BindInstr(BindInstr::kUnused, new CurrentContextComp());
EXPECT(bind_instr->IsBind());
EXPECT(!bind_instr->IsBlockEntry());
}
} // namespace dart