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

Unified Diff: runtime/vm/code_generator.cc

Issue 1012333002: Keep zone cached in SnapshotReader to allow removing ZoneHandle(Isolate*) interface. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 9 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 | « runtime/vm/benchmark_test.cc ('k') | runtime/vm/constant_propagator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/code_generator.cc
===================================================================
--- runtime/vm/code_generator.cc (revision 44579)
+++ runtime/vm/code_generator.cc (working copy)
@@ -631,7 +631,7 @@
DEFINE_RUNTIME_ENTRY(Throw, 1) {
const Instance& exception =
- Instance::CheckedHandle(isolate, arguments.ArgAt(0));
+ Instance::CheckedHandle(zone, arguments.ArgAt(0));
Exceptions::Throw(isolate, exception);
}
@@ -638,9 +638,9 @@
DEFINE_RUNTIME_ENTRY(ReThrow, 2) {
const Instance& exception =
- Instance::CheckedHandle(isolate, arguments.ArgAt(0));
+ Instance::CheckedHandle(zone, arguments.ArgAt(0));
const Instance& stacktrace =
- Instance::CheckedHandle(isolate, arguments.ArgAt(1));
+ Instance::CheckedHandle(zone, arguments.ArgAt(1));
Exceptions::ReThrow(isolate, exception, stacktrace);
}
@@ -1297,7 +1297,7 @@
// The requesting function can be already optimized (reoptimization).
// Returns the Code object where to continue execution.
DEFINE_RUNTIME_ENTRY(OptimizeInvokedFunction, 1) {
- const Function& function = Function::CheckedHandle(isolate,
+ const Function& function = Function::CheckedHandle(zone,
arguments.ArgAt(0));
ASSERT(!function.IsNull());
ASSERT(function.HasCode());
@@ -1393,7 +1393,7 @@
const uword target =
CodePatcher::GetStaticCallTargetAt(frame->pc(), caller_code);
const Code& stub = Code::Handle(isolate, Code::LookupCode(target));
- Class& alloc_class = Class::ZoneHandle(isolate);
+ Class& alloc_class = Class::ZoneHandle(zone);
alloc_class ^= stub.owner();
Code& alloc_stub = Code::Handle(isolate, alloc_class.allocation_stub());
if (alloc_stub.IsNull()) {
« no previous file with comments | « runtime/vm/benchmark_test.cc ('k') | runtime/vm/constant_propagator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698