Index: src/mips/virtual-frame-mips-inl.h |
diff --git a/test/cctest/test-mips.cc b/src/mips/virtual-frame-mips-inl.h |
similarity index 73% |
copy from test/cctest/test-mips.cc |
copy to src/mips/virtual-frame-mips-inl.h |
index efd4cc975df193710e57ffaa1b9435592e2498c8..f0d2fab0108e7529aa261e2e96e745ce9f8ec833 100644 |
--- a/test/cctest/test-mips.cc |
+++ b/src/mips/virtual-frame-mips-inl.h |
@@ -25,28 +25,34 @@ |
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
+#ifndef V8_VIRTUAL_FRAME_MIPS_INL_H_ |
+#define V8_VIRTUAL_FRAME_MIPS_INL_H_ |
-#include "v8.h" |
-#include "execution.h" |
+#include "assembler-mips.h" |
+#include "virtual-frame-mips.h" |
-#include "cctest.h" |
+namespace v8 { |
+namespace internal { |
-using ::v8::Local; |
-using ::v8::String; |
-using ::v8::Script; |
-namespace i = ::v8::internal; |
+MemOperand VirtualFrame::ParameterAt(int index) { |
+ UNIMPLEMENTED_MIPS(); |
+ return MemOperand(zero_reg, 0); |
+} |
+ |
-TEST(MIPSFunctionCalls) { |
- // Disable compilation of natives. |
- i::FLAG_disable_native_files = true; |
- i::FLAG_full_compiler = false; |
+// The receiver frame slot. |
+MemOperand VirtualFrame::Receiver() { |
+ UNIMPLEMENTED_MIPS(); |
+ return MemOperand(zero_reg, 0); |
+} |
- v8::HandleScope scope; |
- LocalContext env; // from cctest.h |
- const char* c_source = "function foo() { return 0x1234; }; foo();"; |
- Local<String> source = ::v8::String::New(c_source); |
- Local<Script> script = ::v8::Script::Compile(source); |
- CHECK_EQ(0x1234, script->Run()->Int32Value()); |
+void VirtualFrame::Forget(int count) { |
+ UNIMPLEMENTED_MIPS(); |
} |
+ |
+ |
+} } // namespace v8::internal |
+ |
+#endif // V8_VIRTUAL_FRAME_MIPS_INL_H_ |