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

Unified Diff: vm/stub_code_ia32_test.cc

Issue 11648006: Create read only handles for empty_array and sentinel objects (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years 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 | « vm/snapshot.cc ('k') | vm/stub_code_x64_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/stub_code_ia32_test.cc
===================================================================
--- vm/stub_code_ia32_test.cc (revision 16415)
+++ vm/stub_code_ia32_test.cc (working copy)
@@ -70,9 +70,8 @@
const Code& code = Code::Handle(Code::FinalizeCode(
*CreateFunction("Test_CallRuntimeStubCode"), &_assembler_));
const Function& function = RegisterFakeFunction(kName, code);
- const Array& args = Array::Handle(Object::empty_array());
Smi& result = Smi::Handle();
- result ^= DartEntry::InvokeStatic(function, args);
+ result ^= DartEntry::InvokeStatic(function, Object::empty_array());
EXPECT_EQ((value1 - value2), result.Value());
}
@@ -106,9 +105,8 @@
const Code& code = Code::Handle(Code::FinalizeCode(
*CreateFunction("Test_CallLeafRuntimeStubCode"), &_assembler_));
const Function& function = RegisterFakeFunction(kName, code);
- const Array& args = Array::Handle(Object::empty_array());
Smi& result = Smi::Handle();
- result ^= DartEntry::InvokeStatic(function, args);
+ result ^= DartEntry::InvokeStatic(function, Object::empty_array());
EXPECT_EQ((value1 + value2), result.Value());
}
« no previous file with comments | « vm/snapshot.cc ('k') | vm/stub_code_x64_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698