| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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/objects.h" | 5 #include "src/objects.h" |
| 6 | 6 |
| 7 #include <cmath> | 7 #include <cmath> |
| 8 #include <iomanip> | 8 #include <iomanip> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <sstream> | 10 #include <sstream> |
| (...skipping 10559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10570 Handle<FixedArray> result; | 10570 Handle<FixedArray> result; |
| 10571 if (number_of_deopt_points == 0) { | 10571 if (number_of_deopt_points == 0) { |
| 10572 result = isolate->factory()->empty_fixed_array(); | 10572 result = isolate->factory()->empty_fixed_array(); |
| 10573 } else { | 10573 } else { |
| 10574 result = isolate->factory()->NewFixedArray( | 10574 result = isolate->factory()->NewFixedArray( |
| 10575 LengthOfFixedArray(number_of_deopt_points), pretenure); | 10575 LengthOfFixedArray(number_of_deopt_points), pretenure); |
| 10576 } | 10576 } |
| 10577 return Handle<DeoptimizationOutputData>::cast(result); | 10577 return Handle<DeoptimizationOutputData>::cast(result); |
| 10578 } | 10578 } |
| 10579 | 10579 |
| 10580 SharedFunctionInfo* DeoptimizationInputData::GetInlinedFunction(int index) { |
| 10581 if (index == -1) { |
| 10582 return SharedFunctionInfo::cast(SharedFunctionInfo()); |
| 10583 } else { |
| 10584 return SharedFunctionInfo::cast(LiteralArray()->get(index)); |
| 10585 } |
| 10586 } |
| 10587 |
| 10580 const int LiteralsArray::kFeedbackVectorOffset = | 10588 const int LiteralsArray::kFeedbackVectorOffset = |
| 10581 LiteralsArray::OffsetOfElementAt(LiteralsArray::kVectorIndex); | 10589 LiteralsArray::OffsetOfElementAt(LiteralsArray::kVectorIndex); |
| 10582 | 10590 |
| 10583 const int LiteralsArray::kOffsetToFirstLiteral = | 10591 const int LiteralsArray::kOffsetToFirstLiteral = |
| 10584 LiteralsArray::OffsetOfElementAt(LiteralsArray::kFirstLiteralIndex); | 10592 LiteralsArray::OffsetOfElementAt(LiteralsArray::kFirstLiteralIndex); |
| 10585 | 10593 |
| 10586 // static | 10594 // static |
| 10587 Handle<LiteralsArray> LiteralsArray::New(Isolate* isolate, | 10595 Handle<LiteralsArray> LiteralsArray::New(Isolate* isolate, |
| 10588 Handle<TypeFeedbackVector> vector, | 10596 Handle<TypeFeedbackVector> vector, |
| 10589 int number_of_literals, | 10597 int number_of_literals, |
| (...skipping 9829 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20419 // depend on this. | 20427 // depend on this. |
| 20420 return DICTIONARY_ELEMENTS; | 20428 return DICTIONARY_ELEMENTS; |
| 20421 } | 20429 } |
| 20422 DCHECK_LE(kind, LAST_ELEMENTS_KIND); | 20430 DCHECK_LE(kind, LAST_ELEMENTS_KIND); |
| 20423 return kind; | 20431 return kind; |
| 20424 } | 20432 } |
| 20425 } | 20433 } |
| 20426 | 20434 |
| 20427 } // namespace internal | 20435 } // namespace internal |
| 20428 } // namespace v8 | 20436 } // namespace v8 |
| OLD | NEW |