Commit 8218fc46 authored by rmcilroy's avatar rmcilroy Committed by Commit bot

[Interpreter] Add support for getting inlined functions from interpreted frames.

BUG=v8:4680
LOG=N

Review URL: https://codereview.chromium.org/1700143002

Cr-Commit-Position: refs/heads/master@{#34058}
parent 159ffcc0
......@@ -3647,7 +3647,8 @@ bool TranslatedState::GetAdaptedArguments(Handle<JSObject>* result,
TranslatedFrame* TranslatedState::GetArgumentsInfoFromJSFrameIndex(
int jsframe_index, int* args_count) {
for (size_t i = 0; i < frames_.size(); i++) {
if (frames_[i].kind() == TranslatedFrame::kFunction) {
if (frames_[i].kind() == TranslatedFrame::kFunction ||
frames_[i].kind() == TranslatedFrame::kInterpretedFunction) {
if (jsframe_index > 0) {
jsframe_index--;
} else {
......@@ -3710,7 +3711,8 @@ void TranslatedState::StoreMaterializedValuesAndDeopt() {
if (new_store && value_changed) {
materialized_store->Set(stack_frame_pointer_,
previously_materialized_objects);
CHECK_EQ(TranslatedFrame::kFunction, frames_[0].kind());
CHECK(frames_[0].kind() == TranslatedFrame::kFunction ||
frames_[0].kind() == TranslatedFrame::kInterpretedFunction);
Object* const function = frames_[0].front().GetRawValue();
Deoptimizer::DeoptimizeFunction(JSFunction::cast(function));
}
......
......@@ -865,13 +865,6 @@
'regress/regress-2318': [FAIL],
'regress/regress-crbug-582051': [FAIL],
# TODO(rmcilroy,4680): Test crashes.
'compiler/regress-funarguments': [SKIP],
'regress/regress-3985': [SKIP],
'regress/regress-457935': [SKIP],
'regress/regress-arg-materialize-store': [SKIP],
'regress/regress-514362': [SKIP],
# TODO(rmcilroy,4680): Test timeouts.
'array-literal-transitions': [SKIP],
'regress/regress-crbug-517592': [SKIP],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment