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

Unified Diff: runtime/vm/intermediate_language_ia32.cc

Issue 10542167: Inline Math.sqrt in new compilers. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 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/intermediate_language.cc ('k') | runtime/vm/intermediate_language_x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intermediate_language_ia32.cc
===================================================================
--- runtime/vm/intermediate_language_ia32.cc (revision 8700)
+++ runtime/vm/intermediate_language_ia32.cc (working copy)
@@ -1443,8 +1443,7 @@
Register temp = comp->locs()->temp(0).reg();
Register result = comp->locs()->out().reg();
- const Class& double_class =
- Class::ZoneHandle(Isolate::Current()->object_store()->double_class());
+ const Class& double_class = compiler->double_class();
const Code& stub =
Code::Handle(StubCode::GetAllocationStubForClass(double_class));
const ExternalLabel label(double_class.ToCString(), stub.EntryPoint());
@@ -1584,8 +1583,7 @@
__ CompareClassId(value, kDouble, temp);
__ j(NOT_EQUAL, deopt);
// Allocate result object.
- const Class& double_class =
- Class::ZoneHandle(Isolate::Current()->object_store()->double_class());
+ const Class& double_class = compiler->double_class();
const Code& stub =
Code::Handle(StubCode::GetAllocationStubForClass(double_class));
const ExternalLabel label(double_class.ToCString(), stub.EntryPoint());
@@ -1646,14 +1644,9 @@
ASSERT(from() == kSmi);
- // TODO(vegorov): allocate a single ZoneHandle in FlowGraphCompiler for
- // double class.
- const Class& double_class =
- Class::ZoneHandle(Isolate::Current()->object_store()->double_class());
-
+ const Class& double_class = compiler->double_class();
const Code& stub =
Code::Handle(StubCode::GetAllocationStubForClass(double_class));
-
const ExternalLabel label(double_class.ToCString(), stub.EntryPoint());
// TODO(vegorov): allocate box in the driver loop to avoid pushing and poping.
« no previous file with comments | « runtime/vm/intermediate_language.cc ('k') | runtime/vm/intermediate_language_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698