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

Side by Side Diff: src/assembler.cc

Issue 250553005: Added an Isolate* field to NoTrackDoubleFieldsForSerializerScope, PlatformFeatureScope and BinaryOp… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Feedback. Rebased. Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/assembler.h ('k') | src/bootstrapper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 206
207 CpuFeatureScope::~CpuFeatureScope() { 207 CpuFeatureScope::~CpuFeatureScope() {
208 assembler_->set_enabled_cpu_features(old_enabled_); 208 assembler_->set_enabled_cpu_features(old_enabled_);
209 } 209 }
210 #endif 210 #endif
211 211
212 212
213 // ----------------------------------------------------------------------------- 213 // -----------------------------------------------------------------------------
214 // Implementation of PlatformFeatureScope 214 // Implementation of PlatformFeatureScope
215 215
216 PlatformFeatureScope::PlatformFeatureScope(CpuFeature f) 216 PlatformFeatureScope::PlatformFeatureScope(Isolate* isolate, CpuFeature f)
217 : old_cross_compile_(CpuFeatures::cross_compile_) { 217 : isolate_(isolate), old_cross_compile_(CpuFeatures::cross_compile_) {
218 // CpuFeatures is a global singleton, therefore this is only safe in 218 // CpuFeatures is a global singleton, therefore this is only safe in
219 // single threaded code. 219 // single threaded code.
220 ASSERT(Serializer::enabled()); 220 ASSERT(Serializer::enabled());
221 uint64_t mask = static_cast<uint64_t>(1) << f; 221 uint64_t mask = static_cast<uint64_t>(1) << f;
222 CpuFeatures::cross_compile_ |= mask; 222 CpuFeatures::cross_compile_ |= mask;
223 } 223 }
224 224
225 225
226 PlatformFeatureScope::~PlatformFeatureScope() { 226 PlatformFeatureScope::~PlatformFeatureScope() {
227 CpuFeatures::cross_compile_ = old_cross_compile_; 227 CpuFeatures::cross_compile_ = old_cross_compile_;
(...skipping 1399 matching lines...) Expand 10 before | Expand all | Expand 10 after
1627 r2 = r2 - ad; 1627 r2 = r2 - ad;
1628 } 1628 }
1629 delta = ad - r2; 1629 delta = ad - r2;
1630 } while (q1 < delta || (q1 == delta && r1 == 0)); 1630 } while (q1 < delta || (q1 == delta && r1 == 0));
1631 int32_t mul = static_cast<int32_t>(q2 + 1); 1631 int32_t mul = static_cast<int32_t>(q2 + 1);
1632 multiplier_ = (d < 0) ? -mul : mul; 1632 multiplier_ = (d < 0) ? -mul : mul;
1633 shift_ = p - 32; 1633 shift_ = p - 32;
1634 } 1634 }
1635 1635
1636 } } // namespace v8::internal 1636 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/assembler.h ('k') | src/bootstrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698