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

Unified Diff: src/deoptimizer.cc

Issue 1217893012: Remove deprecated v8::Object::TurnOnAccessCheck() from the V8 API. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Deoptimizer::DeoptimizeGlobalObject() removed Created 5 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/deoptimizer.h ('k') | src/objects-printer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/deoptimizer.cc
diff --git a/src/deoptimizer.cc b/src/deoptimizer.cc
index 994904d245fdedf34d08e586c10f2c8019b7512e..3ab10fcac905871da62fafd9cf9f658e1e7e7d48 100644
--- a/src/deoptimizer.cc
+++ b/src/deoptimizer.cc
@@ -454,28 +454,6 @@ void Deoptimizer::DeoptimizeMarkedCode(Isolate* isolate) {
}
-void Deoptimizer::DeoptimizeGlobalObject(JSObject* object) {
- if (FLAG_trace_deopt) {
- CodeTracer::Scope scope(object->GetHeap()->isolate()->GetCodeTracer());
- PrintF(scope.file(), "[deoptimize global object @ 0x%08" V8PRIxPTR "]\n",
- reinterpret_cast<intptr_t>(object));
- }
- if (object->IsJSGlobalProxy()) {
- PrototypeIterator iter(object->GetIsolate(), object);
- // TODO(verwaest): This CHECK will be hit if the global proxy is detached.
- CHECK(iter.GetCurrent()->IsJSGlobalObject());
- Context* native_context =
- GlobalObject::cast(iter.GetCurrent())->native_context();
- MarkAllCodeForContext(native_context);
- DeoptimizeMarkedCodeForContext(native_context);
- } else if (object->IsGlobalObject()) {
- Context* native_context = GlobalObject::cast(object)->native_context();
- MarkAllCodeForContext(native_context);
- DeoptimizeMarkedCodeForContext(native_context);
- }
-}
-
-
void Deoptimizer::MarkAllCodeForContext(Context* context) {
Object* element = context->OptimizedCodeListHead();
while (!element->IsUndefined()) {
« no previous file with comments | « src/deoptimizer.h ('k') | src/objects-printer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698