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

Unified Diff: vm/find_code_object_test.cc

Issue 10375059: Use a reserved stack local variable to store the Code object so that it can be looked up easily whe… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 7 months 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/disassembler_ia32.cc ('k') | vm/flow_graph_builder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/find_code_object_test.cc
===================================================================
--- vm/find_code_object_test.cc (revision 7669)
+++ vm/find_code_object_test.cc (working copy)
@@ -125,7 +125,7 @@
code = function.CurrentCode();
EXPECT(code.Size() > 16);
pc = code.EntryPoint() + 16;
- EXPECT(StackFrame::LookupCode(isolate, pc) == code.raw());
+ EXPECT(Code::LookupCode(pc) == code.raw());
OS::SNPrint(buffer, 256, "moo%d", 54);
function_name = String::New(buffer);
@@ -134,7 +134,7 @@
code = function.CurrentCode();
EXPECT(code.Size() > 16);
pc = code.EntryPoint() + 16;
- EXPECT(StackFrame::LookupCode(isolate, pc) == code.raw());
+ EXPECT(Code::LookupCode(pc) == code.raw());
// Lookup the large function
OS::SNPrint(buffer, 256, "moo%d", 0);
@@ -145,10 +145,10 @@
EXPECT(code.Size() > 16);
pc = code.EntryPoint() + 16;
EXPECT(code.Size() > PageSpace::kPageSize);
- EXPECT(StackFrame::LookupCode(isolate, pc) == code.raw());
+ EXPECT(Code::LookupCode(pc) == code.raw());
EXPECT(code.Size() > (1 * MB));
pc = code.EntryPoint() + (1 * MB);
- EXPECT(StackFrame::LookupCode(isolate, pc) == code.raw());
+ EXPECT(Code::LookupCode(pc) == code.raw());
}
#endif // TARGET_ARCH_IA32 || TARGET_ARCH_X64
« no previous file with comments | « vm/disassembler_ia32.cc ('k') | vm/flow_graph_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698