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

Unified Diff: src/runtime.cc

Issue 2718007: [Isolates] Moving TranscendentalCache to Isolate. (Closed)
Patch Set: Created 10 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 | « src/isolate.cc ('k') | src/x64/codegen-x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/runtime.cc
diff --git a/src/runtime.cc b/src/runtime.cc
index 8aa2a7f95ef559ba793e69b3a2d4ae61889bd134..a789de3a48796315a521b7fc920c6e32326daef9 100644
--- a/src/runtime.cc
+++ b/src/runtime.cc
@@ -5901,7 +5901,8 @@ static Object* Runtime_Math_acos(Arguments args) {
Counters::math_acos.Increment();
CONVERT_DOUBLE_CHECKED(x, args[0]);
- return TranscendentalCache::Get(TranscendentalCache::ACOS, x);
+ Isolate* const isolate = Isolate::Current();
+ return isolate->transcendental_cache()->Get(TranscendentalCache::ACOS, x);
}
@@ -5911,7 +5912,8 @@ static Object* Runtime_Math_asin(Arguments args) {
Counters::math_asin.Increment();
CONVERT_DOUBLE_CHECKED(x, args[0]);
- return TranscendentalCache::Get(TranscendentalCache::ASIN, x);
+ Isolate* const isolate = Isolate::Current();
+ return isolate->transcendental_cache()->Get(TranscendentalCache::ASIN, x);
}
@@ -5921,7 +5923,8 @@ static Object* Runtime_Math_atan(Arguments args) {
Counters::math_atan.Increment();
CONVERT_DOUBLE_CHECKED(x, args[0]);
- return TranscendentalCache::Get(TranscendentalCache::ATAN, x);
+ Isolate* const isolate = Isolate::Current();
+ return isolate->transcendental_cache()->Get(TranscendentalCache::ATAN, x);
}
@@ -5965,7 +5968,8 @@ static Object* Runtime_Math_cos(Arguments args) {
Counters::math_cos.Increment();
CONVERT_DOUBLE_CHECKED(x, args[0]);
- return TranscendentalCache::Get(TranscendentalCache::COS, x);
+ Isolate* const isolate = Isolate::Current();
+ return isolate->transcendental_cache()->Get(TranscendentalCache::COS, x);
}
@@ -5975,7 +5979,8 @@ static Object* Runtime_Math_exp(Arguments args) {
Counters::math_exp.Increment();
CONVERT_DOUBLE_CHECKED(x, args[0]);
- return TranscendentalCache::Get(TranscendentalCache::EXP, x);
+ Isolate* const isolate = Isolate::Current();
+ return isolate->transcendental_cache()->Get(TranscendentalCache::EXP, x);
}
@@ -5995,7 +6000,8 @@ static Object* Runtime_Math_log(Arguments args) {
Counters::math_log.Increment();
CONVERT_DOUBLE_CHECKED(x, args[0]);
- return TranscendentalCache::Get(TranscendentalCache::LOG, x);
+ Isolate* const isolate = Isolate::Current();
+ return isolate->transcendental_cache()->Get(TranscendentalCache::LOG, x);
}
@@ -6127,7 +6133,8 @@ static Object* Runtime_Math_sin(Arguments args) {
Counters::math_sin.Increment();
CONVERT_DOUBLE_CHECKED(x, args[0]);
- return TranscendentalCache::Get(TranscendentalCache::SIN, x);
+ Isolate* const isolate = Isolate::Current();
+ return isolate->transcendental_cache()->Get(TranscendentalCache::SIN, x);
}
@@ -6147,7 +6154,8 @@ static Object* Runtime_Math_tan(Arguments args) {
Counters::math_tan.Increment();
CONVERT_DOUBLE_CHECKED(x, args[0]);
- return TranscendentalCache::Get(TranscendentalCache::TAN, x);
+ Isolate* const isolate = Isolate::Current();
+ return isolate->transcendental_cache()->Get(TranscendentalCache::TAN, x);
}
« no previous file with comments | « src/isolate.cc ('k') | src/x64/codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698