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

Side by Side Diff: src/isolate.cc

Issue 2293883002: Make incremental marking tracing format consistent with GC tracing. (Closed)
Patch Set: Move marking restart function to inl file Created 4 years, 3 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
« no previous file with comments | « src/isolate.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/isolate.h" 5 #include "src/isolate.h"
6 6
7 #include <stdlib.h> 7 #include <stdlib.h>
8 8
9 #include <fstream> // NOLINT(readability/streams) 9 #include <fstream> // NOLINT(readability/streams)
10 #include <sstream> 10 #include <sstream>
(...skipping 3134 matching lines...) Expand 10 before | Expand all | Expand 10 after
3145 3145
3146 void Isolate::IsolateInBackgroundNotification() { 3146 void Isolate::IsolateInBackgroundNotification() {
3147 is_isolate_in_background_ = true; 3147 is_isolate_in_background_ = true;
3148 heap()->ActivateMemoryReducerIfNeeded(); 3148 heap()->ActivateMemoryReducerIfNeeded();
3149 } 3149 }
3150 3150
3151 void Isolate::IsolateInForegroundNotification() { 3151 void Isolate::IsolateInForegroundNotification() {
3152 is_isolate_in_background_ = false; 3152 is_isolate_in_background_ = false;
3153 } 3153 }
3154 3154
3155 void Isolate::PrintWithTimestamp(const char* format, ...) {
3156 base::OS::Print("[%d:%p] %8.0f ms: ", base::OS::GetCurrentProcessId(),
3157 static_cast<void*>(this), time_millis_since_init());
3158 va_list arguments;
3159 va_start(arguments, format);
3160 base::OS::VPrint(format, arguments);
3161 va_end(arguments);
3162 }
3163
3155 bool StackLimitCheck::JsHasOverflowed(uintptr_t gap) const { 3164 bool StackLimitCheck::JsHasOverflowed(uintptr_t gap) const {
3156 StackGuard* stack_guard = isolate_->stack_guard(); 3165 StackGuard* stack_guard = isolate_->stack_guard();
3157 #ifdef USE_SIMULATOR 3166 #ifdef USE_SIMULATOR
3158 // The simulator uses a separate JS stack. 3167 // The simulator uses a separate JS stack.
3159 Address jssp_address = Simulator::current(isolate_)->get_sp(); 3168 Address jssp_address = Simulator::current(isolate_)->get_sp();
3160 uintptr_t jssp = reinterpret_cast<uintptr_t>(jssp_address); 3169 uintptr_t jssp = reinterpret_cast<uintptr_t>(jssp_address);
3161 if (jssp - gap < stack_guard->real_jslimit()) return true; 3170 if (jssp - gap < stack_guard->real_jslimit()) return true;
3162 #endif // USE_SIMULATOR 3171 #endif // USE_SIMULATOR
3163 return GetCurrentStackPosition() - gap < stack_guard->real_climit(); 3172 return GetCurrentStackPosition() - gap < stack_guard->real_climit();
3164 } 3173 }
(...skipping 10 matching lines...) Expand all
3175 // Then check whether this scope intercepts. 3184 // Then check whether this scope intercepts.
3176 if ((flag & intercept_mask_)) { 3185 if ((flag & intercept_mask_)) {
3177 intercepted_flags_ |= flag; 3186 intercepted_flags_ |= flag;
3178 return true; 3187 return true;
3179 } 3188 }
3180 return false; 3189 return false;
3181 } 3190 }
3182 3191
3183 } // namespace internal 3192 } // namespace internal
3184 } // namespace v8 3193 } // namespace v8
OLDNEW
« no previous file with comments | « src/isolate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698