Commit 538fb2b8 authored by yangguo@chromium.org's avatar yangguo@chromium.org

Fix cctest/test-hashing on MIPS.

BUG=
TEST=

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@10266 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent b4e39dae
...@@ -106,6 +106,7 @@ void generate(MacroAssembler* assm, i::Vector<const char> string) { ...@@ -106,6 +106,7 @@ void generate(MacroAssembler* assm, i::Vector<const char> string) {
} }
StringHelper::GenerateHashGetHash(assm, v0); StringHelper::GenerateHashGetHash(assm, v0);
__ jr(ra); __ jr(ra);
__ nop();
#endif #endif
} }
...@@ -125,7 +126,7 @@ void check(i::Vector<const char> string) { ...@@ -125,7 +126,7 @@ void check(i::Vector<const char> string) {
Handle<Object>(HEAP->undefined_value()))->ToObjectChecked()); Handle<Object>(HEAP->undefined_value()))->ToObjectChecked());
CHECK(code->IsCode()); CHECK(code->IsCode());
HASH_FUNCTION hash = FUNCTION_CAST<HASH_FUNCTION>(Code::cast(code)->entry()); HASH_FUNCTION hash = FUNCTION_CAST<HASH_FUNCTION>(code->entry());
Handle<String> v8_string = FACTORY->NewStringFromAscii(string); Handle<String> v8_string = FACTORY->NewStringFromAscii(string);
v8_string->set_hash_field(String::kEmptyHashField); v8_string->set_hash_field(String::kEmptyHashField);
#ifdef USE_SIMULATOR #ifdef USE_SIMULATOR
......
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