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

Side by Side Diff: src/objects.cc

Issue 1528913003: [Interpreter] Add basic deoptimization support from TurboFan to Ignition. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@int_deopt_1
Patch Set: Add basic support to OptimizedFrame::Summarize() for interpreted_frame deopt data. Created 5 years 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
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/objects.h" 5 #include "src/objects.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 #include <iomanip> 8 #include <iomanip>
9 #include <sstream> 9 #include <sstream>
10 10
(...skipping 14220 matching lines...) Expand 10 before | Expand all | Expand 10 after
14231 int ast_id = iterator.Next(); 14231 int ast_id = iterator.Next();
14232 int shared_info_id = iterator.Next(); 14232 int shared_info_id = iterator.Next();
14233 unsigned height = iterator.Next(); 14233 unsigned height = iterator.Next();
14234 Object* shared_info = LiteralArray()->get(shared_info_id); 14234 Object* shared_info = LiteralArray()->get(shared_info_id);
14235 os << "{ast_id=" << ast_id << ", function=" 14235 os << "{ast_id=" << ast_id << ", function="
14236 << Brief(SharedFunctionInfo::cast(shared_info)->DebugName()) 14236 << Brief(SharedFunctionInfo::cast(shared_info)->DebugName())
14237 << ", height=" << height << "}"; 14237 << ", height=" << height << "}";
14238 break; 14238 break;
14239 } 14239 }
14240 14240
14241 case Translation::INTERPRETED_FRAME: {
14242 int bytecode_offset = iterator.Next();
14243 int shared_info_id = iterator.Next();
14244 unsigned height = iterator.Next();
14245 Object* shared_info = LiteralArray()->get(shared_info_id);
14246 os << "{bytecode_offset=" << bytecode_offset << ", function="
14247 << Brief(SharedFunctionInfo::cast(shared_info)->DebugName())
14248 << ", height=" << height << "}";
14249 break;
14250 }
14251
14241 case Translation::JS_FRAME_FUNCTION: { 14252 case Translation::JS_FRAME_FUNCTION: {
14242 os << "{function}"; 14253 os << "{function}";
14243 break; 14254 break;
14244 } 14255 }
14245 14256
14246 case Translation::COMPILED_STUB_FRAME: { 14257 case Translation::COMPILED_STUB_FRAME: {
14247 Code::Kind stub_kind = static_cast<Code::Kind>(iterator.Next()); 14258 Code::Kind stub_kind = static_cast<Code::Kind>(iterator.Next());
14248 os << "{kind=" << stub_kind << "}"; 14259 os << "{kind=" << stub_kind << "}";
14249 break; 14260 break;
14250 } 14261 }
(...skipping 5001 matching lines...) Expand 10 before | Expand all | Expand 10 after
19252 if (cell->value() != *new_value) { 19263 if (cell->value() != *new_value) {
19253 cell->set_value(*new_value); 19264 cell->set_value(*new_value);
19254 Isolate* isolate = cell->GetIsolate(); 19265 Isolate* isolate = cell->GetIsolate();
19255 cell->dependent_code()->DeoptimizeDependentCodeGroup( 19266 cell->dependent_code()->DeoptimizeDependentCodeGroup(
19256 isolate, DependentCode::kPropertyCellChangedGroup); 19267 isolate, DependentCode::kPropertyCellChangedGroup);
19257 } 19268 }
19258 } 19269 }
19259 19270
19260 } // namespace internal 19271 } // namespace internal
19261 } // namespace v8 19272 } // namespace v8
OLDNEW
« src/frames.cc ('K') | « src/frames.cc ('k') | src/x64/builtins-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698