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

Side by Side Diff: src/deoptimizer.cc

Issue 1320843002: [heap] Limit friendship of the Heap class to essentials. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comment. Created 5 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/code-stubs.cc ('k') | src/factory.h » ('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 "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/codegen.h" 8 #include "src/codegen.h"
9 #include "src/cpu-profiler.h" 9 #include "src/cpu-profiler.h"
10 #include "src/disasm.h" 10 #include "src/disasm.h"
(...skipping 2234 matching lines...) Expand 10 before | Expand all | Expand 10 after
2245 } 2245 }
2246 2246
2247 Handle<FixedArray> new_array = 2247 Handle<FixedArray> new_array =
2248 isolate()->factory()->NewFixedArray(new_length, TENURED); 2248 isolate()->factory()->NewFixedArray(new_length, TENURED);
2249 for (int i = 0; i < array->length(); i++) { 2249 for (int i = 0; i < array->length(); i++) {
2250 new_array->set(i, array->get(i)); 2250 new_array->set(i, array->get(i));
2251 } 2251 }
2252 for (int i = array->length(); i < length; i++) { 2252 for (int i = array->length(); i < length; i++) {
2253 new_array->set(i, isolate()->heap()->undefined_value()); 2253 new_array->set(i, isolate()->heap()->undefined_value());
2254 } 2254 }
2255 isolate()->heap()->public_set_materialized_objects(*new_array); 2255 isolate()->heap()->SetRootMaterializedObjects(*new_array);
2256 return new_array; 2256 return new_array;
2257 } 2257 }
2258 2258
2259 2259
2260 DeoptimizedFrameInfo::DeoptimizedFrameInfo(Deoptimizer* deoptimizer, 2260 DeoptimizedFrameInfo::DeoptimizedFrameInfo(Deoptimizer* deoptimizer,
2261 int frame_index, 2261 int frame_index,
2262 bool has_arguments_adaptor, 2262 bool has_arguments_adaptor,
2263 bool has_construct_stub) { 2263 bool has_construct_stub) {
2264 FrameDescription* output_frame = deoptimizer->output_[frame_index]; 2264 FrameDescription* output_frame = deoptimizer->output_[frame_index];
2265 function_ = output_frame->GetFunction(); 2265 function_ = output_frame->GetFunction();
(...skipping 1146 matching lines...) Expand 10 before | Expand all | Expand 10 after
3412 DCHECK(value_info->IsMaterializedObject()); 3412 DCHECK(value_info->IsMaterializedObject());
3413 3413
3414 value_info->value_ = 3414 value_info->value_ =
3415 Handle<Object>(previously_materialized_objects->get(i), isolate_); 3415 Handle<Object>(previously_materialized_objects->get(i), isolate_);
3416 } 3416 }
3417 } 3417 }
3418 } 3418 }
3419 3419
3420 } // namespace internal 3420 } // namespace internal
3421 } // namespace v8 3421 } // namespace v8
OLDNEW
« no previous file with comments | « src/code-stubs.cc ('k') | src/factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698