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

Unified Diff: vm/code_index_table_test.cc

Issue 10030001: Resubmit change 6302 after fixing the compiler warning on older GCC compiler versions: (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 8 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/code_generator.cc ('k') | vm/compiler.cc » ('j') | vm/stack_frame.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/code_index_table_test.cc
===================================================================
--- vm/code_index_table_test.cc (revision 6329)
+++ vm/code_index_table_test.cc (working copy)
@@ -4,10 +4,10 @@
#include "platform/assert.h"
#include "vm/class_finalizer.h"
-#include "vm/code_index_table.h"
#include "vm/compiler.h"
#include "vm/object.h"
#include "vm/pages.h"
+#include "vm/stack_frame.h"
#include "vm/unit_test.h"
namespace dart {
@@ -35,9 +35,8 @@
char buffer[256];
// Get access to the code index table.
- ASSERT(Isolate::Current() != NULL);
- CodeIndexTable* code_index_table = Isolate::Current()->code_index_table();
- ASSERT(code_index_table != NULL);
+ Isolate* isolate = Isolate::Current();
+ ASSERT(isolate != NULL);
lib = Library::CoreLibrary();
@@ -126,7 +125,7 @@
code = function.CurrentCode();
EXPECT(code.Size() > 16);
pc = code.EntryPoint() + 16;
- EXPECT(code_index_table->LookupCode(pc) == code.raw());
+ EXPECT(StackFrame::LookupCode(isolate, pc) == code.raw());
OS::SNPrint(buffer, 256, "moo%d", 54);
function_name = String::New(buffer);
@@ -135,7 +134,7 @@
code = function.CurrentCode();
EXPECT(code.Size() > 16);
pc = code.EntryPoint() + 16;
- EXPECT(code_index_table->LookupCode(pc) == code.raw());
+ EXPECT(StackFrame::LookupCode(isolate, pc) == code.raw());
// Lookup the large function
OS::SNPrint(buffer, 256, "moo%d", 0);
@@ -146,10 +145,10 @@
EXPECT(code.Size() > 16);
pc = code.EntryPoint() + 16;
EXPECT(code.Size() > PageSpace::kPageSize);
- EXPECT(code_index_table->LookupCode(pc) == code.raw());
+ EXPECT(StackFrame::LookupCode(isolate, pc) == code.raw());
EXPECT(code.Size() > (1 * MB));
pc = code.EntryPoint() + (1 * MB);
- EXPECT(code_index_table->LookupCode(pc) == code.raw());
+ EXPECT(StackFrame::LookupCode(isolate, pc) == code.raw());
}
#endif // TARGET_ARCH_IA32 || TARGET_ARCH_X64
« no previous file with comments | « vm/code_generator.cc ('k') | vm/compiler.cc » ('j') | vm/stack_frame.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698