OLD | NEW |
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 <sstream> | 5 #include <sstream> |
6 | 6 |
7 #include "src/v8.h" | 7 #include "src/v8.h" |
8 | 8 |
9 #include "src/accessors.h" | 9 #include "src/accessors.h" |
10 #include "src/allocation-site-scopes.h" | 10 #include "src/allocation-site-scopes.h" |
(...skipping 8361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8372 | 8372 |
8373 | 8373 |
8374 Object* AccessorPair::GetComponent(AccessorComponent component) { | 8374 Object* AccessorPair::GetComponent(AccessorComponent component) { |
8375 Object* accessor = get(component); | 8375 Object* accessor = get(component); |
8376 return accessor->IsTheHole() ? GetHeap()->undefined_value() : accessor; | 8376 return accessor->IsTheHole() ? GetHeap()->undefined_value() : accessor; |
8377 } | 8377 } |
8378 | 8378 |
8379 | 8379 |
8380 Handle<DeoptimizationInputData> DeoptimizationInputData::New( | 8380 Handle<DeoptimizationInputData> DeoptimizationInputData::New( |
8381 Isolate* isolate, int deopt_entry_count, PretenureFlag pretenure) { | 8381 Isolate* isolate, int deopt_entry_count, PretenureFlag pretenure) { |
8382 DCHECK(deopt_entry_count > 0); | |
8383 return Handle<DeoptimizationInputData>::cast( | 8382 return Handle<DeoptimizationInputData>::cast( |
8384 isolate->factory()->NewFixedArray(LengthFor(deopt_entry_count), | 8383 isolate->factory()->NewFixedArray(LengthFor(deopt_entry_count), |
8385 pretenure)); | 8384 pretenure)); |
8386 } | 8385 } |
8387 | 8386 |
8388 | 8387 |
8389 Handle<DeoptimizationOutputData> DeoptimizationOutputData::New( | 8388 Handle<DeoptimizationOutputData> DeoptimizationOutputData::New( |
8390 Isolate* isolate, | 8389 Isolate* isolate, |
8391 int number_of_deopt_points, | 8390 int number_of_deopt_points, |
8392 PretenureFlag pretenure) { | 8391 PretenureFlag pretenure) { |
(...skipping 8697 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
17090 Handle<DependentCode> codes = | 17089 Handle<DependentCode> codes = |
17091 DependentCode::Insert(handle(cell->dependent_code(), info->isolate()), | 17090 DependentCode::Insert(handle(cell->dependent_code(), info->isolate()), |
17092 DependentCode::kPropertyCellChangedGroup, | 17091 DependentCode::kPropertyCellChangedGroup, |
17093 info->object_wrapper()); | 17092 info->object_wrapper()); |
17094 if (*codes != cell->dependent_code()) cell->set_dependent_code(*codes); | 17093 if (*codes != cell->dependent_code()) cell->set_dependent_code(*codes); |
17095 info->dependencies(DependentCode::kPropertyCellChangedGroup)->Add( | 17094 info->dependencies(DependentCode::kPropertyCellChangedGroup)->Add( |
17096 cell, info->zone()); | 17095 cell, info->zone()); |
17097 } | 17096 } |
17098 | 17097 |
17099 } } // namespace v8::internal | 17098 } } // namespace v8::internal |
OLD | NEW |