Commit f39ff5c6 authored by whesse@chromium.org's avatar whesse@chromium.org

X64 Crankshaft: Implement some methods in LInstruction, update mjsunit test expectations.

Review URL: http://codereview.chromium.org/6118002

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@6215 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent a6c5fa69
// Copyright 2010 the V8 project authors. All rights reserved.
// Copyright 2011 the V8 project authors. All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
......@@ -45,6 +45,9 @@ class LInstruction: public ZoneObject {
LInstruction() { }
virtual ~LInstruction() { }
virtual void PrintTo(StringStream* stream) const { UNIMPLEMENTED(); }
virtual void PrintDataTo(StringStream* stream) const { }
// Predicates should be generated by macro as in lithium-ia32.h.
virtual bool IsLabel() const {
UNIMPLEMENTED();
......@@ -55,17 +58,30 @@ class LInstruction: public ZoneObject {
return false;
}
LPointerMap* pointer_map() const {
UNIMPLEMENTED();
return NULL;
}
void set_environment(LEnvironment* env) { environment_.set(env); }
LEnvironment* environment() const { return environment_.get(); }
bool HasEnvironment() const { return environment_.is_set(); }
bool HasPointerMap() const {
UNIMPLEMENTED();
return false;
}
void set_pointer_map(LPointerMap* p) { pointer_map_.set(p); }
LPointerMap* pointer_map() const { return pointer_map_.get(); }
bool HasPointerMap() const { return pointer_map_.is_set(); }
virtual void PrintTo(StringStream* stream) const { UNIMPLEMENTED(); }
void set_result(LOperand* operand) { result_.set(operand); }
LOperand* result() const { return result_.get(); }
bool HasResult() const { return result_.is_set(); }
void set_hydrogen_value(HValue* value) { hydrogen_value_ = value; }
HValue* hydrogen_value() const { return hydrogen_value_; }
void set_deoptimization_environment(LEnvironment* env) {
deoptimization_environment_.set(env);
}
LEnvironment* deoptimization_environment() const {
return deoptimization_environment_.get();
}
bool HasDeoptimizationEnvironment() const {
return deoptimization_environment_.is_set();
}
private:
SetOncePointer<LEnvironment> environment_;
......
......@@ -109,7 +109,14 @@ regress/regress-3247124: SKIP
##############################################################################
[ $arch == arm && $crankshaft ]
# Test that currently fail with crankshaft on ARM.
# Test that currently fails with crankshaft on ARM.
compiler/simple-osr: FAIL
##############################################################################
[ $arch == x64 && $crankshaft ]
# Test that currently fails with crankshaft on X64.
compiler/simple-osr: FAIL
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment