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

Side by Side Diff: src/deoptimizer.cc

Issue 2394213003: Named all zones in the project (Closed)
Patch Set: Merge branch 'master' into zonenames Created 4 years, 2 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/debug/liveedit.cc ('k') | src/fast-accessor-assembler.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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/deoptimizer.h" 5 #include "src/deoptimizer.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "src/accessors.h" 9 #include "src/accessors.h"
10 #include "src/ast/prettyprinter.h" 10 #include "src/ast/prettyprinter.h"
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 if (topmost_optimized_code == NULL) { 269 if (topmost_optimized_code == NULL) {
270 topmost_optimized_code = code; 270 topmost_optimized_code = code;
271 safe_to_deopt_topmost_optimized_code = safe_to_deopt; 271 safe_to_deopt_topmost_optimized_code = safe_to_deopt;
272 } 272 }
273 } 273 }
274 } 274 }
275 #endif 275 #endif
276 276
277 // Move marked code from the optimized code list to the deoptimized 277 // Move marked code from the optimized code list to the deoptimized
278 // code list, collecting them into a ZoneList. 278 // code list, collecting them into a ZoneList.
279 Zone zone(isolate->allocator()); 279 Zone zone(isolate->allocator(), ZONE_NAME);
280 ZoneList<Code*> codes(10, &zone); 280 ZoneList<Code*> codes(10, &zone);
281 281
282 // Walk over all optimized code objects in this native context. 282 // Walk over all optimized code objects in this native context.
283 Code* prev = NULL; 283 Code* prev = NULL;
284 Object* element = context->OptimizedCodeListHead(); 284 Object* element = context->OptimizedCodeListHead();
285 while (!element->IsUndefined(isolate)) { 285 while (!element->IsUndefined(isolate)) {
286 Code* code = Code::cast(element); 286 Code* code = Code::cast(element);
287 CHECK_EQ(code->kind(), Code::OPTIMIZED_FUNCTION); 287 CHECK_EQ(code->kind(), Code::OPTIMIZED_FUNCTION);
288 Object* next = code->next_code_link(); 288 Object* next = code->next_code_link();
289 289
(...skipping 3728 matching lines...) Expand 10 before | Expand all | Expand 10 after
4018 CHECK(value_info->IsMaterializedObject()); 4018 CHECK(value_info->IsMaterializedObject());
4019 4019
4020 value_info->value_ = 4020 value_info->value_ =
4021 Handle<Object>(previously_materialized_objects->get(i), isolate_); 4021 Handle<Object>(previously_materialized_objects->get(i), isolate_);
4022 } 4022 }
4023 } 4023 }
4024 } 4024 }
4025 4025
4026 } // namespace internal 4026 } // namespace internal
4027 } // namespace v8 4027 } // namespace v8
OLDNEW
« no previous file with comments | « src/debug/liveedit.cc ('k') | src/fast-accessor-assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698